Module: Mesa Branch: gallium-0.2 Commit: e8d7db31e2a6784c765911233cb3d888f612837f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8d7db31e2a6784c765911233cb3d888f612837f
Author: Brian Paul <[email protected]> Date: Tue Dec 30 17:50:39 2008 -0700 mesa: fix bug in evaluation of structure fields Fixes incorrect size information. See bug 19273. --- src/mesa/shader/slang/slang_emit.c | 4 +--- 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 4f8e694..500112b 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: _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
