diff options
author | Francisco Jerez <[email protected]> | 2014-01-15 22:21:30 +0100 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-02-12 23:07:57 +0100 |
commit | 019bf6ed8dd4843512e9d4924f4702ce36047ad5 (patch) | |
tree | b690ab98b2353462b2d0a90e4244c4ac6857567b /src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | |
parent | 756d37b1d6d09ad7ee3b8835888a49d4256e427b (diff) |
i965/fs: Remove fs_reg::smear.
The same effect can be achieved using a combination of ::stride and
::subreg_offset. Remove the less flexible ::smear to keep the data
members of fs_reg orthogonal.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 4 |
1 files changed, 1 insertions, 3 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 cdb7b80b7c1..a145923396d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp @@ -300,7 +300,7 @@ fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry) bool has_source_modifiers = entry->src.abs || entry->src.negate; if ((has_source_modifiers || entry->src.file == UNIFORM || - entry->src.smear != -1 || !entry->src.is_contiguous()) && + !entry->src.is_contiguous()) && !can_do_source_mods(inst)) return false; @@ -334,8 +334,6 @@ fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry) inst->src[arg].file = entry->src.file; inst->src[arg].reg = entry->src.reg; inst->src[arg].reg_offset = entry->src.reg_offset; - if (entry->src.smear != -1) - inst->src[arg].smear = entry->src.smear; inst->src[arg].subreg_offset = entry->src.subreg_offset; inst->src[arg].stride *= entry->src.stride; |