Module: Mesa
Branch: main
Commit: 8458cd49e077e6f54689e193073d2756a2ea2fc4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8458cd49e077e6f54689e193073d2756a2ea2fc4

Author: Ganesh Belgur Ramachandra <ganesh.belgurramachan...@amd.com>
Date:   Wed Nov 15 06:04:17 2023 -0600

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

Reviewed-by: Alyssa Rosenzweig <aly...@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26206>

---

 src/gallium/drivers/asahi/agx_streamout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/asahi/agx_streamout.c 
b/src/gallium/drivers/asahi/agx_streamout.c
index c6e56dfd2dc..f8c83455378 100644
--- a/src/gallium/drivers/asahi/agx_streamout.c
+++ b/src/gallium/drivers/asahi/agx_streamout.c
@@ -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);

Reply via email to