Commit d696ae55 authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Erik Faye-Lund
Browse files

spirv: Stop counting inputs in entry_point_wrapper

nir_shader::num_inputs isn't supposed to be a count of how many input
variables we have.  It's a size of the lowered input space.
Reviewed-by: Karol Herbst's avatarKarol Herbst <>
Part-of: <mesa/mesa!6472>
parent 34472edc
......@@ -5476,8 +5476,6 @@ vtn_emit_kernel_entry_point_wrapper(struct vtn_builder *b,
const char *func_name =
ralloc_asprintf(b->shader, "__wrapped_%s", entry_point->name);
/* we shouldn't have any inputs yet */
vtn_assert(b->shader->info.stage == MESA_SHADER_KERNEL);
nir_function *main_entry_point = nir_function_create(b->shader, func_name);
......@@ -5524,7 +5522,6 @@ vtn_emit_kernel_entry_point_wrapper(struct vtn_builder *b,
in_var->type = param_type->type;
nir_shader_add_variable(b->nb.shader, in_var);
/* we have to copy the entire variable into function memory */
if (is_by_val) {
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