mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
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:
parent
d548259b2f
commit
8b0dca384f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue