summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-01-10 14:34:16 +1300
committerEric Anholt <[email protected]>2015-01-10 14:35:06 +1300
commit06b6a72a3e4a36310cd664aa7e881881aeab146f (patch)
treededf97f040059b38b14ebf0340e8eeb08d88851e /src
parent92a0b0bd7099b15320faaccfd70b3c8dc877810e (diff)
vc4: Fix miscalculation of the VPM space.
We pass in a byte offset, not dword. I'm rather scared that this actually managed to pass piglit, but it does fix gears.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 77e98211c6c..cc3f2d42183 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -214,7 +214,7 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
cl_u8(&vc4->shader_rec, vpm_offset); /* VS VPM offset */
cl_u8(&vc4->shader_rec, vpm_offset); /* CS VPM offset */
- vpm_offset += align(elem_size, 4) / 4;
+ vpm_offset += align(elem_size, 4);
if (vb->stride > 0) {
max_index = MIN2(max_index,