From: Christoph Bumiller Date: Sat, 17 Sep 2011 10:11:44 +0000 (+0200) Subject: d3d1x: fix parsing of SM4 relative addressing register op X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee09c1e1c37ba7a143db3300b11ef3b324891563;p=mesa.git d3d1x: fix parsing of SM4 relative addressing register op --- 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();