Mesa (master): i965: Support allocating the MCS buffer for 16x MSAA
Neil Roberts
nroberts at kemper.freedesktop.org
Thu Nov 5 10:11:14 UTC 2015
Module: Mesa
Branch: master
Commit: bf6bd7eaf09fadc516a1e46635ed8590f4d88535
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf6bd7eaf09fadc516a1e46635ed8590f4d88535
Author: Neil Roberts <neil at linux.intel.com>
Date: Wed Sep 9 14:38:08 2015 +0100
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 at bwidawsk.net>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 0802b92..b1a7632 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -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");
};
More information about the mesa-commit
mailing list