mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
dmabufff
This commit is contained in:
parent
efd886ec0c
commit
4543d8ae89
@ -398,9 +398,20 @@ CLinuxDMABufV1Protocol::CLinuxDMABufV1Protocol(const wl_interface* iface, const
|
||||
if (impl->type() != Aquamarine::AQ_BACKEND_DRM)
|
||||
continue;
|
||||
aqFormats = impl->getRenderFormats();
|
||||
if (!aqFormats.empty())
|
||||
break;
|
||||
}
|
||||
|
||||
if (aqFormats.empty()) {
|
||||
// fallback: use EGL formats
|
||||
for (auto& fmt : g_pHyprOpenGL->getDRMFormats()) {
|
||||
aqFormats.emplace_back(Aquamarine::SDRMFormat{
|
||||
.drmFormat = fmt.drmFormat,
|
||||
.modifiers = fmt.modifiers,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
SDMABufTranche tranche = {
|
||||
.device = *dev,
|
||||
.formats = aqFormats,
|
||||
|
Loading…
Reference in New Issue
Block a user