Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6059>
op = nir_intrinsic_load_global;
break;
case nir_var_shader_in:
- assert(addr_format_is_global(addr_format));
+ assert(addr_format_is_offset(addr_format));
op = nir_intrinsic_load_kernel_input;
break;
case nir_var_mem_shared:
NIR_PASS_V(nir, nir_lower_vars_to_ssa);
NIR_PASS_V(nir, nir_opt_dce);
+ NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_shader_in, nir_address_format_32bit_offset);
nir_variable_mode modes = (nir_variable_mode)(
- nir_var_shader_in |
nir_var_mem_global |
nir_var_mem_shared);
nir_address_format format = nir->info.cs.ptr_size == 64 ?