backends/drm: remove egl config handling

Without gbm_surface, egl configs aren't needed anymore
This commit is contained in:
Xaver Hugl 2023-03-20 16:58:29 +01:00
parent 629fb00341
commit 54e338eaed
2 changed files with 0 additions and 8 deletions

View file

@ -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<DrmPipelineLayer> EglGbmBackend::createPrimaryLayer(DrmPipeline *pipeline)
{
return std::make_shared<EglGbmLayer>(this, pipeline);

View file

@ -74,7 +74,6 @@ public:
std::shared_ptr<GLTexture> textureForOutput(Output *requestedOutput) const override;
std::shared_ptr<DrmBuffer> testBuffer(DrmAbstractOutput *output);
EGLConfig config(uint32_t format) const;
std::optional<GbmFormat> gbmFormatForDrmFormat(uint32_t format) const;
DrmGpu *gpu() const;
@ -88,7 +87,6 @@ private:
DrmBackend *m_backend;
QHash<uint32_t, GbmFormat> m_formats;
QHash<uint32_t, EGLConfig> m_configs;
friend class EglGbmTexture;
};