Module: Mesa
Branch: master
Commit: 47053464630888f819ef8cc44278f1a1220159b9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=47053464630888f819ef8cc44278f1a1220159b9

Author: Anuj Phogat <anuj.pho...@gmail.com>
Date:   Fri Feb 13 11:21:21 2015 -0800

i965/gen8: Use HALIGN_16 if MCS is enabled for non-MSRT

Signed-off-by: Anuj Phogat <anuj.pho...@gmail.com>
Reviewed-by: Neil Roberts <n...@linux.intel.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;
 }
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to