nir/lower_io: assert that offsets are used for shader_in

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>
This commit is contained in:
Karol Herbst
2020-07-24 16:34:43 +02:00
committed by Marge Bot
parent 60915f87c7
commit e2e89fb137
2 changed files with 2 additions and 2 deletions

View File

@@ -134,8 +134,8 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
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 ?