mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
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:
parent
364ae96477
commit
993d4f5233
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue