summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2008-12-30 17:50:39 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 09:18:25 -0700
commit158d3febd859f46fe2b96db55c7145e19b82f52e (patch)
treeb4b57fd82fe5695b042c506bf7700f854b0b103e /src/mesa/shader
parentb66fe32c52f1920297a6af0391b99f54eb8b310e (diff)
mesa: fix bug in evaluation of structure fields
Fixes incorrect size information. See bug 19273. (cherry picked from commit e8d7db31e2a6784c765911233cb3d888f612837f)
Diffstat (limited to 'src/mesa/shader')
-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 1e9b4c1254..92827cf222 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -1999,9 +1999,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: