mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 01:25:59 +01:00
drm: return render formats properly on mgpu
This commit is contained in:
parent
27008ef767
commit
f3c6b673f9
1 changed files with 0 additions and 13 deletions
|
@ -808,19 +808,6 @@ std::vector<SDRMFormat> 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue