From 18bda704c4e54bd947746729a0ddde672376c081 Mon Sep 17 00:00:00 2001 From: Wujian Sun Date: Mon, 23 Oct 2023 15:21:53 +0800 Subject: [PATCH 2/7] Disable dri for imx gpu Upstream-Status: Inappropriate [i.MX-specific] Signed-off-by: Wujian Sun --- content/gpu/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn index 098082510efab..9befdb8c01499 100644 --- a/content/gpu/BUILD.gn +++ b/content/gpu/BUILD.gn @@ -8,6 +8,11 @@ import("//build/config/ui.gni") import("//gpu/vulkan/features.gni") import("//media/media_options.gni") +declare_args() { + # Checks if i.MX GPU is being used + use_imxgpu = false +} + # See //content/BUILD.gn for how this works. group("gpu") { visibility = [ "//content/*" ] # This is an internal content API. @@ -128,7 +133,7 @@ target(link_target_type, "gpu_sources") { # Use DRI on desktop Linux builds. if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && - !is_castos) { + !is_castos && !use_imxgpu) { configs += [ "//build/config/linux/dri" ] } } -- 2.34.1