From 1c59ea959215271577d888a721536ac86c6f06f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 1 Jul 2011 17:06:58 +0100 Subject: [PATCH] svga: Use the correct element size. Instead of always using the first element's size. This fixes flashing floor on CINEBENCH R10. --- src/gallium/drivers/svga/svga_pipe_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2