summaryrefslogtreecommitdiff
path: root/dix/dispatch.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-14 15:24:46 +0100
committerDave Airlie <airlied@redhat.com>2012-07-07 10:37:11 +0100
commit9b8217f9ef6279fff6628631d18497bed0343ef9 (patch)
tree2c7a3d271aff66bb12c05e93700ee460ee7168ae /dix/dispatch.c
parentc5cc2a8243c5e6bf454af989b7512ec7e20fc3f2 (diff)
dix/pixmap: track dirty pixmaps in server. (v4)
This adds two functions for drivers to use directly to keep a linked list of slave pixmaps to do damage tracking on and keep updated. It also adds a helper function that drivers may optionally call to do a simple copy area damage update. v2: use damage.h not damagestr.h, fixes ephyr build. v3: address ajax review: use slave_dst, drop unused dst member. v4: check DamageCreate return, add SourceValidate comment, add a comment addressing possible optimisation possibility Reviewed-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'dix/dispatch.c')
-rw-r--r--dix/dispatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 29ac5a45a..bc803d78f 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -3742,6 +3742,7 @@ static int init_screen(ScreenPtr pScreen, int i, Bool gpu)
pScreen->ClipNotify = 0; /* for R4 ddx compatibility */
pScreen->CreateScreenResources = 0;
+ xorg_list_init(&pScreen->pixmap_dirty_list);
xorg_list_init(&pScreen->unattached_list);
xorg_list_init(&pScreen->output_slave_list);