diff options
author | José Fonseca <[email protected]> | 2011-07-01 17:06:58 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-07-01 18:32:42 +0100 |
commit | 1c59ea959215271577d888a721536ac86c6f06f5 (patch) | |
tree | 9225372d5a756fba9dc498e673a5b3c4a73817cb /src/gallium/drivers | |
parent | dda8d7ac3f0e5148d9738a57f7bc03216f6514d1 (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/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_draw.c | 2 |
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; |