asahi: fixes prevailing '-Werror=maybe-uninitialized' issue

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26206>
This commit is contained in:
Ganesh Belgur Ramachandra 2023-11-15 06:04:17 -06:00 committed by Marge Bot
parent cd8ccba814
commit 8458cd49e0

View file

@ -121,7 +121,7 @@ agx_draw_vbo_from_xfb(struct pipe_context *pctx,
{
perf_debug_ctx(agx_context(pctx), "draw auto");
unsigned count;
unsigned count = 0;
pipe_buffer_read(pctx,
agx_so_target(indirect->count_from_stream_output)->offset,
0, 4, &count);