nir/lower_io: Choose to set access based on intrinsic metadata
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Jul 2020 18:32:10 +0000 (13:32 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 23:43:35 +0000 (23:43 +0000)
commit3a2975db987a6267e6938da6fe9f6628f2516ece
tree96fe1f8f3b9a6858b117e071c48f63583781fdda
parentc475e29be4f81b3bef8b55b1bc78023fdfdf26bb
nir/lower_io: Choose to set access based on intrinsic metadata

This should be far more reliable than trying to keep opcode lists
up-to-date.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5927>
src/compiler/nir/nir_lower_io.c