pan/nir: fix GNU compilation error with clang

Swapping `{}` for `{0}` to fix a GNU empty initializer
error when building with Clang.

Reviewed-by: Eric R. Smith <eric.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41864>
This commit is contained in:
Daivik Bhatia 2026-05-28 14:32:34 +00:00 committed by Marge Bot
parent 364ae96477
commit 993d4f5233

View file

@ -109,7 +109,7 @@ pan_nir_load_va_tex_size(nir_builder *b, nir_def *handle,
nir_def *size, *zero;
nir_if *nif = nir_push_if(b, nir_inot(b, is_null));
{
nir_def *comps[4] = {};
nir_def *comps[4] = {0};
unsigned nr_comps = 0;
comps[nr_comps++] = nir_channel(b, dw01, 2);