Mesa (master): i965/fs: Fix implied_mrf_writes for scratch writes
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Sat May 23 19:48:23 UTC 2015
Module: Mesa
Branch: master
Commit: 6ca67f62e885f0e42c0cef2db5c0ae837adfe646
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ca67f62e885f0e42c0cef2db5c0ae837adfe646
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Tue May 19 17:35:29 2015 -0700
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 at lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
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 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:
More information about the mesa-commit
mailing list