i965: Bail on FS copy propagation for scratch writes with source modifiers

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Anuj Phogat 2014-07-28 19:27:59 -07:00
parent 7c1ea00eaf
commit 9b9dd22f44

View file

@ -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.
*/