[Mesa-dev] [PATCH] configure.ac: Require amdgpu for r600.

Vinson Lee vlee at freedesktop.org
Tue May 30 21:14:37 UTC 2017


This is the r600 build error with libdrm < 2.4.81.

  CC       common/common_libamd_common_la-ac_gpu_info.lo
common/ac_gpu_info.c: In function ‘ac_query_gpu_info’:
common/ac_gpu_info.c:161:36: error: ‘AMDGPU_HW_IP_VCN_DEC’ undeclared (first use in this function)
   r = amdgpu_query_hw_ip_info(dev, AMDGPU_HW_IP_VCN_DEC, 0, &vcn_dec);
                                    ^~~~~~~~~~~~~~~~~~~~

Fixes: 0abc24723cdb ("amd/common: add vcn dec ip info query for amdgpu version 3.17")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index b57be07e24ac..019f805bceea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2431,6 +2431,7 @@ if test -n "$with_gallium_drivers"; then
         xr600)
             HAVE_GALLIUM_R600=yes
             PKG_CHECK_MODULES([RADEON], [libdrm >= $LIBDRM_RADEON_REQUIRED libdrm_radeon >= $LIBDRM_RADEON_REQUIRED])
+            PKG_CHECK_MODULES([AMDGPU], [libdrm >= $LIBDRM_AMDGPU_REQUIRED libdrm_amdgpu >= $LIBDRM_AMDGPU_REQUIRED])
             require_libdrm "r600"
             if test "x$enable_llvm" = xyes; then
                 radeon_llvm_check $LLVM_REQUIRED_R600 "r600"
-- 
2.9.3



More information about the mesa-dev mailing list