mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
nir: add nir_load_barycentric_optimize_amd intrinsic
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21683>
This commit is contained in:
parent
31a0de9921
commit
7fcc5aa9c0
2 changed files with 4 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ visit_intrinsic(nir_shader *shader, nir_intrinsic_instr *instr)
|
|||
case nir_intrinsic_load_alpha_reference_amd:
|
||||
case nir_intrinsic_load_ssbo_uniform_block_intel:
|
||||
case nir_intrinsic_load_shared_uniform_block_intel:
|
||||
case nir_intrinsic_load_barycentric_optimize_amd:
|
||||
is_divergent = false;
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -1607,6 +1607,9 @@ intrinsic("export_amd", [0], indices=[BASE, WRITE_MASK, FLAGS])
|
|||
# Alpha test reference value
|
||||
system_value("alpha_reference_amd", 1)
|
||||
|
||||
# Whether to enable barycentric optimization
|
||||
system_value("barycentric_optimize_amd", dest_comp=1, bit_sizes=[1])
|
||||
|
||||
# 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