anv: Implement vkCmdDispatchBase
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 3 Oct 2017 22:23:07 +0000 (15:23 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 7 Mar 2018 20:13:47 +0000 (12:13 -0800)
commitdfe18be09e38c6c534474f3b666a1a57755c7731
treeedffcf060107290246c78a37f01778218def7b07
parentff9db1a4cc0eefece2d0485a169b2a289b2ff6ef
anv: Implement vkCmdDispatchBase

This is part of the device groups extension/feature but it's a decent
chunk of work in its own right so it's worth breaking into its own
patch.  The mechanism we use is fairly straightforward: we just push the
base work group id into the shader and add it to the work group id we
get from dispatch.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/Makefile.sources
src/intel/compiler/brw_compiler.h
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_nir.h
src/intel/vulkan/anv_nir_add_base_work_group_id.c [new file with mode: 0644]
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/meson.build