agx/nir_lower_gs: fix type confusion

Fixes: b9b6828fda ("agx/nir_lower_gs: optimize static topologies")
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/34661>
This commit is contained in:
Alyssa Rosenzweig 2025-04-22 09:41:13 -04:00 committed by Marge Bot
parent d548259b2f
commit 8b0dca384f

View file

@ -1456,7 +1456,7 @@ agx_nir_lower_gs(nir_shader *gs, bool rasterizer_discard, nir_shader **gs_count,
info->prefix_sum = info->count_words > 0 && gs->xfb_info != NULL;
if (static_vertices >= 0 && static_primitives >= 0) {
if (static_vertices[0] >= 0 && static_primitives[0] >= 0) {
optimize_static_topology(info, gs);
} else {
info->dynamic_topology = true;