spirv: Support TaskPayloadWorkgroupEXT storage class.

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>
This commit is contained in:
Timur Kristóf 2022-02-19 12:31:18 +01:00 committed by Marge Bot
parent a03c30bd8d
commit 42e906485c
1 changed files with 4 additions and 0 deletions

View File

@ -1599,6 +1599,10 @@ vtn_storage_class_to_mode(struct vtn_builder *b,
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;