From f3c6b673f9176b8015e6e77b228a81b281f64865 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 12 Jul 2024 16:46:26 +0200 Subject: [PATCH] drm: return render formats properly on mgpu --- src/backend/drm/DRM.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 95e6494..42af003 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -808,19 +808,6 @@ std::vector Aquamarine::CDRMBackend::getRenderFormats() { if (p->type != DRM_PLANE_TYPE_PRIMARY) continue; - if (primary) { - TRACE(backend->log(AQ_LOG_TRACE, std::format("drm: getRenderFormats on secondary {}", gpu->path))); - - // this is a secondary GPU renderer. In order to receive buffers, - // we'll force linear modifiers. - // TODO: don't. Find a common maybe? - auto fmts = p->formats; - for (auto& fmt : fmts) { - fmt.modifiers = {DRM_FORMAT_MOD_LINEAR}; - } - return fmts; - } - return p->formats; }