xf86-video-intel: tools/virtual.c
Chris Wilson
ickle at kemper.freedesktop.org
Sun Sep 8 05:52:29 PDT 2013
tools/virtual.c | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 0ceba648211009a464e46855a52737219ab9b534
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Sep 8 13:51:14 2013 +0100
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 at chris-wilson.co.uk>
diff --git a/tools/virtual.c b/tools/virtual.c
index b45f6fd..c363a3e 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;
More information about the xorg-commit
mailing list