summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-09-02 13:53:13 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-09-14 14:50:58 -0700
commiteb746a80e5e99bafd3957a1cb2d9db8548a1a6be (patch)
tree2c7ded58508fa02d04e382d77b7dda15c48fe264 /src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
parent47784e2346b56bea6a1111fecaa953239ff198ca (diff)
downloadexternal_mesa3d-eb746a80e5e99bafd3957a1cb2d9db8548a1a6be.zip
external_mesa3d-eb746a80e5e99bafd3957a1cb2d9db8548a1a6be.tar.gz
external_mesa3d-eb746a80e5e99bafd3957a1cb2d9db8548a1a6be.tar.bz2
i965/ir: Update several stale comments.
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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
index 98e08d7..28d1e90 100644
--- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp
@@ -1489,10 +1489,10 @@ fs_instruction_scheduler::choose_instruction_to_schedule()
if (v->devinfo->gen < 7) {
fs_inst *chosen_inst = (fs_inst *)chosen->inst;
- /* We use regs_written > 1 as our test for the kind of send
- * instruction to avoid -- only sends generate many regs, and a
- * single-result send is probably actually reducing register
- * pressure.
+ /* We use size_written > 4 * exec_size as our test for the kind
+ * of send instruction to avoid -- only sends generate many
+ * regs, and a single-result send is probably actually reducing
+ * register pressure.
*/
if (inst->size_written <= 4 * inst->exec_size &&
chosen_inst->size_written > 4 * chosen_inst->exec_size) {