nir: Fix gnu-empty-initializer warning
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This also causes a build error on older MSVC.

Fixes: 75381670 ("nir,rusticl: NIR_PASS/nir_pass! validation fixes and improvements")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37569>
This commit is contained in:
Aleksi Sapon 2025-09-25 10:11:12 -04:00 committed by Marge Bot
parent 5120a91c82
commit 75292ae7e4

View file

@ -4779,7 +4779,7 @@ nir_metadata_require_most(nir_shader *shader)
static inline struct blob
nir_validate_progress_setup(nir_shader *shader)
{
return (struct blob){};
return (struct blob){0};
}
static inline void
nir_validate_progress_finish(nir_shader *shader, struct blob *setup_blob, bool progress, const char *when)