summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_surface_formats.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-04-04 00:45:25 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-04-04 10:41:29 -0700
commit3aa51e02d6659c8f2e34a4153ae140a4f90cc51b (patch)
treef4c89dd51e3418c7902710e8b0ddcd5a8b6cc8a5 /src/mesa/drivers/dri/i965/brw_surface_formats.c
parent1eeec7ec41dcc5f6aeb133ef7f533696a883327f (diff)
downloadexternal_mesa3d-3aa51e02d6659c8f2e34a4153ae140a4f90cc51b.zip
external_mesa3d-3aa51e02d6659c8f2e34a4153ae140a4f90cc51b.tar.gz
external_mesa3d-3aa51e02d6659c8f2e34a4153ae140a4f90cc51b.tar.bz2
i965: Allow 8x MSAA on >= 64bpp formats on Gen8+.
See commit 3b0279a69 - this restriction is documented in the "Surface Format" field of RENDER_SURFACE_STATE. Looking at newer documentation, this restriction appears to exist on Haswell, but no longer applies on Gen8+. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_surface_formats.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_surface_formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c
index 3c0b23b..ba9b5b9 100644
--- a/src/mesa/drivers/dri/i965/brw_surface_formats.c
+++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c
@@ -806,7 +806,8 @@ brw_render_target_supported(struct brw_context *brw,
/* Under some conditions, MSAA is not supported for formats whose width is
* more than 64 bits.
*/
- if (rb->NumSamples > 0 && _mesa_get_format_bytes(format) > 8) {
+ if (brw->gen < 8 &&
+ rb->NumSamples > 0 && _mesa_get_format_bytes(format) > 8) {
/* Gen6: MSAA on >64 bit formats is unsupported. */
if (brw->gen <= 6)
return false;