spirv: Use nir_var_mem_constant for UniformConstant data in CL
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 18 Aug 2020 20:30:26 +0000 (15:30 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Sep 2020 20:50:04 +0000 (20:50 +0000)
commit1bdf8506384fce4c9dc13504e1b3272d1ddc1097
treeef828f8ab84b9530c6f9254a80e7bf725386f505
parentbb8d8ba9c7f73e14f4053756bc1feab8cbf3b0d6
spirv: Use nir_var_mem_constant for UniformConstant data in CL

For now, we leave the constant_as_global option intact and get rid of
the UBO path which no one upstream is using today.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6379>
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_variables.c