mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxso] Respect SM2+ sampler source swizzle.
This commit is contained in:
parent
79a20c463f
commit
b163503f7c
@ -2927,7 +2927,10 @@ void DxsoCompiler::emitControlFlowGenericLoop(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Apply operand swizzle to the operand value
|
// 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) {
|
if (opcode == DxsoOpcode::TexBemL) {
|
||||||
uint32_t float_t = m_module.defFloatType(32);
|
uint32_t float_t = m_module.defFloatType(32);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user