From: Marek Olšák Date: Sun, 26 Apr 2020 12:37:42 +0000 (-0400) Subject: tgsi_to_nir: handle TGSI_SEMANTIC_BLOCK_SIZE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d35c3dc80e8ba99bb889b65fba3c28bca6d41128;p=mesa.git tgsi_to_nir: handle TGSI_SEMANTIC_BLOCK_SIZE Reviewed-by: Eric Anholt Part-of: --- 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);