From d14ff3eafedfce44591839124d0d2f1b73edcef0 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 22 Aug 2025 08:43:20 +0200 Subject: [PATCH] radv: use radv_get_vgt_outprim_type() to disable NGGC for points/lines This shouldn't change anything because NGGC for points/lines are disabled at compile time for TES/GS. It's only unconditionally enabled for VS because with fast-GPL/ESO, the driver might not know the primitive topology at compile time and it must be disabled dynamically later. Note that NGGC supports culling lines now, so it could be enabled. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 61df7841607..73ac275baa9 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -10845,7 +10845,7 @@ radv_get_nggc_settings(struct radv_cmd_buffer *cmd_buffer, bool vp_y_inverted) * because we don't know the primitive topology at compile time, so we should * disable it dynamically for points or lines. */ - const unsigned num_vertices_per_prim = radv_conv_prim_to_gs_out(d->vk.ia.primitive_topology, true) + 1; + const unsigned num_vertices_per_prim = radv_get_vgt_outprim_type(cmd_buffer) + 1; if (num_vertices_per_prim != 3) return radv_nggc_none;