nir: Validate jump instructions as an instruction type
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 15 May 2020 19:57:40 +0000 (14:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 17:21:23 +0000 (17:21 +0000)
commit8c87082c940ddba90e7bd0aefdf834eb2c335a74
tree13e28ef08e9f6dc72a02235d7e779d413d9f1d07
parent0fb3dc8d1030cf3c373bf90dea61d03d22950b58
nir: Validate jump instructions as an instruction type

This has the downside of putting block successor validation in two
places that are a bit further apart.  However, handling them as a
special case makes the code more confusing than needed.  At least two
different people have not noticed that we don't have jump instruction
validation in the last week or two and added it.  Being able to search
for validate_jump_instr is useful.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5101>
src/compiler/nir/nir_validate.c