From 47053464630888f819ef8cc44278f1a1220159b9 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Fri, 13 Feb 2015 11:21:21 -0800 Subject: [PATCH] i965/gen8: Use HALIGN_16 if MCS is enabled for non-MSRT Signed-off-by: Anuj Phogat Reviewed-by: Neil Roberts --- src/mesa/drivers/dri/i965/brw_tex_layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c index 799d4ca98e9..66d1b4f0256 100644 --- a/src/mesa/drivers/dri/i965/brw_tex_layout.c +++ b/src/mesa/drivers/dri/i965/brw_tex_layout.c @@ -82,6 +82,9 @@ intel_horizontal_texture_alignment_unit(struct brw_context *brw, if (brw->gen >= 7 && mt->format == MESA_FORMAT_Z_UNORM16) return 8; + if (brw->gen == 8 && mt->mcs_mt && mt->num_samples <= 1) + return 16; + return 4; } -- 2.30.2