glsl_to_nir: fix is_helper_invocation

Reported-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
This commit is contained in:
Rob Clark
2020-06-16 16:36:32 -07:00
committed by Marge Bot
parent f94ba1555d
commit 8505e6757b

View File

@@ -1586,7 +1586,6 @@ nir_visitor::visit(ir_call *ir)
}
case nir_intrinsic_is_helper_invocation: {
nir_ssa_dest_init(&instr->instr, &instr->dest, 1, 1, NULL);
instr->num_components = 1;
nir_builder_instr_insert(&b, &instr->instr);
break;
}