glsl_to_tgsi: make simplify_cmp work with arrays
authorChristian König <christian.koenig@amd.com>
Mon, 25 Mar 2013 09:57:48 +0000 (10:57 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 26 Mar 2013 09:22:27 +0000 (10:22 +0100)
Even when we have arrays it is possible for simplify_cmp
to work on temps, just not on arrays.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=62696
Signed-off-by: Christian König <christian.koenig@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index e3718eeda3f03153ee3a68cba2394a0c5653a4aa..08855647c87beba45dde6294e65c81db146fcab4 100644 (file)
@@ -3191,7 +3191,7 @@ glsl_to_tgsi_visitor::simplify_cmp(void)
          prevWriteMask = tempWrites[inst->dst.index];
          tempWrites[inst->dst.index] |= inst->dst.writemask;
       } else
-         break;
+         continue;
 
       /* For a CMP to be considered a conditional write, the destination
        * register and source register two must be the same. */