i965: Support allocating the MCS buffer for 16x MSAA

When 16 samples are used the MCS buffer needs 64 bits per pixel.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Neil Roberts
2015-09-09 14:38:08 +01:00
parent b4c2e6054f
commit bf6bd7eaf0
@@ -1427,6 +1427,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");
};