diff options
author | Anuj Phogat <[email protected]> | 2014-07-28 19:27:59 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2014-08-14 11:03:00 -0700 |
commit | 9b9dd22f4448da6a6e825faaa40cd601b6fb2b59 (patch) | |
tree | cd68c953ae31ab96ef1e777a283eee395d6617b0 /src/mesa/drivers | |
parent | 7c1ea00eafc882b67784e6cfd8ee46a7c6fc05dc (diff) |
i965: Bail on FS copy propagation for scratch writes with source modifiers
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 498e0782f69..09f51bc0fa4 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. */ |