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:
committed by
Marge Bot
parent
b756e7da65
commit
84505c5d99
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user