summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-07-01 17:06:58 +0100
committerJosé Fonseca <[email protected]>2011-07-01 18:32:42 +0100
commit1c59ea959215271577d888a721536ac86c6f06f5 (patch)
tree9225372d5a756fba9dc498e673a5b3c4a73817cb /src
parentdda8d7ac3f0e5148d9738a57f7bc03216f6514d1 (diff)
svga: Use the correct element size.
Instead of always using the first element's size. This fixes flashing floor on CINEBENCH R10.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_draw.c b/src/gallium/drivers/svga/svga_pipe_draw.c
index 0b4d41bb807..d53edcb23c5 100644
--- a/src/gallium/drivers/svga/svga_pipe_draw.c
+++ b/src/gallium/drivers/svga/svga_pipe_draw.c
@@ -87,7 +87,7 @@ svga_user_buffer_range(struct svga_context *svga,
struct svga_buffer *buffer = svga_buffer(vb->buffer);
unsigned first, size;
unsigned instance_div = ve[i].instance_divisor;
- unsigned elemSize = util_format_get_blocksize(ve->src_format);
+ unsigned elemSize = util_format_get_blocksize(ve[i].src_format);
svga->dirty |= SVGA_NEW_VBUFFER;