diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2012-11-20 14:41:21 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2012-11-26 19:52:33 -0800 |
commit | 1f74002a9817e000d3f5633dd5eb6adfd1d51ba5 (patch) | |
tree | 2c1e0b5d56fea6843944913dd80b8d8d8dba9805 /src/mesa/drivers/dri/i965/brw_fs_fp.cpp | |
parent | 7b0d30eb8765066b9f3b5f2a50c426ccbac675fa (diff) |
i965/fs: Move brw_wm_compile::fp to fs_visitor.
Also change it from a brw_fragment_program to a gl_fragment_program,
since that seems to be what everything wants anyway.
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_fp.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp index 542d80a6b40..bb8cd9a79a8 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp @@ -591,7 +591,7 @@ fs_visitor::setup_fp_regs() /* PROGRAM_STATE_VAR etc. */ if (dispatch_width == 8) { for (unsigned p = 0; - p < c->fp->program.Base.Parameters->NumParameters; p++) { + 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; @@ -688,7 +688,7 @@ fs_visitor::get_fp_dst_reg(const prog_dst_register *dst) fs_reg fs_visitor::get_fp_src_reg(const prog_src_register *src) { - struct gl_program_parameter_list *plist = c->fp->program.Base.Parameters; + struct gl_program_parameter_list *plist = fp->Base.Parameters; fs_reg result; |