[Mesa-dev] [PATCH 08/12] i965: Support allocating the MCS buffer for 16x MSAA

Neil Roberts neil at linux.intel.com
Thu Sep 17 09:00:10 PDT 2015


When 16 samples are used the MCS buffer needs 64 bits per pixel.
---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 0cb0632..9faafb4 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -1374,6 +1374,12 @@ intel_miptree_alloc_mcs(struct brw_context *brw,
        */
       format = MESA_FORMAT_R_UINT32;
       break;
+   case 16:
+      /* 64 bits/pixel are required for MCS data when using 16x MSAA (4 bits
+       * for each sample).
+       */
+      format = MESA_FORMAT_RG_UINT32;
+      break;
    default:
       unreachable("Unrecognized sample count in intel_miptree_alloc_mcs");
    };
-- 
1.9.3



More information about the mesa-dev mailing list