diff options
author | Francisco Jerez <currojerez@riseup.net> | 2016-09-01 21:19:29 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-09-14 14:50:57 -0700 |
commit | 950af5ed40895ba7eb664a64e869cf4ae1104fc7 (patch) | |
tree | a83ef8c5b1eb954107b938050559be69216d4488 /src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp | |
parent | 80e1d670b4b4c080ce2092a3b52d2415bc4c6a42 (diff) | |
download | external_mesa3d-950af5ed40895ba7eb664a64e869cf4ae1104fc7.zip external_mesa3d-950af5ed40895ba7eb664a64e869cf4ae1104fc7.tar.gz external_mesa3d-950af5ed40895ba7eb664a64e869cf4ae1104fc7.tar.bz2 |
i965/fs: Misc simplification.
Get rid of some leftover redundant arithmetic introduced during the
conversion to byte offsets and sizes that can be simplified easily.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp index 5e1e616..98e08d7 100644 --- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp +++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp @@ -1494,8 +1494,8 @@ fs_instruction_scheduler::choose_instruction_to_schedule() * single-result send is probably actually reducing register * pressure. */ - if (inst->size_written <= inst->exec_size / 8 * REG_SIZE && - chosen_inst->size_written > chosen_inst->exec_size / 8 * REG_SIZE) { + if (inst->size_written <= 4 * inst->exec_size && + chosen_inst->size_written > 4 * chosen_inst->exec_size) { chosen = n; continue; } else if (inst->size_written > chosen_inst->size_written) { |