diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-16 17:19:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-16 17:19:11 +0000 |
commit | d887f209f1210a294afc2c3883a97f7ac9f42bad (patch) | |
tree | ea018014cc0ae5b2fb047e85424d74cc46f06015 | |
parent | 63c0d10faee3c7cca050505c2e81c416119e57e9 (diff) |
sna/dri: Mesa expects the 8-bit stencil buffer to have 2-bytes per pixel
The seperate stencil buffer is full of lies, why worry about one more?
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_dri.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 283b8dbc..e2eed1d6 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -255,12 +255,11 @@ sna_dri_create_buffer(DrawablePtr drawable, * W fencing. */ bpp = format ? format : drawable->bitsPerPixel; + bpp *= 2; bo = kgem_create_2d(&sna->kgem, ALIGN(drawable->width, 64), ALIGN((drawable->height + 1) / 2, 64), - 2*bpp, - I915_TILING_NONE, - CREATE_EXACT); + bpp, I915_TILING_NONE, CREATE_EXACT); break; case DRI2BufferDepth: |