[Mesa-dev] [PATCH 14/14] i965/gen8: Use HALIGN_16 if MCS is enabled for non-MSRT
Anuj Phogat
anuj.phogat at gmail.com
Mon Feb 23 14:36:51 PST 2015
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
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 799d4ca..66d1b4f 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;
}
--
1.9.3
More information about the mesa-dev
mailing list