projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6537ac
)
mesa: fix bug in evaluation of structure fields
author
Brian Paul
<brianp@vmware.com>
Wed, 31 Dec 2008 00:50:39 +0000
(17:50 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 31 Dec 2008 00:50:39 +0000
(17:50 -0700)
Fixes incorrect size information. See bug 19273.
src/mesa/shader/slang/slang_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_emit.c
b/src/mesa/shader/slang/slang_emit.c
index 4f8e694a739e6f6a409e91e19116ddb62e950ae3..500112b6f67156340a1233c20867b2fbce9d2f4d 100644
(file)
--- a/
src/mesa/shader/slang/slang_emit.c
+++ b/
src/mesa/shader/slang/slang_emit.c
@@
-2002,9
+2002,7
@@
emit_struct_field(slang_emit_info *emitInfo, slang_ir_node *n)
_slang_copy_ir_storage(n->Store, n->Children[0]->Store);
n->Store->Index = n->Children[0]->Store->Index + fieldOffset / 4;
- /* XXX test this:
- n->Store->Index += fieldOffset / 4;
- */
+ n->Store->Size = fieldSize;
switch (fieldSize) {
case 1: