From 5415abe396446a5b08b107f9b7b75fa790b07f77 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 27 Mar 2024 14:32:31 +0100 Subject: [PATCH] ntv: remove store_def_raw it was only forwarding to store_ssa_def Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index b4e56567e8a..e4cc4e33cd2 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -1549,16 +1549,10 @@ cast_src_to_type(struct ntv_context *ctx, SpvId value, nir_src src, nir_alu_type return emit_bitcast(ctx, get_alu_type(ctx, atype, num_components, bit_size), value); } -static void -store_def_raw(struct ntv_context *ctx, nir_def *def, SpvId result, nir_alu_type atype) -{ - store_ssa_def(ctx, def, result, atype); -} - static void store_def(struct ntv_context *ctx, nir_def *def, SpvId result, nir_alu_type type) { - store_def_raw(ctx, def, result, type); + store_ssa_def(ctx, def, result, type); } static SpvId @@ -3177,7 +3171,7 @@ emit_vote(struct ntv_context *ctx, nir_intrinsic_instr *intr) spirv_builder_emit_cap(&ctx->builder, SpvCapabilityGroupNonUniformVote); nir_alu_type atype; SpvId result = spirv_builder_emit_vote(&ctx->builder, op, get_src(ctx, &intr->src[0], &atype)); - store_def_raw(ctx, &intr->def, result, nir_type_bool); + store_ssa_def(ctx, &intr->def, result, nir_type_bool); } static void @@ -3947,7 +3941,7 @@ emit_deref_var(struct ntv_context *ctx, nir_deref_instr *deref) struct hash_entry *he = _mesa_hash_table_search(ctx->vars, deref->var); assert(he); SpvId result = (SpvId)(intptr_t)he->data; - store_def_raw(ctx, &deref->def, result, get_nir_alu_type(deref->type)); + store_ssa_def(ctx, &deref->def, result, get_nir_alu_type(deref->type)); } static void