summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-06-02 14:04:05 +0200
committerChristoph Bumiller <[email protected]>2011-06-02 14:10:37 +0200
commitd1fd740bb778d7b3763e7c9b8383b1981084c318 (patch)
tree5a274ccc5eaeafb253cf3aff57fb7f9048780a0a /src/gallium
parenta531513b06be45868bc4d4f6a9757fe6992ef304 (diff)
d3d1x/sm4: don't reset 1st index of multi-dimensional operands to 0
Diffstat (limited to 'src/gallium')
-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 de4a1e551e2..30962900122 100644
--- a/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp
+++ b/src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp
@@ -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)
{