Searched refs:gfunc (Results 1 – 1 of 1) sorted by relevance
269 nir_function *gfunc = nir_function_create(shader, generic_name); in libclc_add_generic_variants() local270 gfunc->num_params = func->num_params; in libclc_add_generic_variants()271 gfunc->params = ralloc_array(shader, nir_parameter, gfunc->num_params); in libclc_add_generic_variants()272 for (unsigned i = 0; i < gfunc->num_params; i++) in libclc_add_generic_variants()273 gfunc->params[i] = func->params[i]; in libclc_add_generic_variants()275 gfunc->impl = nir_function_impl_clone(shader, func->impl); in libclc_add_generic_variants()276 gfunc->impl->function = gfunc; in libclc_add_generic_variants()279 nir_foreach_block(block, gfunc->impl) { in libclc_add_generic_variants()295 nir_metadata_preserve(gfunc->impl, nir_metadata_none); in libclc_add_generic_variants()