diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2014-05-13 21:06:00 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2014-05-18 23:35:19 -0700 |
commit | 65b2df3ec8906c51ae5b28df9c0b2c71981080d0 (patch) | |
tree | 9513bb2abfe6670bf893239a008f188d01a42aba /src/mesa/drivers/dri/i965/brw_wm_iz.cpp | |
parent | b61d055d660863261a1458a1a127cc6f8d8264a6 (diff) | |
download | external_mesa3d-65b2df3ec8906c51ae5b28df9c0b2c71981080d0.zip external_mesa3d-65b2df3ec8906c51ae5b28df9c0b2c71981080d0.tar.gz external_mesa3d-65b2df3ec8906c51ae5b28df9c0b2c71981080d0.tar.bz2 |
i965/fs: Replace c->key with a direct reference in fs_visitor.
'c' is going away. This is also shorter.
Marking the key pointer as const will also deter people from changing
it in fs_visitor, as it's absolutely not OK to modify it there.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_iz.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_iz.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_iz.cpp b/src/mesa/drivers/dri/i965/brw_wm_iz.cpp index 5f719f6..0a639f1 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_iz.cpp +++ b/src/mesa/drivers/dri/i965/brw_wm_iz.cpp @@ -124,7 +124,7 @@ void fs_visitor::setup_payload_gen4() { GLuint reg = 2; bool kill_stats_promoted_workaround = false; - int lookup = c->key.iz_lookup; + int lookup = key->iz_lookup; bool uses_depth = (fp->Base.InputsRead & (1 << VARYING_SLOT_POS)) != 0; @@ -135,7 +135,7 @@ void fs_visitor::setup_payload_gen4() * statistics are enabled..." paragraph of 11.5.3.2: Early Depth * Test Cases [Pre-DevGT] of the 3D Pipeline - Windower B-Spec. */ - if (c->key.stats_wm && + if (key->stats_wm && (lookup & IZ_PS_KILL_ALPHATEST_BIT) && wm_iz_table[lookup].mode == P) { kill_stats_promoted_workaround = true; @@ -150,10 +150,10 @@ void fs_visitor::setup_payload_gen4() if (wm_iz_table[lookup].sd_to_rt || kill_stats_promoted_workaround) source_depth_to_render_target = true; - if (wm_iz_table[lookup].ds_present || c->key.line_aa != AA_NEVER) { + if (wm_iz_table[lookup].ds_present || key->line_aa != AA_NEVER) { payload.aa_dest_stencil_reg = reg; runtime_check_aads_emit = - !wm_iz_table[lookup].ds_present && c->key.line_aa == AA_SOMETIMES; + !wm_iz_table[lookup].ds_present && key->line_aa == AA_SOMETIMES; reg++; } |