this avoids the need to use the nir pointer to access shader info
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22266>
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_shader_temp, NULL);
}
}
+ memcpy(&ret->info, &nir->info, sizeof(nir->info));
ret->can_inline = true;
NIR_PASS_V(nir, nir_convert_from_ssa, true);
ret->nir = nir;
+ memcpy(&ret->info, &nir->info, sizeof(nir->info));
ret->non_fs.is_generated = true;
return ret;
}
struct util_live_shader base;
uint32_t hash;
struct nir_shader *nir;
+ struct shader_info info;
struct zink_shader_info sinfo;