From 993d4f523358e2a482ee02b9c0bddbbe33710168 Mon Sep 17 00:00:00 2001 From: Daivik Bhatia Date: Thu, 28 May 2026 14:32:34 +0000 Subject: [PATCH] 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 Part-of: --- src/panfrost/compiler/pan_nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/compiler/pan_nir.h b/src/panfrost/compiler/pan_nir.h index bec99d2a8ee..c3e8799d17a 100644 --- a/src/panfrost/compiler/pan_nir.h +++ b/src/panfrost/compiler/pan_nir.h @@ -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);