From d235c5afde3b3de46601e2408a2f8002324b16be Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 5 Sep 2014 21:19:02 -0700 Subject: i965/skl: Add fast clear resolve rect multipliers for SKL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SKL updates the resolve rectangle scaling factors again. Signed-off-by: Kristian Høgsberg Reviewed-by: Kenneth Graunke Reviewed-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c index b4e75a76bd1..c8f2a140331 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c +++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c @@ -643,11 +643,14 @@ get_resolve_rect(struct brw_context *brw, * The scaledown factors in the table that follows are related to the * alignment size returned by intel_get_non_msrt_mcs_alignment() by a * multiplier. For IVB and HSW, we divide by two, for BDW we multiply - * by 8 and 16. + * by 8 and 16 and 8 and 8 for SKL. */ intel_get_non_msrt_mcs_alignment(brw, mt, &x_align, &y_align); - if (brw->gen >= 8) { + if (brw->gen >= 9) { + x_scaledown = x_align * 8; + y_scaledown = y_align * 8; + } else if (brw->gen >= 8) { x_scaledown = x_align * 8; y_scaledown = y_align * 16; } else { -- cgit v1.2.3