diff options
author | Kenneth Graunke <[email protected]> | 2014-05-13 21:06:00 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-05-18 23:35:19 -0700 |
commit | 65b2df3ec8906c51ae5b28df9c0b2c71981080d0 (patch) | |
tree | 9513bb2abfe6670bf893239a008f188d01a42aba /src/mesa/drivers/dri/i965/brw_fs_fp.cpp | |
parent | b61d055d660863261a1458a1a127cc6f8d8264a6 (diff) |
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 <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_fp.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp index 49eaf054406..ba5514a5445 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp @@ -652,7 +652,7 @@ fs_visitor::get_fp_dst_reg(const prog_dst_register *dst) /* Tell emit_fb_writes() to smear fragment.color across all the * color attachments. */ - for (int i = 1; i < c->key.nr_color_regions; i++) { + for (int i = 1; i < key->nr_color_regions; i++) { outputs[i] = outputs[0]; output_components[i] = output_components[0]; } |