From 081e6694053104b922a3c6590ea3b860cbaefe31 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Mon, 22 Jul 2013 13:31:51 -0400 Subject: [PATCH] sna: Fix build error with --enable-debug=full When configuring with --enable-debug=full, I encountered the following build failure: sna_accel.c: In function 'try_upload_tiled_x': sna_accel.c:4017:118: error: 'kgem' undeclared (first use in this function) sna_accel.c:4017:118: note: each undeclared identifier is reported only once for each function it appears in Looking at the other code in that function, it appears that this was meant to be &sna->kgem. Adjusting that corrects the failure. --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 70d51c2c5db3..b3e6028dd142 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4016,7 +4016,7 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region, DBG(("%s: bo? %d, can map? %d\n", __FUNCTION__, priv->gpu_bo != NULL, - priv->gpu_bo ? kgem_bo_can_map__cpu(kgem, priv->gpu_bo, true) : 0)); + priv->gpu_bo ? kgem_bo_can_map__cpu(&sna->kgem, priv->gpu_bo, true) : 0)); replaces = region->data == NULL && w >= pixmap->drawable.width && -- 1.8.1.5