diff options
author | Dave Airlie <airlied@redhat.com> | 2013-01-09 12:52:08 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-04-30 10:10:31 +1000 |
commit | 8fcb9d91b69abc72ddef31b9f2e8585580c6cad2 (patch) | |
tree | 88f6d1df4d29ad3f129a9f1143f95af93f441676 /dix | |
parent | 16077b81c502e04d77f81f683e0c213b9fe75393 (diff) |
dix: allow pixmap dirty helper to be used for non-shared pixmaps
this allows the pixmap dirty helper to be used for reverse optimus,
where the GPU wants to copy from the shared pixmap to its VRAM copy.
[airlied: slave_dst is wrong name now but pointless ABI churn at this point]
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/pixmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/pixmap.c b/dix/pixmap.c index 241881262..fe9214739 100644 --- a/dix/pixmap.c +++ b/dix/pixmap.c @@ -243,6 +243,8 @@ Bool PixmapSyncDirtyHelper(PixmapDirtyUpdatePtr dirty, RegionPtr dirty_region) } dst = dirty->slave_dst->master_pixmap; + if (!dst) + dst = dirty->slave_dst; RegionTranslate(dirty_region, -dirty->x, -dirty->y); n = RegionNumRects(dirty_region); |