From: Kenneth Graunke Date: Tue, 24 Jun 2014 23:33:56 +0000 (-0700) Subject: i965: Add 2x MSAA support to the MCS allocation function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db184d43b0573c00d911ef9e98fbaab26ebd6466;p=mesa.git 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 --- 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).