nir: Fix nir.h MSVC compilation for C++ source files

This kind of C initializer is not accepted by MSVC in C++ mode.

Fixed: 75292ae7 ("nir: Fix gnu-empty-initializer warning ")
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37604>
This commit is contained in:
Aleksi Sapon 2025-09-26 11:46:47 -04:00 committed by Marge Bot
parent 094804131e
commit 8949473023

View file

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