summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-05-17 22:57:37 -0700
committerKeith Packard <keithp@keithp.com>2017-05-17 22:57:37 -0700
commitc7ec1f439b79a49f25067a52cdc15c6540a6f5b0 (patch)
treec2cabcf59c4975ba6a0ee9b597f0c9b9ca8a5290 /tests
parent0bbc015828bdb99e85e6731ce92428557902701f (diff)
Add VK_KEITHP_kms_display extension
This allows the application to provide an existing DRM device file descriptor into the vulkan drivers instead of having the driver open the device itself. There is additional information provided about the desired mode to set on the device; that will be used to apply a mode set on the first presentation request and to restore the mode after a VT switch has occurred. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index df41931d..fddc0363 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -10,6 +10,11 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_definitions(-DVK_USE_PLATFORM_XCB_KHR)
endif()
+ if (BUILD_KMS_SUPPORT)
+ add_definitions(-DVK_USE_PLATFORM_KMS_KEITHP)
+ include_directories(${KMS_INCLUDE_DIR})
+ endif()
+
if (BUILD_WSI_XLIB_SUPPORT)
add_definitions(-DVK_USE_PLATFORM_XLIB_KHR)
endif()