1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxso] Respect SM2+ sampler source swizzle.

This commit is contained in:
Georg Lehmann 2021-10-20 14:02:39 +02:00 committed by Joshie
parent 79a20c463f
commit b163503f7c

View File

@ -2927,7 +2927,10 @@ void DxsoCompiler::emitControlFlowGenericLoop(
}
// Apply operand swizzle to the operand value
result = emitRegisterSwizzle(result, IdentitySwizzle, ctx.dst.mask);
if (m_programInfo.majorVersion() >= 2) // SM 2.0+
result = emitRegisterSwizzle(result, ctx.src[1].swizzle, ctx.dst.mask);
else
result = emitRegisterSwizzle(result, IdentitySwizzle, ctx.dst.mask);
if (opcode == DxsoOpcode::TexBemL) {
uint32_t float_t = m_module.defFloatType(32);