From db184d43b0573c00d911ef9e98fbaab26ebd6466 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 24 Jun 2014 16:33:56 -0700 Subject: [PATCH] i965: Add 2x MSAA support to the MCS allocation function. 2x MSAA also uses 8 bits, just like 4x. More bits are unused. Signed-off-by: Kenneth Graunke Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 58e09b74d95..e4d67b97420 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -1251,6 +1251,7 @@ intel_miptree_alloc_mcs(struct brw_context *brw, */ mesa_format format; switch (num_samples) { + case 2: case 4: /* 8 bits/pixel are required for MCS data when using 4x MSAA (2 bits for * each sample). -- 2.30.2