[Piglit] [PATCH] CMake: Fix GBM version requirement for DMA BUF tests

Dylan Baker dylan at pnwbakers.com
Mon Aug 22 22:38:45 UTC 2016


In commit a1efbfb9 support was added for dmabuf with GBM on non-intel
platforms, but the requirements were set incorrectly. They require
symbols added in mesa commit 8aeb6d76, which is not in any mesa 11
release, only in mesa 12.

This corrects the requirement to be version 12.0

bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97435
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
cc: Eric Anholt <eric at anholt.net>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55cfc45..9275743 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -141,7 +141,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 	if(GBM_FOUND)
 		set(PIGLIT_HAS_GBM True)
 		add_definitions(-DPIGLIT_HAS_GBM)
-		if (GBM_VERSION VERSION_GREATER "11.1")
+		if (GBM_VERSION VERSION_EQUAL "12.0" OR GBM_VERSION VERSION_GREATER "12.0")
 			set(PIGLIT_HAS_GBM_BO_MAP True)
 			add_definitions(-DPIGLIT_HAS_GBM_BO_MAP)
 		endif()
-- 
2.9.3



More information about the Piglit mailing list