zink: support gl_LocalGroupSize
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 15 Oct 2020 18:41:09 +0000 (14:41 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Feb 2021 17:02:45 +0000 (17:02 +0000)
commiteb7ec9ae70afaf2c0961485cfab10c3a193d73e3
tree6e0c6edf2851c0c67f5ef214ba02811649d161c3
parent10c05f083fb8657e50c06c938feb7ab5dc5d28ac
zink: support gl_LocalGroupSize

this requires setting up a spec constant on the pipeline state which can
then propagate to the shader and be used like a regular constant

all ARB_compute_variable_group_size should pass now

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9242>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
src/gallium/drivers/zink/zink_compiler.h
src/gallium/drivers/zink/zink_draw.c
src/gallium/drivers/zink/zink_pipeline.c
src/gallium/drivers/zink/zink_pipeline.h
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_program.h