Skip to content

Commit 6823aed

Browse files
committed
Partial Fix for Baldinness
1 parent eb66d3e commit 6823aed

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/shader_recompiler/ir/passes/resource_tracking_pass.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -409,15 +409,6 @@ void PatchTextureBufferInstruction(IR::Block& block, IR::Inst& inst, Info& info,
409409
IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to(inst)};
410410
inst.SetArg(0, ir.Imm32(binding));
411411
ASSERT(!buffer.swizzle_enable && !buffer.add_tid_enable);
412-
413-
// Apply dst_sel swizzle on formatted buffer instructions
414-
if (inst.GetOpcode() == IR::Opcode::StoreBufferFormatF32) {
415-
inst.SetArg(2, SwizzleVector(ir, buffer, inst.Arg(2)));
416-
} else {
417-
const auto inst_info = inst.Flags<IR::BufferInstInfo>();
418-
const auto texel = ir.LoadBufferFormat(inst.Arg(0), inst.Arg(1), inst_info);
419-
inst.ReplaceUsesWith(SwizzleVector(ir, buffer, texel));
420-
}
421412
}
422413

423414
IR::Value PatchCubeCoord(IR::IREmitter& ir, const IR::Value& s, const IR::Value& t,
@@ -765,10 +756,6 @@ void PatchImageInstruction(IR::Block& block, IR::Inst& inst, Info& info, Descrip
765756
}();
766757
inst.SetArg(1, coords);
767758

768-
if (inst.GetOpcode() == IR::Opcode::ImageWrite) {
769-
inst.SetArg(4, SwizzleVector(ir, image, inst.Arg(4)));
770-
}
771-
772759
if (inst_info.has_lod) {
773760
ASSERT(inst.GetOpcode() == IR::Opcode::ImageRead ||
774761
inst.GetOpcode() == IR::Opcode::ImageWrite);

0 commit comments

Comments
 (0)