From 4405b51bf39714aaae6ab6e9b85d158b53e8a0b6 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 16 Feb 2020 23:24:33 +0000 Subject: [PATCH] [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 --- src/dxso/dxso_compiler.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/dxso/dxso_compiler.cpp b/src/dxso/dxso_compiler.cpp index feb145aa..d887b981 100644 --- a/src/dxso/dxso_compiler.cpp +++ b/src/dxso/dxso_compiler.cpp @@ -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;