[Mesa-dev] [PATCH] nir: add initializer data to fix MSVC compile error
Juan A. Suarez Romero
jasuarez at igalia.com
Wed Sep 19 09:52:43 UTC 2018
On Wed, 2018-09-19 at 11:40 +0200, Juan A. Suarez Romero wrote:
> CC: Jason Ekstrand <jason at jlekstrand.net>
> Fixes: 82799a5d1b8 ("nir: Add a small pass to rematerialize derefs
^^^^^^^^^^^
7d1d1208c2b
I've committed a mistake when referring the commit it fixes.
> per-block")
> ---
> src/compiler/nir/nir_deref.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c
> index 1a3bf4ad206..4a87ee84d8a 100644
> --- a/src/compiler/nir/nir_deref.c
> +++ b/src/compiler/nir/nir_deref.c
> @@ -481,7 +481,7 @@ rematerialize_deref_src(nir_src *src, void *_state)
> bool
> nir_rematerialize_derefs_in_use_blocks_impl(nir_function_impl *impl)
> {
> - struct rematerialize_deref_state state = { };
> + struct rematerialize_deref_state state = { 0 };
> nir_builder_init(&state.builder, impl);
>
> nir_foreach_block(block, impl) {
More information about the mesa-dev
mailing list