projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda8d7a
)
svga: Use the correct element size.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 1 Jul 2011 16:06:58 +0000
(17:06 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 1 Jul 2011 17:32:42 +0000
(18:32 +0100)
Instead of always using the first element's size.
This fixes flashing floor on CINEBENCH R10.
src/gallium/drivers/svga/svga_pipe_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_draw.c
b/src/gallium/drivers/svga/svga_pipe_draw.c
index 0b4d41bb807e833855a06205867e2a190595bbc6..d53edcb23c534de320e9f880a5cf1c823e7e3a8d 100644
(file)
--- 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;