summaryrefslogtreecommitdiff
path: root/src/intel_uxa.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-03-09 08:26:44 +0000
committerOwain G. Ainsworth <oga@openbsd.org>2011-03-16 20:19:22 +0000
commitcdd2895372d8406c1010d6cbf2c189fd061908e9 (patch)
tree993a1c6a5cb5a6f23f4202ea19735f35eb503d8d /src/intel_uxa.c
parent21393783fcb228d7d7240dada744a758d8cce945 (diff)
Update priv->stride after bo reallocation
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 0bb1a5f19e09dc553761ddd90bf6319eab94a597) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'src/intel_uxa.c')
-rw-r--r--src/intel_uxa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel_uxa.c b/src/intel_uxa.c
index 68037c99..1abc0dc8 100644
--- a/src/intel_uxa.c
+++ b/src/intel_uxa.c
@@ -645,9 +645,7 @@ void intel_set_pixmap_bo(PixmapPtr pixmap, dri_bo * bo)
priv->bo = bo;
priv->stride = intel_pixmap_pitch(pixmap);
- ret = drm_intel_bo_get_tiling(bo,
- &tiling,
- &swizzle_mode);
+ ret = drm_intel_bo_get_tiling(bo, &tiling, &swizzle_mode);
if (ret != 0) {
FatalError("Couldn't get tiling on bo %p: %s\n",
bo, strerror(-ret));
@@ -772,6 +770,8 @@ static Bool intel_uxa_put_image(PixmapPtr pixmap,
if (tiling != I915_TILING_NONE)
drm_intel_bo_set_tiling(bo, &tiling, stride);
+ priv->stride = stride;
+ priv->tiling = tiling;
screen->ModifyPixmapHeader(pixmap,
w, h,