Revert "Disable LL, LZ and LB support in the decompiler"

This reverts commit 64536c3d9f673645faff3152838d1413c3203395.
This commit is contained in:
Thog 2018-12-05 19:23:00 +01:00
parent 19ec09112f
commit e3d9609f7e
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

@ -1458,8 +1458,7 @@ namespace Ryujinx.Graphics.Gal.Shader
}
// TODO: Support LBA and LLA
// TODO: mipmap support, uncomment this when done.
/*if ((Suffix & TextureInstructionSuffix.LZ) != 0)
if ((Suffix & TextureInstructionSuffix.LZ) != 0)
{
if ((Suffix & TextureInstructionSuffix.AOffI) != 0)
{
@ -1492,8 +1491,7 @@ namespace Ryujinx.Graphics.Gal.Shader
return "textureLod(" + Sampler + ", " + Coords + ", " + GetOperExpr(Op, Meta.LevelOfDetail) + ")" + ChString;
}
else */
if ((Suffix & TextureInstructionSuffix.AOffI) != 0)
else if (Suffix == TextureInstructionSuffix.AOffI)
{
string Offset = GetTextureOffset(Meta, "floatBitsToInt((" + GetOperExpr(Op, Meta.Offset) + "))");