From cca6dc9f0fd43db366730d67baae1affdca8c6de Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 14 May 2014 00:41:41 -0700 Subject: 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 Reviewed-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_wm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/brw_wm.c') diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c index 780c78f628a..1664b18b0ee 100644 --- a/src/mesa/drivers/dri/i965/brw_wm.c +++ b/src/mesa/drivers/dri/i965/brw_wm.c @@ -181,7 +181,8 @@ bool do_wm_prog(struct brw_context *brw, c->key.persample_shading, &fp->program); - program = brw_wm_fs_emit(brw, mem_ctx, c, &fp->program, prog, &program_size); + program = brw_wm_fs_emit(brw, mem_ctx, &c->key, &c->prog_data, + &fp->program, prog, &program_size); if (program == NULL) { ralloc_free(mem_ctx); return false; -- cgit v1.2.3