clover/nir/spirv: Use uniform rather than shader_in for kernel inputs
authorJesse Natalie <jenatali@microsoft.com>
Fri, 28 Aug 2020 19:52:20 +0000 (12:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 19:58:14 +0000 (19:58 +0000)
commit865a2ad0866e271adda3cd18c46f74514131da11
tree337be4953f30fccac4d8b7ba56b484188e860eb7
parent41d0a81c2a3f09701e8c694b520c8d900f6ac2f1
clover/nir/spirv: Use uniform rather than shader_in for kernel inputs

The semantics of inputs for CL are a closer match to the semantics of uniforms for graphics.
Rather than cross-stage data, it's data that every thread sees uniformly.

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