瀏覽代碼

mesa: fix bug in evaluation of structure fields

Fixes incorrect size information.  See bug 19273.

(cherry picked from commit e8d7db31e2)
tags/mesa_20090313
Brian Paul 16 年之前
父節點
當前提交
158d3febd8
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      src/mesa/shader/slang/slang_emit.c

+ 1
- 3
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:

Loading…
取消
儲存