projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2840bc3
)
tgsi_to_nir: handle TGSI_SEMANTIC_BLOCK_SIZE
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 26 Apr 2020 12:37:42 +0000
(08:37 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 30 Apr 2020 22:27:31 +0000
(22:27 +0000)
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4761>
src/gallium/auxiliary/nir/tgsi_to_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/nir/tgsi_to_nir.c
b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 0b96a3e707d6388e25cba4a30369c602d0b7e3a7..ff42c4536bb4ff10b2b7d6285ddb6337d11fe3eb 100644
(file)
--- 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);