d3d1x: fix parsing of SM4 relative addressing register op
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 17 Sep 2011 10:11:44 +0000 (12:11 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 17 Sep 2011 10:11:44 +0000 (12:11 +0200)
src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp

index 30962900122fbb279e375730a4e32e9b706e982b..f406b1f8dca0ba30bb758a158c16f54f6da7be48 100644 (file)
@@ -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();