Commit 1d9d99ad authored by Jesse Natalie's avatar Jesse Natalie Committed by Erik Faye-Lund

clover/nir: Deal with kernel inputs as uniforms instead of shader_in

parent 6d03a7f8
......@@ -147,7 +147,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
// Calculate input offsets.
unsigned offset = 0;
nir_foreach_variable_safe(var, &nir->inputs) {
nir_foreach_variable_safe(var, &nir->uniforms) {
offset = align(offset, glsl_get_cl_alignment(var->type));
var->data.driver_location = offset;
offset += glsl_get_cl_size(var->type);
......@@ -205,7 +205,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
glsl_get_cl_type_size_align);
/* use offsets for kernel inputs (uniform) */
NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_shader_in,
NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_uniform,
nir->info.cs.ptr_size == 64 ?
nir_address_format_32bit_offset_as_64bit :
nir_address_format_32bit_offset);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment