From: Brian Paul Date: Wed, 31 Dec 2008 00:50:39 +0000 (-0700) Subject: mesa: fix bug in evaluation of structure fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8d7db31e2a6784c765911233cb3d888f612837f;p=mesa.git mesa: fix bug in evaluation of structure fields Fixes incorrect size information. See bug 19273. --- 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: