i965: Add 2x MSAA support to the MCS allocation function.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Jun 2014 23:33:56 +0000 (16:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jun 2014 18:50:34 +0000 (11:50 -0700)
2x MSAA also uses 8 bits, just like 4x.  More bits are unused.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 58e09b74d957d2ec61e236502de82c9c558e1e1b..e4d67b97420c475c09b6ebb3f936b7d7e355da59 100644 (file)
@@ -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).