stage_prog_data->nr_params = nr_params;
stage_prog_data->param = rzalloc_array(mem_ctx, uint32_t, nr_params);
- nir_foreach_variable(var, &shader->uniforms) {
+ nir_foreach_uniform_variable(var, shader) {
/* UBO's, atomics and samplers don't take up space in the
uniform file */
if (var->interface_type != NULL || var->type->contains_atomic())
const struct gl_program *prog)
{
/* We put image uniforms at the end */
- nir_foreach_variable(var, &shader->uniforms) {
+ nir_foreach_uniform_variable(var, shader) {
if (!var->type->contains_image())
continue;