d3d1x/sm4: don't reset 1st index of multi-dimensional operands to 0
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 2 Jun 2011 12:04:05 +0000 (14:04 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 2 Jun 2011 12:10:37 +0000 (14:10 +0200)
src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp

index de4a1e551e24892518b5c56111612c3547eedfa0..30962900122fbb279e375730a4e32e9b706e982b 100644 (file)
@@ -144,7 +144,7 @@ struct sm4_parser
                                repr = optok.index2_repr;
                        else
                                fail("Unhandled operand index representation");
-                       op.indices[0].disp = 0;
+                       op.indices[i].disp = 0;
                        // TODO: is disp supposed to be signed here??
                        switch(repr)
                        {