freedreno/ir3/validate: add checking for types and opcodes
authorRob Clark <robdclark@chromium.org>
Sat, 16 May 2020 20:32:14 +0000 (13:32 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 16:06:17 +0000 (16:06 +0000)
commit3c355f1ae8be2a7e1f9141c5433bdbb35fdcd7e6
tree5538e0ee102897314d7f09c09ca1ed6786cdef4f
parentf484d63617afe67f9eb8ba98f96e5c3617aa43c8
freedreno/ir3/validate: add checking for types and opcodes

For cases where instructions have a src and/or dst type, validate that
it matches the src/dst register types.  And for cases where there are
different opcodes for half vs full, validate that the opcode matches.

Now that we maintain this properly throughout the stages of the ir, we
can drop the fixups from the RA pass.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_ra.c
src/freedreno/ir3/ir3_validate.c