i965/gen8: Use HALIGN_16 if MCS is enabled for non-MSRT
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 13 Feb 2015 19:21:21 +0000 (11:21 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 25 Feb 2015 22:11:59 +0000 (14:11 -0800)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c

index 799d4ca98e9ea0c00b14955421209274e941b89d..66d1b4f0256796ea3e243edc91c7d1a7dc624379 100644 (file)
@@ -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;
 }