diff options
Diffstat (limited to 'dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0003-Disable-dri-for-imx-gpu.patch')
| -rw-r--r-- | dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0003-Disable-dri-for-imx-gpu.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0003-Disable-dri-for-imx-gpu.patch b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0003-Disable-dri-for-imx-gpu.patch new file mode 100644 index 000000000..73b917fb6 --- /dev/null +++ b/dynamic-layers/chromium-browser-layer/recipes-browser/chromium/chromium-ozone-wayland/0003-Disable-dri-for-imx-gpu.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Index: chromium-96.0.4664.45/content/gpu/BUILD.gn | ||
| 2 | =================================================================== | ||
| 3 | --- chromium-96.0.4664.45.orig/content/gpu/BUILD.gn | ||
| 4 | +++ chromium-96.0.4664.45/content/gpu/BUILD.gn | ||
| 5 | @@ -7,6 +7,11 @@ import("//build/config/ui.gni") | ||
| 6 | import("//gpu/vulkan/features.gni") | ||
| 7 | import("//media/media_options.gni") | ||
| 8 | |||
| 9 | +declare_args() { | ||
| 10 | + # Checks if i.MX GPU is being used | ||
| 11 | + use_imxgpu = false | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | # See //content/BUILD.gn for how this works. | ||
| 15 | group("gpu") { | ||
| 16 | visibility = [ "//content/*" ] # This is an internal content API. | ||
| 17 | @@ -136,7 +141,7 @@ target(link_target_type, "gpu_sources") | ||
| 18 | |||
| 19 | # Use DRI on desktop Linux builds. | ||
| 20 | if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && | ||
| 21 | - (!is_chromecast || is_cast_desktop_build)) { | ||
| 22 | + (!is_chromecast || is_cast_desktop_build) && !use_imxgpu) { | ||
| 23 | configs += [ "//build/config/linux/dri" ] | ||
| 24 | } | ||
| 25 | } | ||
