summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiancyin <tianci.yin@amd.com>2022-08-10 16:46:15 +0800
committerShashank Sharma <5287-contactshashanksharma@users.noreply.gitlab.freedesktop.org>2022-08-18 10:46:37 +0000
commitdc81177ef342bf8c2aa5a6fd6687c7a09b4f9709 (patch)
tree1ebeb60e1eb8409bda0eb351fd10c68503c6f2c0
parenta3a012b649eb9b3066abefe163a72854514792fa (diff)
Fix screen corruption on secondary GPU
[why] On RHEL9+, xorg-server.pc shows that the Xorg no longer depends on dri, and dri.pc provides "/opt/amdgpu/include" path for pkg-config, this cause pkg-config no longer output "-I/opt/amdgpu/include", consequently the configure can't find gbm.h and HAVE_GBM_BO_USE_LINEAR is not declared, that cause the corruption. [how] Since the gbm.pc also provides the "/opt/amdgpu/include" path, in module dependence checking, GBM_CFLAGS get this path, so just explicitly add GBM_CFLAGS into CPPFLAGS can fix this issue. Signed-off-by: tiancyin <tianci.yin@amd.com>
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3172b39..852efea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,7 +110,7 @@ fi
AM_CONDITIONAL(LIBUDEV, test x$LIBUDEV = xyes)
SAVE_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
+CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $GBM_CFLAGS"
AC_MSG_CHECKING([whether to include GLAMOR support])
AC_ARG_ENABLE(glamor,