Just use the task_payload NIR storage class for this.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18366>
mode = vtn_variable_mode_workgroup;
nir_mode = nir_var_mem_shared;
break;
+ case SpvStorageClassTaskPayloadWorkgroupEXT:
+ mode = vtn_variable_mode_task_payload;
+ nir_mode = nir_var_mem_task_payload;
+ break;
case SpvStorageClassAtomicCounter:
mode = vtn_variable_mode_atomic_counter;
nir_mode = nir_var_uniform;