mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nir: add nir_intrinsic_load_streamout_buffer_amd
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17654>
This commit is contained in:
parent
2ae357aa23
commit
5c2d710064
2 changed files with 5 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ visit_intrinsic(nir_shader *shader, nir_intrinsic_instr *instr)
|
|||
case nir_intrinsic_load_hs_out_patch_data_offset_amd:
|
||||
case nir_intrinsic_load_clip_half_line_width_amd:
|
||||
case nir_intrinsic_load_num_vertices_per_primitive_amd:
|
||||
case nir_intrinsic_load_streamout_buffer_amd:
|
||||
is_divergent = false;
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -1427,6 +1427,10 @@ system_value("clip_half_line_width_amd", 2)
|
|||
# Number of vertices in a primitive
|
||||
system_value("num_vertices_per_primitive_amd", 1)
|
||||
|
||||
# Load streamout buffer desc
|
||||
# BASE = buffer index
|
||||
intrinsic("load_streamout_buffer_amd", dest_comp=4, indices=[BASE], bit_sizes=[32], flags=[CAN_ELIMINATE, CAN_REORDER])
|
||||
|
||||
# V3D-specific instrinc for tile buffer color reads.
|
||||
#
|
||||
# The hardware requires that we read the samples and components of a pixel
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue