summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-25 10:27:23 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-27 14:26:54 +0000
commit771b86e2a808bd74e7e2c316f8414766c2b267c6 (patch)
tree9c9f58677ca0b63fa2f77c71dcb207caf57534b8 /tools
parente46c196ecc8ad83f78f4f948b5dcb07906f249c2 (diff)
intel-virtual-output: Add DBG option to force 16 bit transfers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index df925168..714a0e86 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -74,6 +74,7 @@
#endif
#define FORCE_FULL_REDRAW 0
+#define FORCE_16BIT_XFER 0
struct display {
Display *dpy;
@@ -1462,7 +1463,7 @@ static int clone_output_init(struct clone *clone, struct output *output,
DBG(("%s-%s use shm? %d (use shm pixmap? %d)\n",
DisplayString(dpy), name, display->has_shm, display->has_shm_pixmap));
- depth = output->use_shm ? display->depth : 16;
+ depth = output->use_shm && !FORCE_16BIT_XFER ? display->depth : 16;
if (depth < clone->depth)
clone->depth = depth;