summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-12-30 17:50:39 -0700
committerBrian Paul <[email protected]>2008-12-30 17:50:39 -0700
commite8d7db31e2a6784c765911233cb3d888f612837f (patch)
treeaac03b61d6f987444ac5ad96928f04501698d780
parentc6537ac8b8130cf2271c8d1e51137a575073c762 (diff)
mesa: fix bug in evaluation of structure fields
Fixes incorrect size information. See bug 19273.
-rw-r--r--src/mesa/shader/slang/slang_emit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 4f8e694a739..500112b6f67 100644
--- 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: