Mesa (master): i965: Handle 16x MSAA in IMS dimension munging code.
Neil Roberts
nroberts at kemper.freedesktop.org
Thu Nov 5 10:11:14 UTC 2015
Module: Mesa
Branch: master
Commit: 5048da974e68a05b86a0cec494e1380e81978684
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5048da974e68a05b86a0cec494e1380e81978684
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Jan 28 23:58:43 2015 -0800
i965: Handle 16x MSAA in IMS dimension munging code.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Neil Roberts <neil at linux.intel.com>
Reviewed-by: Ben Widawsky <ben at bwidawsk.net>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index b6e3520..0802b92 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -416,9 +416,13 @@ intel_miptree_create_layout(struct brw_context *brw,
width0 = ALIGN(width0, 2) * 4;
height0 = ALIGN(height0, 2) * 2;
break;
+ case 16:
+ width0 = ALIGN(width0, 2) * 4;
+ height0 = ALIGN(height0, 2) * 4;
+ break;
default:
- /* num_samples should already have been quantized to 0, 1, 2, 4, or
- * 8.
+ /* num_samples should already have been quantized to 0, 1, 2, 4, 8
+ * or 16.
*/
unreachable("not reached");
}
More information about the mesa-commit
mailing list