diff options
author | Matt Turner <mattst88@gmail.com> | 2014-03-17 10:39:43 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-06-01 13:29:24 -0700 |
commit | b1dcdcde2e323f960833f5c7da65d5c2c20113c9 (patch) | |
tree | 6852fd268a2aa5ad096322a9f624879bc6293bd2 /src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp | |
parent | 27e12a8ea933e2f978e0ce9286422e6025c7377d (diff) | |
download | external_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_live_variables.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp index a3ccf99..d39724a 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp @@ -149,7 +149,7 @@ fs_live_variables::setup_def_use() inst = (fs_inst *)inst->next) { /* Set use[] for this instruction */ - for (unsigned int i = 0; i < 3; i++) { + for (unsigned int i = 0; i < inst->sources; i++) { fs_reg reg = inst->src[i]; if (reg.file != GRF) |