From 95990c96cccede9777e0552beffdf2bd4b494a04 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 18 Dec 2015 15:06:02 -0800 Subject: [PATCH] nir: Create the params array in function_impl_create --- src/glsl/nir/nir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index b1a53308381..d2e9afa4479 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -311,6 +311,10 @@ nir_function_impl_create(nir_function_overload *overload) overload->impl = impl; impl->overload = overload; + impl->num_params = overload->num_params; + impl->params = ralloc_array(overload->function->shader, + nir_variable *, impl->num_params); + return impl; } -- 2.30.2