From: Anuj Phogat Date: Fri, 13 Feb 2015 19:21:21 +0000 (-0800) Subject: i965/gen8: Use HALIGN_16 if MCS is enabled for non-MSRT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47053464630888f819ef8cc44278f1a1220159b9;p=mesa.git i965/gen8: Use HALIGN_16 if MCS is enabled for non-MSRT Signed-off-by: Anuj Phogat Reviewed-by: Neil Roberts --- 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; }