mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 16:48:07 +02:00
zink: use void return for store_dest
not sure why this had returns, but it doesn't seem necessary Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22934>
This commit is contained in:
parent
e4dacc382e
commit
af76c23d74
1 changed files with 4 additions and 5 deletions
|
|
@ -1381,7 +1381,7 @@ store_dest_raw(struct ntv_context *ctx, nir_dest *dest, SpvId result)
|
|||
store_reg_def(ctx, &dest->reg, result);
|
||||
}
|
||||
|
||||
static SpvId
|
||||
static void
|
||||
store_dest(struct ntv_context *ctx, nir_dest *dest, SpvId result, nir_alu_type type)
|
||||
{
|
||||
unsigned num_components = nir_dest_num_components(*dest);
|
||||
|
|
@ -1415,7 +1415,6 @@ store_dest(struct ntv_context *ctx, nir_dest *dest, SpvId result, nir_alu_type t
|
|||
}
|
||||
|
||||
store_dest_raw(ctx, dest, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
static SpvId
|
||||
|
|
@ -1955,12 +1954,12 @@ get_alu_src(struct ntv_context *ctx, nir_alu_instr *alu, unsigned src, SpvId *ra
|
|||
}
|
||||
}
|
||||
|
||||
static SpvId
|
||||
static void
|
||||
store_alu_result(struct ntv_context *ctx, nir_alu_instr *alu, SpvId result, bool force_float)
|
||||
{
|
||||
assert(!alu->dest.saturate);
|
||||
return store_dest(ctx, &alu->dest.dest, result,
|
||||
force_float ? nir_type_float : nir_op_infos[alu->op].output_type);
|
||||
store_dest(ctx, &alu->dest.dest, result,
|
||||
force_float ? nir_type_float : nir_op_infos[alu->op].output_type);
|
||||
}
|
||||
|
||||
static SpvId
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue