[Mesa-dev] [PATCH 2.5/4] configure: define HAVE_AMD_DRIVERS when the conditional is set

Aaron Watry awatry at gmail.com
Tue Jun 6 04:12:31 UTC 2017


This will be used in the next commit to conditionally include amdgpu.h
in ac_gpu_info.h

Signed-off-by: Aaron Watry <awatry at gmail.com>
Cc: Jan Vesely <jan.vesely at rutgers.edu>
Cc: Emil Velikov <emil.velikov at collabora.com>
---
This worked earlier because I had an intermediate step where I had added
a HAVE_AMD_DRIVERS define elsewhere and didn't git clean before testing what
I ended up sending.

I am not re-sending the full series right now, but figure that 2-3 of my earlier series plus this patch
should be combined with Jan's patches [1] and [2]. I can resend the lot if someone wants.

[1] https://lists.freedesktop.org/archives/mesa-dev/2017-June/157681.html
[2] https://lists.freedesktop.org/archives/mesa-dev/2017-June/157682.html

 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 7458e06..c9d66ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2644,6 +2644,7 @@ AM_CONDITIONAL(HAVE_AMD_DRIVERS, test \( "x$HAVE_GALLIUM_R600" = xyes -a \
                                       "x$enable_opencl" = xyes \) -o \
                                       "x$HAVE_GALLIUM_RADEONSI" = xyes -o \
                                       "x$HAVE_RADEON_VULKAN" = xyes)
+AM_COND_IF(HAVE_AMD_DRIVERS, DEFINES="$DEFINES -DHAVE_AMD_DRIVERS")
 
 AM_CONDITIONAL(HAVE_INTEL_DRIVERS, test "x$HAVE_INTEL_VULKAN" = xyes -o \
                                         "x$HAVE_I965_DRI" = xyes)
-- 
2.9.3



More information about the mesa-dev mailing list