Mesa (master): svga: Use the correct element size.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Jul 1 17:32:50 UTC 2011
Module: Mesa
Branch: master
Commit: 1c59ea959215271577d888a721536ac86c6f06f5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c59ea959215271577d888a721536ac86c6f06f5
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Jul 1 17:06:58 2011 +0100
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 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 0b4d41b..d53edcb 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;
More information about the mesa-commit
mailing list