From: Jason Ekstrand Date: Fri, 18 Dec 2015 23:06:02 +0000 (-0800) Subject: nir: Create the params array in function_impl_create X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95990c96cccede9777e0552beffdf2bd4b494a04;p=mesa.git nir: Create the params array in function_impl_create --- 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; }