i965/fs: Fix implied_mrf_writes for scratch writes
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 May 2015 00:35:29 +0000 (17:35 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 May 2015 19:09:24 +0000 (12:09 -0700)
We build the entire message in the generator so all the MRF writes are
implied.

Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 9b3186b..42a0d78 100644 (file)
@@ -1050,7 +1050,7 @@ fs_visitor::implied_mrf_writes(fs_inst *inst)
    case FS_OPCODE_VARYING_PULL_CONSTANT_LOAD:
       return inst->mlen;
    case SHADER_OPCODE_GEN4_SCRATCH_WRITE:
-      return 2;
+      return inst->mlen;
    case SHADER_OPCODE_UNTYPED_ATOMIC:
    case SHADER_OPCODE_UNTYPED_SURFACE_READ:
    case SHADER_OPCODE_UNTYPED_SURFACE_WRITE: