nir/vtn: CL SPIR-V callers should specify address modes
authorJesse Natalie <jenatali@microsoft.com>
Thu, 21 May 2020 22:12:15 +0000 (15:12 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Aug 2020 14:36:18 +0000 (14:36 +0000)
commitee905aa3a014191cfa68160256622fcecb7a66c5
tree3ee9ea6ef3e144484f3b85f68ab03dcbf4801400
parenta097bf160a9c05e173f7255891a38304a326ca52
nir/vtn: CL SPIR-V callers should specify address modes

Instead of inferring the address mode from the environment, allows
callers to override to suit their needs.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6330>
src/compiler/spirv/spirv_to_nir.c
src/gallium/frontends/clover/nir/invocation.cpp