summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_state_vs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_state_vs.c b/src/gallium/drivers/svga/svga_state_vs.c
index 3d3caea7449..b82e68556e4 100644
--- a/src/gallium/drivers/svga/svga_state_vs.c
+++ b/src/gallium/drivers/svga/svga_state_vs.c
@@ -228,6 +228,7 @@ update_zero_stride( struct svga_context *svga,
util_format_get_blocksize(vel->src_format),
PIPE_TRANSFER_READ,
&transfer);
+ mapped_buffer = (uint8_t*)mapped_buffer - vel->src_offset;
translate->set_buffer(translate, vel->vertex_buffer_index,
mapped_buffer,