From 6ca67f62e885f0e42c0cef2db5c0ae837adfe646 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 19 May 2015 17:35:29 -0700 Subject: [PATCH] i965/fs: Fix implied_mrf_writes for scratch writes We build the entire message in the generator so all the MRF writes are implied. Cc: "10.5 10.6" Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 9b3186bd3f8..42a0d78e542 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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: -- 2.30.2