From: Christoph Bumiller Date: Thu, 2 Jun 2011 12:04:05 +0000 (+0200) Subject: d3d1x/sm4: don't reset 1st index of multi-dimensional operands to 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1fd740bb778d7b3763e7c9b8383b1981084c318;p=mesa.git d3d1x/sm4: don't reset 1st index of multi-dimensional operands to 0 --- 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) {