5128ca8
changeset:   623945:6117c9ecd16b
5128ca8
tag:         tip
5128ca8
parent:      623941:45e313943df5
5128ca8
user:        stransky <stransky@redhat.com>
5128ca8
date:        Fri Jun 17 12:36:38 2022 +0200
5128ca8
files:       gfx/thebes/gfxPlatform.cpp
5128ca8
description:
5128ca8
Bug 1774271 [Linux] Don't use EGL_MESA_image_dma_buf_export in Mesa/Intel due to https://gitlab.freedesktop.org/mesa/mesa/-/issues/6688 r?jgilbert
5128ca8
5128ca8
Depends on https://phabricator.services.mozilla.com/D149238
5128ca8
5128ca8
Differential Revision: https://phabricator.services.mozilla.com/D149608
5128ca8
5128ca8
5128ca8
diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp
5128ca8
--- a/gfx/thebes/gfxPlatform.cpp
5128ca8
+++ b/gfx/thebes/gfxPlatform.cpp
5128ca8
@@ -2871,6 +2871,12 @@ void gfxPlatform::InitWebGLConfig() {
5128ca8
         adapterDriverVendor.Find("radeonsi") != -1) {
5128ca8
       gfxVars::SetUseDMABufSurfaceExport(false);
5128ca8
     }
5128ca8
+    // Disable EGL_MESA_image_dma_buf_export on mesa/iris due to
5128ca8
+    // https://gitlab.freedesktop.org/mesa/mesa/-/issues/6688
5128ca8
+    if (adapterDriverVendor.Find("mesa") != -1 &&
5128ca8
+        adapterDriverVendor.Find("iris") != -1) {
5128ca8
+      gfxVars::SetUseDMABufSurfaceExport(false);
5128ca8
+    }
5128ca8
   }
5128ca8
 }
5128ca8
 
5128ca8