Module: Mesa
Branch: master
Commit: d1fd740bb778d7b3763e7c9b8383b1981084c318
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1fd740bb778d7b3763e7c9b8383b1981084c318

Author: Christoph Bumiller <[email protected]>
Date:   Thu Jun  2 14:04:05 2011 +0200

d3d1x/sm4: don't reset 1st index of multi-dimensional operands to 0

---

 .../d3d1x/d3d1xshader/src/sm4_parse.cpp            |    2 +-
 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 de4a1e5..3096290 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)
                        {

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to