Guard gbm and eglstreams parts for non-gbm or non-eglstreams systems
This commit is contained in:
parent
bc6eba6114
commit
dc73d622c0
5 changed files with 18 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "drm_backend.h"
|
||||
#include <config-kwin.h>
|
||||
#include "drm_output.h"
|
||||
#include "drm_object_connector.h"
|
||||
#include "drm_object_crtc.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
#include "drm_gpu.h"
|
||||
|
||||
#include <config-kwin.h>
|
||||
#include "drm_backend.h"
|
||||
#include "drm_output.h"
|
||||
#include "drm_object_connector.h"
|
||||
|
|
|
@ -8,9 +8,14 @@
|
|||
*/
|
||||
|
||||
#include "egl_multi_backend.h"
|
||||
#include <config-kwin.h>
|
||||
#include "logging.h"
|
||||
#if HAVE_GBM
|
||||
#include "egl_gbm_backend.h"
|
||||
#endif
|
||||
#if HAVE_EGL_STREAMS
|
||||
#include "egl_stream_backend.h"
|
||||
#endif
|
||||
#include "drm_backend.h"
|
||||
#include "drm_gpu.h"
|
||||
|
||||
|
@ -134,14 +139,20 @@ void EglMultiBackend::addGpu(DrmGpu *gpu)
|
|||
{
|
||||
AbstractEglDrmBackend *backend;
|
||||
if (gpu->useEglStreams()) {
|
||||
#if HAVE_EGL_STREAMS
|
||||
backend = new EglStreamBackend(m_platform, gpu);
|
||||
#endif
|
||||
} else {
|
||||
#if HAVE_GBM
|
||||
backend = new EglGbmBackend(m_platform, gpu);
|
||||
#endif
|
||||
}
|
||||
if (m_initialized) {
|
||||
backend->init();
|
||||
if (backend) {
|
||||
if (m_initialized) {
|
||||
backend->init();
|
||||
}
|
||||
m_backends.append(backend);
|
||||
}
|
||||
m_backends.append(backend);
|
||||
}
|
||||
|
||||
void EglMultiBackend::removeGpu(DrmGpu *gpu)
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
#include "x11windowed_backend.h"
|
||||
#include "x11windowed_output.h"
|
||||
#include <config-kwin.h>
|
||||
#include "scene_qpainter_x11_backend.h"
|
||||
#include "logging.h"
|
||||
#include "wayland_server.h"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include "x11windowed_output.h"
|
||||
#include <config-kwin.h>
|
||||
#include "renderloop_p.h"
|
||||
#include "softwarevsyncmonitor.h"
|
||||
#include "x11windowed_backend.h"
|
||||
|
|
Loading…
Reference in a new issue