summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 18c2362e98d..169fe87b78e 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;