nir: Remove nir_alu_dest::write_mask
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:

committed by
Marge Bot

parent
f5b09fefe3
commit
42ee8a55dd
@@ -2078,8 +2078,6 @@ fs_visitor::get_nir_dest(const nir_dest &dest)
|
||||
nir_component_mask_t
|
||||
fs_visitor::get_nir_write_mask(const nir_alu_dest &dest)
|
||||
{
|
||||
assert(dest.write_mask == nir_component_mask(dest.dest.ssa.num_components));
|
||||
|
||||
nir_intrinsic_instr *store_reg = nir_store_reg_for_def(&dest.dest.ssa);
|
||||
if (!store_reg) {
|
||||
return nir_component_mask(dest.dest.ssa.num_components);
|
||||
|
@@ -43,7 +43,6 @@ split_conversion(nir_builder *b, nir_alu_instr *alu, nir_alu_type src_type,
|
||||
nir_rounding_mode rnd)
|
||||
{
|
||||
b->cursor = nir_before_instr(&alu->instr);
|
||||
assert(alu->dest.write_mask == 1);
|
||||
nir_ssa_def *src = nir_ssa_for_alu_src(b, alu, 0);
|
||||
nir_ssa_def *tmp = nir_type_convert(b, src, src_type, tmp_type, nir_rounding_mode_undef);
|
||||
nir_ssa_def *res = nir_type_convert(b, tmp, tmp_type, dst_type, rnd);
|
||||
|
@@ -224,7 +224,6 @@ brw_nir_opt_peephole_ffma_instr(nir_builder *b,
|
||||
mul_src[0] = nir_fneg(b, mul_src[0]);
|
||||
|
||||
nir_alu_instr *ffma = nir_alu_instr_create(b->shader, nir_op_ffma);
|
||||
ffma->dest.write_mask = add->dest.write_mask;
|
||||
|
||||
for (unsigned i = 0; i < 2; i++) {
|
||||
ffma->src[i].src = nir_src_for_ssa(mul_src[i]);
|
||||
|
@@ -41,7 +41,6 @@ replace_imul_instr(nir_builder *b, nir_alu_instr *imul, unsigned small_val,
|
||||
b->cursor = nir_before_instr(&imul->instr);
|
||||
|
||||
nir_alu_instr *imul_32x16 = nir_alu_instr_create(b->shader, new_opcode);
|
||||
imul_32x16->dest.write_mask = imul->dest.write_mask;
|
||||
|
||||
nir_alu_src_copy(&imul_32x16->src[0], &imul->src[1 - small_val], imul_32x16);
|
||||
nir_alu_src_copy(&imul_32x16->src[1], &imul->src[small_val], imul_32x16);
|
||||
|
Reference in New Issue
Block a user