From 9c006d5dceac9bf885554d92f8cef8c0ab0858a1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 4 Feb 2024 12:55:29 -0400 Subject: [PATCH] nir/passthrough_gs: flesh out gs_in_prim geometry shaders don't specify the input topology, only the class of topology. normalize when generating a passthrough gs. asahi will be more picky about this in the future. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Antonino Maniscalco Part-of: --- src/compiler/nir/nir_passthrough_gs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_passthrough_gs.c b/src/compiler/nir/nir_passthrough_gs.c index d895d6c0f3e..04a3adae1b5 100644 --- a/src/compiler/nir/nir_passthrough_gs.c +++ b/src/compiler/nir/nir_passthrough_gs.c @@ -34,7 +34,7 @@ gs_in_prim_for_topology(enum mesa_prim prim) case MESA_PRIM_QUADS: return MESA_PRIM_LINES_ADJACENCY; default: - return prim; + return u_decomposed_prim(prim); } }