mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nir: add nir_export_dual_src_blend_amd intrinsic
For GFX11 export dual source blend outputs when ACO. ACO need a pseudo instruction to emit a block of code which can't be done in nir currently. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22199>
This commit is contained in:
parent
01f4addc18
commit
eb1fe8c32f
1 changed files with 4 additions and 0 deletions
|
|
@ -1607,6 +1607,10 @@ system_value("lds_ngg_gs_out_vertex_base_amd", 1)
|
|||
# FLAGS = AC_EXP_FLAG_*
|
||||
intrinsic("export_amd", [0], indices=[BASE, WRITE_MASK, FLAGS])
|
||||
|
||||
# Export dual source blend outputs with swizzle operation
|
||||
# src[] = { mrt0, mrt1 }
|
||||
intrinsic("export_dual_src_blend_amd", [0, 0], indices=[WRITE_MASK])
|
||||
|
||||
# Alpha test reference value
|
||||
system_value("alpha_reference_amd", 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue