mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
gallium: Fix gnu-empty-initalizer error
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:
parent
86d190e158
commit
cfd10a729d
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue