From d1fd740bb778d7b3763e7c9b8383b1981084c318 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Thu, 2 Jun 2011 14:04:05 +0200 Subject: [PATCH] d3d1x/sm4: don't reset 1st index of multi-dimensional operands to 0 --- src/gallium/state_trackers/d3d1x/d3d1xshader/src/sm4_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2