mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
nir: Add a ldtram_nv intrinsic
Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26224>
This commit is contained in:
parent
62006c2f96
commit
60544cae07
2 changed files with 4 additions and 0 deletions
|
|
@ -622,6 +622,7 @@ visit_intrinsic(nir_shader *shader, nir_intrinsic_instr *instr)
|
|||
case nir_intrinsic_al2p_nv:
|
||||
case nir_intrinsic_ald_nv:
|
||||
case nir_intrinsic_ipa_nv:
|
||||
case nir_intrinsic_ldtram_nv:
|
||||
is_divergent = true;
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -2024,6 +2024,9 @@ intrinsic("ast_nv", src_comp=[0, 1, 1],
|
|||
# src[] = { inv_w, offset }.
|
||||
intrinsic("ipa_nv", dest_comp=1, src_comp=[1, 1], bit_sizes=[32],
|
||||
indices=[BASE, FLAGS], flags=[CAN_ELIMINATE, CAN_REORDER])
|
||||
# FLAGS indicate if we load vertex_id == 2
|
||||
intrinsic("ldtram_nv", dest_comp=2, bit_sizes=[32],
|
||||
indices=[BASE, FLAGS], flags=[CAN_ELIMINATE, CAN_REORDER])
|
||||
|
||||
# NVIDIA-specific Geometry Shader intrinsics.
|
||||
# These contain an additional integer source and destination with the primitive handle input/output.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue