Permalink
Browse files

svga: Use the correct element size.

Instead of always using the first element's size.

This fixes flashing floor on CINEBENCH R10.
  • Loading branch information...
jrfonseca committed Jul 1, 2011
1 parent dda8d7a commit 1c59ea959215271577d888a721536ac86c6f06f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 1c59ea9

Please sign in to comment.