i965: Revert part of f5cc3fdcf1680b116612fac7c39f1bd79f5e555e.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 22:05:54 +0000 (15:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 22:07:17 +0000 (15:07 -0700)
Fixes non-termination in various Piglit tests.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_cse.cpp

index 1b8c9872d7f0f6426521f7123b7643fb6f3e3f35..29d2e026205bbcb9b98096512d4ce2d6fdd761a1 100644 (file)
@@ -82,7 +82,7 @@ is_expression(const vec4_instruction *const inst)
    case SHADER_OPCODE_COS:
       return inst->mlen == 0;
    default:
-      return !inst->has_side_effects();
+      return false;
    }
 }