turnip: fix huge scissor min/max case
authorJonathan Marek <jonathan@marek.ca>
Thu, 25 Jun 2020 14:55:48 +0000 (10:55 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 11:34:49 +0000 (11:34 +0000)
commit2fbc12a0ac0472b85922c406ce14931091d74eb6
treebf64f9026407a0372974687e5b6cf794d58a4870
parent1854eeefded9dafca62a24ed4b2f460e0bf1dd71
turnip: fix huge scissor min/max case

Now that tu_cs_emit_regs is used for the scissor, it hits an assert when
the scissor is too large. Fixes this dEQP test:

dEQP-VK.draw.scissor.static_scissor_max_int32

Fixes: 9c0ae5704d654108fd36b ("turnip: fix empty scissor case")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5655>
src/freedreno/vulkan/tu_pipeline.c