332e1f2de143b3c2d8a314597fb8192c82188fa5
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0004-Don-t-use-DRI-for-renesas.patch
1 From 60b8b1379f2eb154a3c58c00dabbf0f9f0bd5445 Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Thu, 4 May 2023 10:42:06 +0200
4 Subject: [PATCH 4/9] Don't use DRI for renesas
5
6 This adds the use_dri flag that defauls to true and
7 can be disabled if we are building CEF using ozone + wayland
8
9 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
10 ---
11  content/gpu/BUILD.gn | 8 ++++++--
12  1 file changed, 6 insertions(+), 2 deletions(-)
13
14 diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn
15 index 9f5f303b2f220..f7639030ac30c 100644
16 --- a/content/gpu/BUILD.gn
17 +++ b/content/gpu/BUILD.gn
18 @@ -8,6 +8,10 @@ import("//build/config/ui.gni")
19  import("//gpu/vulkan/features.gni")
20  import("//media/media_options.gni")
21  
22 +declare_args() {
23 +  use_dri = true
24 +}
25 +
26  # See //content/BUILD.gn for how this works.
27  group("gpu") {
28    visibility = [ "//content/*" ]  # This is an internal content API.
29 @@ -137,8 +141,8 @@ target(link_target_type, "gpu_sources") {
30    }
31  
32    # Use DRI on desktop Linux builds.
33 -  if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux &&
34 -      !is_castos) {
35 +  if (use_dri && current_cpu != "s390x" && current_cpu != "ppc64" &&
36 +      is_linux && !is_castos) {
37      configs += [ "//build/config/linux/dri" ]
38    }
39  }
40 -- 
41 2.39.2
42