summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2015-09-09 14:38:08 +0100
committerNeil Roberts <neil@linux.intel.com>2015-11-05 10:33:16 +0100
commitbf6bd7eaf09fadc516a1e46635ed8590f4d88535 (patch)
treed43b580a94daf8b62597f40f6db06634f21fa226 /src/mesa/drivers
parentb4c2e6054fe830c299113b143622bcd2158cd257 (diff)
downloadexternal_mesa3d-bf6bd7eaf09fadc516a1e46635ed8590f4d88535.zip
external_mesa3d-bf6bd7eaf09fadc516a1e46635ed8590f4d88535.tar.gz
external_mesa3d-bf6bd7eaf09fadc516a1e46635ed8590f4d88535.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c6
1 files changed, 6 insertions, 0 deletions
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");
};