Address feedback
This commit is contained in:
parent
11d9f3348d
commit
80c6209bf2
3 changed files with 7 additions and 11 deletions
|
@ -35,13 +35,6 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
(int)(OpCode >> 20) & 0x3fff);
|
(int)(OpCode >> 20) & 0x3fff);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ShaderIrOperCbuf GetOperCbuf36(long OpCode)
|
|
||||||
{
|
|
||||||
return new ShaderIrOperCbuf(
|
|
||||||
(int)(OpCode >> 36) & 0x1f,
|
|
||||||
(int)(OpCode >> 22) & 0x3fff, GetOperGpr8(OpCode));
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ShaderIrOperGpr GetOperGpr8(long OpCode)
|
public static ShaderIrOperGpr GetOperGpr8(long OpCode)
|
||||||
{
|
{
|
||||||
return new ShaderIrOperGpr((int)(OpCode >> 8) & 0xff);
|
return new ShaderIrOperGpr((int)(OpCode >> 8) & 0xff);
|
||||||
|
|
|
@ -52,9 +52,9 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public static void Ld_C(ShaderIrBlock Block, long OpCode)
|
public static void Ld_C(ShaderIrBlock Block, long OpCode)
|
||||||
{
|
{
|
||||||
int Type = (int)(OpCode >> 48) & 7;
|
|
||||||
int CbufIndex = (int)(OpCode >> 36) & 0x1f;
|
|
||||||
int CbufPos = (int)(OpCode >> 22) & 0x3fff;
|
int CbufPos = (int)(OpCode >> 22) & 0x3fff;
|
||||||
|
int CbufIndex = (int)(OpCode >> 36) & 0x1f;
|
||||||
|
int Type = (int)(OpCode >> 48) & 7;
|
||||||
|
|
||||||
if (Type > 5)
|
if (Type > 5)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,8 +4,6 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
{
|
{
|
||||||
public const int ZRIndex = 0xff;
|
public const int ZRIndex = 0xff;
|
||||||
|
|
||||||
public static ShaderIrOperGpr MakeTemporary() => new ShaderIrOperGpr(0x100);
|
|
||||||
|
|
||||||
public bool IsConst => Index == ZRIndex;
|
public bool IsConst => Index == ZRIndex;
|
||||||
|
|
||||||
public int Index { get; set; }
|
public int Index { get; set; }
|
||||||
|
@ -14,5 +12,10 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
{
|
{
|
||||||
this.Index = Index;
|
this.Index = Index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ShaderIrOperGpr MakeTemporary(int Index = 0)
|
||||||
|
{
|
||||||
|
return new ShaderIrOperGpr(0x100 + Index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue