summaryrefslogtreecommitdiff
path: root/mozilla-1774271.patch
blob: 6029b222955cc31ce2901e07255c1531f1051d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
changeset:   623945:6117c9ecd16b
tag:         tip
parent:      623941:45e313943df5
user:        stransky <stransky@redhat.com>
date:        Fri Jun 17 12:36:38 2022 +0200
files:       gfx/thebes/gfxPlatform.cpp
description:
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

Depends on https://phabricator.services.mozilla.com/D149238

Differential Revision: https://phabricator.services.mozilla.com/D149608


diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -2871,6 +2871,12 @@ void gfxPlatform::InitWebGLConfig() {
         adapterDriverVendor.Find("radeonsi") != -1) {
       gfxVars::SetUseDMABufSurfaceExport(false);
     }
+    // Disable EGL_MESA_image_dma_buf_export on mesa/iris due to
+    // https://gitlab.freedesktop.org/mesa/mesa/-/issues/6688
+    if (adapterDriverVendor.Find("mesa") != -1 &&
+        adapterDriverVendor.Find("iris") != -1) {
+      gfxVars::SetUseDMABufSurfaceExport(false);
+    }
   }
 }
 

bgstack15