From ce96f6db9028f8488faf778444597b1a3d26433f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 20 Nov 2012 12:21:40 -0800 Subject: i965/fs: Remove brw_wm_compile::computes_depth field. Everybody determines this by checking if fp's OutputsWritten field contains the FRAG_RESULT_DEPTH bit. Rather than having payload setup check this and set the computes_depth flag, we can just do the check in the only place that actually used it: emit_fb_writes(). Reviewed-by: Eric Anholt Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_wm_iz.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_wm_iz.c') diff --git a/src/mesa/drivers/dri/i965/brw_wm_iz.c b/src/mesa/drivers/dri/i965/brw_wm_iz.c index 878f5d079de..147753ab424 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_iz.c +++ b/src/mesa/drivers/dri/i965/brw_wm_iz.c @@ -142,9 +142,6 @@ void brw_wm_lookup_iz(struct intel_context *intel, kill_stats_promoted_workaround = true; } - if (lookup & IZ_PS_COMPUTES_DEPTH_BIT) - c->computes_depth = 1; - if (wm_iz_table[lookup].sd_present || uses_depth || kill_stats_promoted_workaround) { c->source_depth_reg = reg; -- cgit v1.2.3