aco: fix GS with no outputs
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 12 Nov 2020 14:21:00 +0000 (14:21 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 25 Nov 2020 13:41:04 +0000 (13:41 +0000)
commit37a2c9ace6478b1137c9402347331eb23aacf056
treed1556402a0b7f81b50d24cc2319c0394ad671ca4
parentfdfa96561e64299a713162088da26753716df295
aco: fix GS with no outputs

With NGG, ngg_gs_known_vtxcnt[0] would be false and ngg_gs_finale() would
assert.

With legacy GS, I don't know why the assertion was there.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7576>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/tests/helpers.cpp
src/amd/compiler/tests/helpers.h
src/amd/compiler/tests/test_isel.cpp