nir: add is_first_fan_agx sysval

needed for correct flatshading with fans, without falling back on software input
assembly.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
This commit is contained in:
Alyssa Rosenzweig
2024-04-30 15:37:28 -04:00
committed by Marge Bot
parent 8bc694223e
commit 8b9ed851ec
+4
View File
@@ -1809,6 +1809,10 @@ system_value("active_subgroup_invocation_agx", 1)
# for [-1, 1].
system_value("clip_z_coeff_agx", 1)
# True if drawing triangle fans with first vertex provoking, false otherwise.
# This affects flatshading, which is defined weirdly for fans with first.
system_value("is_first_fan_agx", 1, bit_sizes=[1])
# mesa_prim for the input topology (in a geometry shader)
system_value("input_topology_agx", 1)