mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-07-19 18:39:09 +02:00
41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From 18bda704c4e54bd947746729a0ddde672376c081 Mon Sep 17 00:00:00 2001
|
|
From: Wujian Sun <wujian.sun_1@nxp.com>
|
|
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 <wujian.sun_1@nxp.com>
|
|
---
|
|
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
|
|
|