aco: Don't generate an if when the first part of a merged HS or GS is empty.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 24 Feb 2020 14:27:43 +0000 (15:27 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:11 +0000 (08:34 +0000)
commit8c3ab49c6b48299935751009c4109a4d2a3b8912
tree15e20cfaeea5db71941f01604869b0d4bc88bfb3
parentb9695013986d3341e5bb74cfc09dc492204129f5
aco: Don't generate an if when the first part of a merged HS or GS is empty.

In some cases (eg. in a few tessellation CTS tests) the VS part of
a merged HS is completely empty. Let's not generate a divergent if
in these cases. (LLVM also doesn't do it.)

No pipeline DB changes, only affects the CTS.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>
src/amd/compiler/aco_instruction_selection.cpp