summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-02-06 15:24:09 +1000
committerDave Airlie <airlied@redhat.com>2013-02-06 15:24:09 +1000
commitc6980b2add5752a7c285a846b2c9353c9d18afd4 (patch)
tree2c2d5ec1a14100a0635e53a98e9ff610d04674a6
parent59fb3f0252e9b769c5877cfe83d8dbc51cdff232 (diff)
downloadxorg-driver-xf86-video-nouveau-c6980b2add5752a7c285a846b2c9353c9d18afd4.tar.gz
nouveau: fix regression in PRIME since 58284cf32778d54cde139423450bc33360784503
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/nouveau_dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index 0c2bdab..888e0b3 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -189,7 +189,7 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegio
if (extents->x1 == 0 && extents->y1 == 0 &&
extents->x2 == pDraw->width &&
extents->y2 == pDraw->height) {
- struct nouveau_bo *bo = nouveau_pixmap_bo(dst->ppix);
+ struct nouveau_bo *bo = nouveau_pixmap_bo((PixmapPtr)dst_draw);
if (bo)
nouveau_bo_wait(bo, NOUVEAU_BO_RD, pNv->client);
}