summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-01-09 12:52:08 +1000
committerDave Airlie <airlied@redhat.com>2013-04-30 10:10:31 +1000
commit8fcb9d91b69abc72ddef31b9f2e8585580c6cad2 (patch)
tree88f6d1df4d29ad3f129a9f1143f95af93f441676 /fb
parent16077b81c502e04d77f81f683e0c213b9fe75393 (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 'fb')
-rw-r--r--fb/fbpixmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fb/fbpixmap.c b/fb/fbpixmap.c
index fbcdca99c..0824b64bb 100644
--- a/fb/fbpixmap.c
+++ b/fb/fbpixmap.c
@@ -67,6 +67,7 @@ fbCreatePixmapBpp(ScreenPtr pScreen, int width, int height, int depth, int bpp,
pPixmap->devKind = paddedWidth;
pPixmap->refcnt = 1;
pPixmap->devPrivate.ptr = (pointer) ((char *) pPixmap + base + adjust);
+ pPixmap->master_pixmap = NULL;
#ifdef FB_DEBUG
pPixmap->devPrivate.ptr =