nir: Add clone/hash/serialize support for non-uniform tex instructions.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 1 Jan 2020 13:42:58 +0000 (14:42 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 2 Jan 2020 10:41:33 +0000 (11:41 +0100)
commit69bdc1c5fccbd9c0ef5354675b069ffb1383769e
tree7a985379fa7d64bf29e2453fa5503ddec60bf6eb
parent525cbe85ef522902d9e14ddc5a4b17f91f2ebea2
nir: Add clone/hash/serialize support for non-uniform tex instructions.

These were missed when the fields got added. Added it everywhere where
texture_index got used and it made sense.

Found this in "The Surge 2", where the inliner does not copy the fields,
resulting in corruption and hangs.

Fixes: 3bd54576415 "nir: Add a lowering pass for non-uniform resource access"
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1203
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3246>
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_instr_set.c
src/compiler/nir/nir_serialize.c