tools: Add simple tool to retrieve the current cursor from X

Slightly more funky would be to poke around in the CRTC, but that should
require master. As it stands this should help verify that what X is
supplying to the driver matches user expectations

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2015-03-04 11:19:09 +00:00
parent 3e390ec411
commit 8d76f90e2c
4 changed files with 120 additions and 1 deletions

View File

@@ -26,13 +26,21 @@ AM_CFLAGS = \
drivermandir = $(DRIVER_MAN_DIR)
policydir = $(datarootdir)/polkit-1/actions
noinst_PROGRAMS =
if BUILD_TOOLS
bin_PROGRAMS = intel-virtual-output
driverman_DATA = intel-virtual-output.$(DRIVER_MAN_SUFFIX)
endif
if BUILD_TOOL_CURSOR
noinst_PROGRAMS += cursor
cursor_CFLAGS = $(TOOL_CURSOR_CFLAGS)
cursor_LDADD = $(TOOL_CURSOR_LIBS)
endif
if X11_DRI3
noinst_PROGRAMS = dri3info
noinst_PROGRAMS += dri3info
dri3info_SOURCES = dri3info.c
dri3info_CFLAGS = $(X11_DRI3_CFLAGS) $(DRI_CFLAGS)
dri3info_LDADD = $(X11_DRI3_LIBS) $(DRI_LIBS)