From 1157ef3a34b3bc212175f8e00d7a892ee2788b84 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 4 Sep 2014 22:10:31 -0700 Subject: [PATCH] attempt to fix the scaledown rectangle --- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 4 ++++ 1 file changed, 4 insertions(+) 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 7816140..7c08459 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c +++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c @@ -645,6 +645,10 @@ get_resolve_rect(struct brw_context *brw, */ intel_get_non_msrt_mcs_alignment(brw, mt, &x_align, &y_align); + if (brw->gen >= 8) { + x_align *= 16; + y_align *= 32; + } x_scaledown = x_align / 2; y_scaledown = y_align / 2; rect->x0 = rect->y0 = 0; -- 2.0.0