asahi: use mesa_prim_has_adjacency

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32529>
This commit is contained in:
Alyssa Rosenzweig
2024-12-12 09:31:47 -05:00
committed by Marge Bot
parent 8abb043c19
commit d5a4aa756f
+1 -4
View File
@@ -4242,10 +4242,7 @@ agx_needs_passthrough_gs(struct agx_context *ctx,
/* Rendering adjacency requires a GS, add a passthrough since we don't have
* one.
*/
if (info->mode == MESA_PRIM_LINES_ADJACENCY ||
info->mode == MESA_PRIM_TRIANGLES_ADJACENCY ||
info->mode == MESA_PRIM_TRIANGLE_STRIP_ADJACENCY ||
info->mode == MESA_PRIM_LINE_STRIP_ADJACENCY) {
if (mesa_prim_has_adjacency(info->mode)) {
perf_debug_ctx(ctx, "Using passthrough GS due to adjacency primitives");
return true;
}