turnip: fix renderpass gmem configs when there are too many attachments
authorJonathan Marek <jonathan@marek.ca>
Tue, 16 Jun 2020 14:45:58 +0000 (10:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 03:15:27 +0000 (03:15 +0000)
commit0a84d22bf2b81ff483b7728bf0e6c267d98c6b9c
tree7102822a69a76d4edb59940756936bfc2c54e2b2
parentb6b98e95106b8d010d0d71baaba8637d5f6aaa3b
turnip: fix renderpass gmem configs when there are too many attachments

Since a value of at least "align" is used for nblocks, we might end up
with nblocks greater than the number of GMEM blocks remaining. Check for
this case and bail out, sysmem rendering will be used for such cases.

Fixes some of these tests:
dEQP-VK.pipeline.render_to_image.core.*.huge.*

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5499>
.gitlab-ci/deqp-freedreno-a630-fails.txt
src/freedreno/vulkan/tu_pass.c