[Mesa-dev] [PATCH 04/13] Hack: Disable MCS on Broadwell for now.

Kenneth Graunke kenneth at whitecape.org
Wed Feb 19 02:04:28 PST 2014


---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++++++
 1 file changed, 6 insertions(+)

I'm mostly sending this out as a placeholder.  Ultimately, we want to get
MCS working.  I'm not sure whether it would be valuable to push this (with
a proper commit message) in the meantime.

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index e604b70..43f51fc 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -84,6 +84,12 @@ compute_msaa_layout(struct brw_context *brw, mesa_format format, GLenum target)
    case GL_DEPTH_STENCIL:
       return INTEL_MSAA_LAYOUT_IMS;
    default:
+      /* Disable MCS on Broadwell for now.  We can enable it once things
+       * are working without it.
+       */
+      if (brw->gen >= 8)
+         return INTEL_MSAA_LAYOUT_UMS;
+
       /* From the Ivy Bridge PRM, Vol4 Part1 p77 ("MCS Enable"):
        *
        *   This field must be set to 0 for all SINT MSRTs when all RT channels
-- 
1.8.4.2



More information about the mesa-dev mailing list