mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-20 07:40:42 +01:00
nir: add nir_intrinsic_load_rasterization_primitive_amd
For VK_KHR_fragment_shader_barycentric, AMD needs to know the primitive topology in the fragment shader but with fast-link GPL this is unknown at compile time and it needs to be passed dynamically. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16742>
This commit is contained in:
parent
116ee98106
commit
98bb7e10e7
2 changed files with 4 additions and 0 deletions
|
|
@ -211,6 +211,7 @@ visit_intrinsic(nir_shader *shader, nir_intrinsic_instr *instr)
|
|||
case nir_intrinsic_load_shared_uniform_block_intel:
|
||||
case nir_intrinsic_load_barycentric_optimize_amd:
|
||||
case nir_intrinsic_load_poly_line_smooth_enabled:
|
||||
case nir_intrinsic_load_rasterization_primitive_amd:
|
||||
is_divergent = false;
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -1400,6 +1400,9 @@ system_value("ring_attr_offset_amd", 1)
|
|||
# Load provoking vertex info
|
||||
system_value("provoking_vtx_amd", 1)
|
||||
|
||||
# Load rasterization primitive
|
||||
system_value("rasterization_primitive_amd", 1);
|
||||
|
||||
# Number of patches processed by each TCS workgroup
|
||||
system_value("tcs_num_patches_amd", 1)
|
||||
# Relative tessellation patch ID within the current workgroup
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue