mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 21:00:17 +01:00
pan/bi: Map load_subgroup_invocation to FAU
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10022>
This commit is contained in:
parent
754c192e04
commit
7e4ee9bd2f
1 changed files with 4 additions and 0 deletions
|
|
@ -1212,6 +1212,10 @@ bi_emit_intrinsic(bi_builder *b, nir_intrinsic_instr *instr)
|
|||
bi_mov_i32_to(b, dst, bi_register(62));
|
||||
break;
|
||||
|
||||
case nir_intrinsic_load_subgroup_invocation:
|
||||
bi_mov_i32_to(b, dst, bi_fau(BIR_FAU_LANE_ID, false));
|
||||
break;
|
||||
|
||||
case nir_intrinsic_load_local_invocation_id:
|
||||
for (unsigned i = 0; i < 3; ++i)
|
||||
bi_u16_to_u32_to(b, bi_word(dst, i),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue