nir/validate: Only require bare types to match for copy_deref
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 Mar 2019 19:06:28 +0000 (13:06 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 15 Mar 2019 01:02:19 +0000 (01:02 +0000)
commit5d26f2d3d59d0f995eabacbe32870779d7730c53
treee6256073db163e94df9ca152fc7eedfc95551b03
parent2b76de9b5dd58c444c194d4c77ef9d9643ae5ca6
nir/validate: Only require bare types to match for copy_deref

If we want to be able to use copy_deref instructions on explicitly laid
out types, we have to be a little more flexible about what types we
allow.  Instead, of requiring the types to exactly match, only require
the bare types to match.

Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_lower_var_copies.c
src/compiler/nir/nir_split_var_copies.c
src/compiler/nir/nir_validate.c