Bug 1862957 [Linux] Set gfxVars::SetDrmRenderDevice() even if dmabuf operations are disabled r=emilio

GetAndInitDeviceDisplay() uses DrmRenderDevice to create GL context over drm device so we should set it even if dmabuf operations are disabled.

Differential Revision: https://phabricator.services.mozilla.com/D192933
This commit is contained in:
stransky 2023-11-08 11:36:55 +00:00
parent 7adce61c32
commit f62a05d8f8

View File

@ -217,11 +217,11 @@ void gfxPlatformGtk::InitDmabufConfig() {
"FEATURE_FAILURE_REQUIRES_EGL"_ns);
}
if (feature.IsEnabled()) {
nsAutoCString drmRenderDevice;
gfxInfo->GetDrmRenderDevice(drmRenderDevice);
gfxVars::SetDrmRenderDevice(drmRenderDevice);
nsAutoCString drmRenderDevice;
gfxInfo->GetDrmRenderDevice(drmRenderDevice);
gfxVars::SetDrmRenderDevice(drmRenderDevice);
if (feature.IsEnabled()) {
if (!GetDMABufDevice()->IsEnabled(failureId)) {
feature.ForceDisable(FeatureStatus::Failed, "Failed to configure",
failureId);