summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-05-30 01:23:41 -0700
committerKeith Packard <keithp@keithp.com>2017-06-01 14:17:34 -0700
commit4b08fecc5c68478f857c5505309a964736c67df7 (patch)
treec5cdc5c8628611fc8ebac260d53c8d9024fef7ca /Makefile
parent062ee2e834efa4a9a01beba49e15905dbb2f8475 (diff)
Use the VK_KEITHP_kms_display and VK_KHR_display extensions and DRM leases
This creates a lease for an idle-but-connected monitor, passes that in to the Vulkan driver using the VK_KEITHP_kms_display extension and then uses the VK_KHR_display extension to display output directly to that, bypassing the window system. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 91544e4..697bb3b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ INCS=\
gettime.h\
linmath.h
-LIBS=-L/local/xorg/lib -lvulkan -lxcb -lm
+LIBS=-L/local/xorg/lib -lvulkan -lxcb-randr -lxcb -lm -ldrm
TARGET=cube
@@ -15,7 +15,7 @@ GLSV=glslangValidator
SPV=cube-vert.spv cube-frag.spv
-CFLAGS=-O0 -g -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_KMS_KEITHP -I/local/xorg/include -I/local/xorg/include/libdrm
+CFLAGS=-O0 -g -DVK_USE_PLATFORM_DISPLAY_KHR -I/local/xorg/include -I/local/xorg/include/libdrm
all: $(TARGET) $(SPV)