diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-08 13:51:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-08 13:51:14 +0100 |
commit | 0ceba648211009a464e46855a52737219ab9b534 (patch) | |
tree | 322a4ce2bf6ceee4fb3c72e8d905643a5b5fa885 /tools | |
parent | 6a6517c748c33a73c92ca67cae9bfb00d48d2382 (diff) |
intel-virtual-output: Debug option for forcing full redraws
References: https://bugs.freedesktop.org/show_bug.cgi?id=68987
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virtual.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index b45f6fdc..c363a3e4 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -62,6 +62,8 @@ #define DBG(x) #endif +#define FORCE_FULL_REDRAW 0 + struct display { Display *dpy; struct clone *clone; @@ -1329,6 +1331,13 @@ static int clone_paint(struct clone *c) if (c->dst.serial > LastKnownRequestProcessed(c->dst.dpy)) return EAGAIN; + if (FORCE_FULL_REDRAW) { + c->damaged.x1 = c->src.x; + c->damaged.y1 = c->src.y; + c->damaged.x2 = c->src.x + c->width; + c->damaged.y2 = c->src.y + c->height; + } + clip.x = c->damaged.x1; clip.y = c->damaged.y1; clip.width = c->damaged.x2 - c->damaged.x1; |