From ee09c1e1c37ba7a143db3300b11ef3b324891563 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 17 Sep 2011 12:11:44 +0200 Subject: [PATCH] d3d1x: fix parsing of SM4 relative addressing register op --- src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp b/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp index 30962900122..f406b1f8dca 100644 --- a/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp +++ b/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp @@ -157,7 +157,7 @@ struct sm4_parser case SM4_OPERAND_INDEX_REPR_REG: relative: op.indices[i].reg.reset(new sm4_op()); - read_op(&*op.indices[0].reg); + read_op(&*op.indices[i].reg); break; case SM4_OPERAND_INDEX_REPR_REG_IMM32: op.indices[i].disp = (int32_t)read32(); -- 2.30.2