@@ -409,15 +409,6 @@ void PatchTextureBufferInstruction(IR::Block& block, IR::Inst& inst, Info& info,
409
409
IR::IREmitter ir{block, IR::Block::InstructionList::s_iterator_to (inst)};
410
410
inst.SetArg (0 , ir.Imm32 (binding));
411
411
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
- }
421
412
}
422
413
423
414
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
765
756
}();
766
757
inst.SetArg (1 , coords);
767
758
768
- if (inst.GetOpcode () == IR::Opcode::ImageWrite) {
769
- inst.SetArg (4 , SwizzleVector (ir, image, inst.Arg (4 )));
770
- }
771
-
772
759
if (inst_info.has_lod ) {
773
760
ASSERT (inst.GetOpcode () == IR::Opcode::ImageRead ||
774
761
inst.GetOpcode () == IR::Opcode::ImageWrite);
0 commit comments