From c6980b2add5752a7c285a846b2c9353c9d18afd4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 6 Feb 2013 15:24:09 +1000 Subject: nouveau: fix regression in PRIME since 58284cf32778d54cde139423450bc33360784503 Signed-off-by: Dave Airlie --- src/nouveau_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.1