Mesa (master): i965: Add 2x MSAA support to the MCS allocation function.
Kenneth Graunke
kwg at kemper.freedesktop.org
Thu Jun 26 18:50:50 UTC 2014
Module: Mesa
Branch: master
Commit: db184d43b0573c00d911ef9e98fbaab26ebd6466
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=db184d43b0573c00d911ef9e98fbaab26ebd6466
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Jun 24 16:33:56 2014 -0700
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 <kenneth at whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
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 58e09b7..e4d67b9 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).
More information about the mesa-commit
mailing list