Fix shader compilation error for TLD4.AOFFI with no DC
This commit is contained in:
parent
6dc88c85c9
commit
e0c20dab93
1 changed files with 7 additions and 1 deletions
|
@ -1438,8 +1438,14 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
if ((Suffix & TextureInstructionSuffix.AOffI) != 0)
|
if ((Suffix & TextureInstructionSuffix.AOffI) != 0)
|
||||||
{
|
{
|
||||||
string Offset = GetTextureOffset(Meta, "floatBitsToInt((" + GetOperExpr(Op, Meta.Offset) + "))", 8, 0x3F);
|
string Offset = GetTextureOffset(Meta, "floatBitsToInt((" + GetOperExpr(Op, Meta.Offset) + "))", 8, 0x3F);
|
||||||
|
|
||||||
|
if ((Suffix & TextureInstructionSuffix.DC) != 0)
|
||||||
|
{
|
||||||
return "textureGatherOffset(" + Sampler + ", " + Coords + ", " + Comp + ", " + Offset + ")" + ChString;
|
return "textureGatherOffset(" + Sampler + ", " + Coords + ", " + Comp + ", " + Offset + ")" + ChString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "textureGatherOffset(" + Sampler + ", " + Coords + ", " + Offset + ", " + Comp + ")" + ChString;
|
||||||
|
}
|
||||||
// TODO: Support PTP
|
// TODO: Support PTP
|
||||||
else if ((Suffix & TextureInstructionSuffix.PTP) != 0)
|
else if ((Suffix & TextureInstructionSuffix.PTP) != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue