summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-05-19 17:35:29 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-05-23 12:09:24 -0700
commit6ca67f62e885f0e42c0cef2db5c0ae837adfe646 (patch)
tree4fd6246b118b4354f5290fb193a0d9131b032cee /src/mesa/drivers/dri/i965/brw_fs.cpp
parent58aed1031d40e62c9f41f7c512b3165dd5913d1e (diff)
downloadexternal_mesa3d-6ca67f62e885f0e42c0cef2db5c0ae837adfe646.zip
external_mesa3d-6ca67f62e885f0e42c0cef2db5c0ae837adfe646.tar.gz
external_mesa3d-6ca67f62e885f0e42c0cef2db5c0ae837adfe646.tar.bz2
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" <mesa-stable@lists.freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 9b3186b..42a0d78 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: