i965: Don't allocate an MCS for 16x MSAA and width > 8192.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Dec 2017 17:45:49 +0000 (09:45 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Dec 2017 08:37:33 +0000 (00:37 -0800)
commitfd3fc5f5479410ffc87852c7d3a391e3ec548009
tree81d822c831a29810708350909fefc87fb873b6ec
parent546633dce22614f06aec1679e3ec8dd9c5b26eb0
i965: Don't allocate an MCS for 16x MSAA and width > 8192.

The hardware doesn't support this, and isl_surf_get_mcs_surf will fail.

I feel a bit bad replicating this logic, but we want to decide up front.

This fixes the following test when run with --deqp-surface-width=16384:
- GTF-GL46.gtf30.GL3Tests.framebuffer_blit.framebuffer_blit_error_blitframebuffer_multisampled_framebuffers_different_sample_count

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c