gallium: Fix gnu-empty-initalizer error
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Addresses:
```
../src/gallium/auxiliary/hud/hud_context.c:498:42: error: use of GNU
empty initializer extension [-Werror,-Wgnu-empty-initializer]
   struct pipe_resource *releasebuf[3] = {};
                                         ^

../src/gallium/auxiliary/postprocess/pp_mlaa.c:76:42: error: use of GNU
empty initializer extension [-Werror,-Wgnu-empty-initializer]
   struct pipe_resource *releasebuf[2] = {};
                                         ^
```

Fixes: 51605bfac2 ("gallium: Make upload_cb0 return a releasebuf")
Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38920>
This commit is contained in:
Karmjit Mahil 2025-12-12 10:40:08 +00:00 committed by Marge Bot
parent 86d190e158
commit cfd10a729d
2 changed files with 2 additions and 2 deletions

View file

@ -495,7 +495,7 @@ hud_draw_results(struct hud_context *hud, struct pipe_resource *tex)
const struct pipe_sampler_state *sampler_states[] =
{ &hud->font_sampler_state };
struct hud_pane *pane;
struct pipe_resource *releasebuf[3] = {};
struct pipe_resource *releasebuf[3] = { 0 };
if (!huds_visible)
return;

View file

@ -73,7 +73,7 @@ pp_jimenezmlaa_run(struct pp_queue_t *ppq, struct pipe_resource *in,
const struct pipe_stencil_ref ref = { {1} };
struct pipe_resource *releasebuf[2] = {};
struct pipe_resource *releasebuf[2] = { 0 };
/* Insufficient initialization checks. */
assert(p);