Address feedback

This commit is contained in:
ReinUsesLisp 2018-08-20 23:17:37 -03:00
parent 11d9f3348d
commit 80c6209bf2
3 changed files with 7 additions and 11 deletions

View file

@ -35,13 +35,6 @@ namespace Ryujinx.Graphics.Gal.Shader
(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)
{
return new ShaderIrOperGpr((int)(OpCode >> 8) & 0xff);

View file

@ -52,9 +52,9 @@ namespace Ryujinx.Graphics.Gal.Shader
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 CbufIndex = (int)(OpCode >> 36) & 0x1f;
int Type = (int)(OpCode >> 48) & 7;
if (Type > 5)
{

View file

@ -4,8 +4,6 @@ namespace Ryujinx.Graphics.Gal.Shader
{
public const int ZRIndex = 0xff;
public static ShaderIrOperGpr MakeTemporary() => new ShaderIrOperGpr(0x100);
public bool IsConst => Index == ZRIndex;
public int Index { get; set; }
@ -14,5 +12,10 @@ namespace Ryujinx.Graphics.Gal.Shader
{
this.Index = Index;
}
public static ShaderIrOperGpr MakeTemporary(int Index = 0)
{
return new ShaderIrOperGpr(0x100 + Index);
}
}
}