Commit df1eaeb2 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊 Committed by Xaver Hugl
Browse files

Guard gbm and eglstreams parts for non-gbm or non-eglstreams systems


(cherry picked from commit dc73d622)
parent 9169445b
......@@ -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"
......@@ -129,14 +134,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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment