resource_tracking_pass: Fix image write swizzle mistake.

This commit is contained in:
squidbus 2025-01-04 15:21:07 -08:00
parent 5bea6ef879
commit cb0650feb4

View File

@ -839,7 +839,7 @@ void PatchImageArgs(IR::Block& block, IR::Inst& inst, Info& info) {
auto texel = inst.Arg(4);
if (is_storage) {
// Storage image requires shader swizzle.
ApplySwizzle(ir, texel, image.DstSelect());
texel = ApplySwizzle(ir, texel, image.DstSelect());
}
const auto converted =
ApplyWriteNumberConversionVec4(ir, texel, image.GetNumberConversion());