i965/vs: Fix implied_mrf_writes() for integer division pre-gen6.
authorEric Anholt <eric@anholt.net>
Tue, 28 May 2013 21:35:19 +0000 (14:35 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 29 May 2013 18:02:01 +0000 (11:02 -0700)
Previously it would assertion fail in debug builds (though the correct
value was returned in a non-debug build).  Marking it as a candidate for
stable even though it has no current consumers in the stable branches, in
case one shows up in a later backport.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64727
NOTE: This is a candidate for stable branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index c5aa338a72a86b9720784d4eddd5da8ab54fce8b..4295e6e151368ca369fc7093b26ad0159c6437b0 100644 (file)
@@ -247,6 +247,8 @@ vec4_visitor::implied_mrf_writes(vec4_instruction *inst)
    case SHADER_OPCODE_SIN:
    case SHADER_OPCODE_COS:
       return 1;
+   case SHADER_OPCODE_INT_QUOTIENT:
+   case SHADER_OPCODE_INT_REMAINDER:
    case SHADER_OPCODE_POW:
       return 2;
    case VS_OPCODE_URB_WRITE: