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
6 This adds the use_dri flag that defauls to true and
7 can be disabled if we are building CEF using ozone + wayland
9 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
11 content/gpu/BUILD.gn | 8 ++++++--
12 1 file changed, 6 insertions(+), 2 deletions(-)
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")
26 # See //content/BUILD.gn for how this works.
28 visibility = [ "//content/*" ] # This is an internal content API.
29 @@ -137,8 +141,8 @@ target(link_target_type, "gpu_sources") {
32 # Use DRI on desktop Linux builds.
33 - if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux &&
35 + if (use_dri && current_cpu != "s390x" && current_cpu != "ppc64" &&
36 + is_linux && !is_castos) {
37 configs += [ "//build/config/linux/dri" ]