From d35c3dc80e8ba99bb889b65fba3c28bca6d41128 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 26 Apr 2020 08:37:42 -0400 Subject: [PATCH] tgsi_to_nir: handle TGSI_SEMANTIC_BLOCK_SIZE Reviewed-by: Eric Anholt Part-of: --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 0b96a3e707d..ff42c4536bb 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -646,6 +646,10 @@ ttn_src_for_file_and_index(struct ttn_compile *c, unsigned file, unsigned index, op = nir_intrinsic_load_work_group_id; load = nir_load_work_group_id(b); break; + case TGSI_SEMANTIC_BLOCK_SIZE: + op = nir_intrinsic_load_local_group_size; + load = nir_load_local_group_size(b); + break; case TGSI_SEMANTIC_CS_USER_DATA_AMD: op = nir_intrinsic_load_user_data_amd; load = nir_load_user_data_amd(b); -- 2.30.2