summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-03-17 10:39:43 -0700
committerMatt Turner <mattst88@gmail.com>2014-06-01 13:29:24 -0700
commitb1dcdcde2e323f960833f5c7da65d5c2c20113c9 (patch)
tree6852fd268a2aa5ad096322a9f624879bc6293bd2 /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp
parent27e12a8ea933e2f978e0ce9286422e6025c7377d (diff)
downloadexternal_mesa3d-b1dcdcde2e323f960833f5c7da65d5c2c20113c9.zip
external_mesa3d-b1dcdcde2e323f960833f5c7da65d5c2c20113c9.tar.gz
external_mesa3d-b1dcdcde2e323f960833f5c7da65d5c2c20113c9.tar.bz2
i965/fs: Loop from 0 to inst->sources, not 0 to 3.
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp
index 35e6774..1b3d3b7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp
@@ -70,7 +70,7 @@ opt_saturate_propagation_local(fs_visitor *v, bblock_t *block)
}
break;
}
- for (int i = 0; i < 3; i++) {
+ for (int i = 0; i < scan_inst->sources; i++) {
if (scan_inst->src[i].file == GRF &&
scan_inst->src[i].reg == inst->src[0].reg &&
scan_inst->src[i].reg_offset == inst->src[0].reg_offset) {