From 42e906485c4cb27a4d53777a7fcaeabc5109ce65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Sat, 19 Feb 2022 12:31:18 +0100 Subject: [PATCH] spirv: Support TaskPayloadWorkgroupEXT storage class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just use the task_payload NIR storage class for this. Signed-off-by: Timur Kristóf Reviewed-by: Jason Ekstrand Reviewed-by: Caio Oliveira Part-of: --- src/compiler/spirv/vtn_variables.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 1326a925a64..357e6f8b2ab 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -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;