summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-08-23 12:07:36 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:41 +0100
commit04de13b9cd0bd43c5cdcb3afab8e2c1c5a42aa33 (patch)
tree44331bb290a417de509253ee0bef060e989195e8 /src
parent4d2b0eb19e432f83845a55d552b5d1d61f040459 (diff)
llvmpipe: keep texture stride 16byte aligned
Fixes crash when resizing gears window.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index 18c2362e98..169fe87b78 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -76,7 +76,7 @@ llvmpipe_texture_layout(struct pipe_screen *screen,
pt->depth[level] = depth;
pt->nblocksx[level] = pf_get_nblocksx(&pt->block, width);
pt->nblocksy[level] = pf_get_nblocksy(&pt->block, height);
- lpt->stride[level] = pt->nblocksx[level]*pt->block.size;
+ lpt->stride[level] = align(pt->nblocksx[level]*pt->block.size, 16);
lpt->level_offset[level] = buffer_size;