Mesa (master): i965: Bail on FS copy propagation for scratch writes with source modifiers
Anuj Phogat
aphogat at kemper.freedesktop.org
Thu Aug 14 18:10:07 UTC 2014
Module: Mesa
Branch: master
Commit: 9b9dd22f4448da6a6e825faaa40cd601b6fb2b59
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b9dd22f4448da6a6e825faaa40cd601b6fb2b59
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date: Mon Jul 28 19:27:59 2014 -0700
i965: Bail on FS copy propagation for scratch writes with source modifiers
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
index 498e078..09f51bc 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -311,6 +311,10 @@ fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry)
!inst->can_do_source_mods(brw))
return false;
+ if (has_source_modifiers &&
+ inst->opcode == SHADER_OPCODE_GEN4_SCRATCH_WRITE)
+ return false;
+
/* Bail if the result of composing both strides would exceed the
* hardware limit.
*/
More information about the mesa-commit
mailing list