diff options
author | Kenneth Graunke <[email protected]> | 2014-05-14 00:41:41 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-05-18 23:35:20 -0700 |
commit | cca6dc9f0fd43db366730d67baae1affdca8c6de (patch) | |
tree | 64b4fa5319d96634ea3a1f8461fd9a837d5364bd /src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | |
parent | 2d4ac9b5b825b745257e935dd9b33a2d3507c72a (diff) |
i965/fs: Rip struct brw_wm_compile out of the visitors and generators.
Instead, just pass the key and prog_data as separate parameters.
This moves it up a level - one step further toward getting rid of it.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index 4be59289136..dcc84416a3d 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -2955,17 +2955,16 @@ fs_visitor::resolve_bool_comparison(ir_rvalue *rvalue, fs_reg *reg) fs_visitor::fs_visitor(struct brw_context *brw, void *mem_ctx, - struct brw_wm_compile *c, + const struct brw_wm_prog_key *key, + struct brw_wm_prog_data *prog_data, struct gl_shader_program *shader_prog, struct gl_fragment_program *fp, unsigned dispatch_width) - : backend_visitor(brw, shader_prog, &fp->Base, &c->prog_data.base, + : backend_visitor(brw, shader_prog, &fp->Base, &prog_data->base, MESA_SHADER_FRAGMENT), - key(&c->key), + key(key), prog_data(prog_data), dispatch_width(dispatch_width) { - this->c = c; - this->prog_data = &c->prog_data; this->fp = fp; this->mem_ctx = mem_ctx; this->failed = false; |