1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[dxso] Respect src modifiers in Texcrd for PS 1.4

`texcrd r4.xy, t4_dw.xyww`

Cross Racing Championship Extreme 2005 uses a writemask in texcrd as well as the _dw modifier on the src which we weren't respecting previously.

Closes #1450
This commit is contained in:
Joshua Ashton 2020-02-16 23:24:33 +00:00
parent a6d554615e
commit 4405b51bf3

View File

@ -2472,11 +2472,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
if (m_programInfo.majorVersion() == 1 && m_programInfo.minorVersion() == 4) {
// TexCrd Op (PS 1.4)
DxsoRegister texcoord;
texcoord.id.type = DxsoRegisterType::PixelTexcoord;
texcoord.id.num = ctx.src[0].id.num;
result = emitRegisterLoadRaw(texcoord, nullptr);
result = emitRegisterLoad(ctx.src[0], ctx.dst.mask);
} else {
// TexCoord Op (PS 1.0 - PS 1.3)
DxsoRegister texcoord;