aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-09-17 12:11:44 +0200
committerChristoph Bumiller <[email protected]>2011-09-17 12:11:44 +0200
commitee09c1e1c37ba7a143db3300b11ef3b324891563 (patch)
tree8649acdc6512efc77e5866f57e74573356ea1a55
parent4a06248281f65d8a653c1bb744947bb6d47fdc9c (diff)
d3d1x: fix parsing of SM4 relative addressing register op
-rw-r--r--src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp2
1 files changed, 1 insertions, 1 deletions
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();