asahi: fix possible null deref

with indirect non-indexed draws.

Backport-to: 25.1
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34612>
This commit is contained in:
Alyssa Rosenzweig 2025-04-18 13:42:00 -04:00 committed by Marge Bot
parent b756e7da65
commit 84505c5d99

View file

@ -5238,7 +5238,7 @@ agx_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
draw.restart = info->primitive_restart;
draw.indexed = true;
} else {
draw.start = draws->start;
draw.start = indirect ? 0 : draws->start;
}
if (indirect) {