diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-10 15:19:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-10 15:22:31 +0100 |
commit | 755a7107aed268d87c5cc0feb1ba388b0cb7fc59 (patch) | |
tree | 0e32987cc9f2a29988ed2661f087e311c07af65c | |
parent | c8502e350cb18f6f5d821d237ffcee453f347eba (diff) |
sna: Fix typo and use the right pointer for kgem_bo_destroy
Useless warnings in xorg headers ftl.
References: https://bugs.freedesktop.org/show_bug.cgi?id=48400
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index ab2997d1..b6adc606 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1934,7 +1934,8 @@ sna_drawable_use_bo(DrawablePtr drawable, if (priv->gpu_bo && priv->gpu_bo->proxy) { assert(priv->gpu_bo->proxy->rq); - kgem_bo_destroy(to_sna_from_pixmap(pixmap), priv->gpu_bo); + kgem_bo_destroy(&to_sna_from_pixmap(pixmap)->kgem, + priv->gpu_bo); priv->gpu_bo = NULL; goto use_cpu_bo; } @@ -2727,7 +2728,7 @@ sna_put_zpixmap_blt(DrawablePtr drawable, GCPtr gc, RegionPtr region, if (priv->gpu_bo && priv->gpu_bo->proxy) { DBG(("%s: discarding cached upload buffer\n", __FUNCTION__)); assert(priv->gpu_bo->proxy->rq); - kgem_bo_destroy(sna, priv->gpu_bo); + kgem_bo_destroy(&sna->kgem, priv->gpu_bo); priv->gpu_bo = NULL; } |