mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 08:40:37 +02:00
agx: implement load_subgroup_invocation
There's an sr. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
6f7511b522
commit
f52e0bd70b
1 changed files with 3 additions and 0 deletions
|
|
@ -1257,6 +1257,9 @@ agx_emit_intrinsic(agx_builder *b, nir_intrinsic_instr *instr)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
case nir_intrinsic_load_subgroup_invocation:
|
||||
return agx_get_sr_to(b, dst, AGX_SR_THREAD_INDEX_IN_SUBGROUP);
|
||||
|
||||
case nir_intrinsic_reduce: {
|
||||
assert(nir_intrinsic_reduction_op(instr) == nir_op_iadd &&
|
||||
"other reductions todo");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue