mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
7adce61c32
commit
f62a05d8f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user