summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-11-20 16:26:22 -0800
committerEric Anholt <eric@anholt.net>2012-12-28 10:53:39 -0800
commitf189570ccf60ab665cbe9feeff52685600f8163d (patch)
tree17e64ecc4b0747066eead6416e92611871baa33a /src/mesa/drivers/dri/i965/brw_fs_fp.cpp
parentd5efc14635cf25bc130bfa77737913913d9202ce (diff)
i965/fs: Remove the param_index/param_offset indirection.
Now that ParameterValues doesn't change across the visitor, we don't need to go through this. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_fp.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_fp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
index bebf059773d..9ca082a0fc9 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
@@ -596,9 +596,8 @@ fs_visitor::setup_fp_regs()
for (unsigned p = 0;
p < fp->Base.Parameters->NumParameters; p++) {
for (unsigned int i = 0; i < 4; i++) {
- this->param_index[c->prog_data.nr_params] = p;
- this->param_offset[c->prog_data.nr_params] = i;
- c->prog_data.nr_params++;
+ c->prog_data.param[c->prog_data.nr_params++] =
+ &fp->Base.Parameters->ParameterValues[p][i].f;
}
}
}