mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-06 18:40:36 +00:00
rsx/fp: Hotfix for TEXBEM/TXPBEM
This commit is contained in:
parent
e89a035e8b
commit
4e80858bed
@ -598,7 +598,7 @@ bool FragmentProgramDecompiler::handle_tex_srb(u32 opcode)
|
|||||||
case RSX_FP_OPCODE_TEXBEM:
|
case RSX_FP_OPCODE_TEXBEM:
|
||||||
//Untested, should be x2d followed by TEX
|
//Untested, should be x2d followed by TEX
|
||||||
AddX2d();
|
AddX2d();
|
||||||
AddCode(Format("x2d = $0.xyxy + $1.xxxx * $2.xzxz + $1.yyyy * $2.ywyw", true));
|
AddCode(Format("x2d = $0.xyxy + $1.xxxx * $2.xzxz + $1.yyyy * $2.ywyw;", true));
|
||||||
case RSX_FP_OPCODE_TEX:
|
case RSX_FP_OPCODE_TEX:
|
||||||
switch (m_prog.get_texture_dimension(dst.tex_num))
|
switch (m_prog.get_texture_dimension(dst.tex_num))
|
||||||
{
|
{
|
||||||
@ -629,7 +629,7 @@ bool FragmentProgramDecompiler::handle_tex_srb(u32 opcode)
|
|||||||
case RSX_FP_OPCODE_TXPBEM:
|
case RSX_FP_OPCODE_TXPBEM:
|
||||||
//Untested, should be x2d followed by TXP
|
//Untested, should be x2d followed by TXP
|
||||||
AddX2d();
|
AddX2d();
|
||||||
AddCode(Format("x2d = $0.xyxy + $1.xxxx * $2.xzxz + $1.yyyy * $2.ywyw", true));
|
AddCode(Format("x2d = $0.xyxy + $1.xxxx * $2.xzxz + $1.yyyy * $2.ywyw;", true));
|
||||||
case RSX_FP_OPCODE_TXP:
|
case RSX_FP_OPCODE_TXP:
|
||||||
switch (m_prog.get_texture_dimension(dst.tex_num))
|
switch (m_prog.get_texture_dimension(dst.tex_num))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user