From 54e338eaedc27280c657751e91dc858f5d0cf43a Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 20 Mar 2023 16:58:29 +0100 Subject: [PATCH] backends/drm: remove egl config handling Without gbm_surface, egl configs aren't needed anymore --- src/backends/drm/drm_egl_backend.cpp | 6 ------ src/backends/drm/drm_egl_backend.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/backends/drm/drm_egl_backend.cpp b/src/backends/drm/drm_egl_backend.cpp index 058ab2ae2f..ce99d8ddc6 100644 --- a/src/backends/drm/drm_egl_backend.cpp +++ b/src/backends/drm/drm_egl_backend.cpp @@ -169,7 +169,6 @@ bool EglGbmBackend::initBufferConfigs() continue; } m_formats[gbmFormat] = format; - m_configs[format.drmFormat] = configs[i]; } if (!m_formats.isEmpty()) { return true; @@ -235,11 +234,6 @@ bool EglGbmBackend::prefer10bpc() const return !ok || preferred == 30; } -EGLConfig EglGbmBackend::config(uint32_t format) const -{ - return m_configs.value(format, EGL_NO_CONFIG_KHR); -} - std::shared_ptr EglGbmBackend::createPrimaryLayer(DrmPipeline *pipeline) { return std::make_shared(this, pipeline); diff --git a/src/backends/drm/drm_egl_backend.h b/src/backends/drm/drm_egl_backend.h index 81aa068baf..95c44c00a6 100644 --- a/src/backends/drm/drm_egl_backend.h +++ b/src/backends/drm/drm_egl_backend.h @@ -74,7 +74,6 @@ public: std::shared_ptr textureForOutput(Output *requestedOutput) const override; std::shared_ptr testBuffer(DrmAbstractOutput *output); - EGLConfig config(uint32_t format) const; std::optional gbmFormatForDrmFormat(uint32_t format) const; DrmGpu *gpu() const; @@ -88,7 +87,6 @@ private: DrmBackend *m_backend; QHash m_formats; - QHash m_configs; friend class EglGbmTexture; };