2018-09-08 19:51:50 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal.Shader
|
|
|
|
|
{
|
|
|
|
|
static partial class ShaderDecode
|
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static int Read(this long opCode, int position, int mask)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return (int)(opCode >> position) & mask;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static bool Read(this long opCode, int position)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return ((opCode >> position) & 1) != 0;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static int Branch(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return ((int)(opCode >> 20) << 8) >> 8;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static bool HasArray(this long opCode)
|
2019-02-28 02:12:24 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return opCode.Read(0x1c);
|
2019-02-28 02:12:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperAbuf[] Abuf20(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
int abuf = opCode.Read(20, 0x3ff);
|
|
|
|
|
int size = opCode.Read(47, 3);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
ShaderIrOperGpr vertex = opCode.Gpr39();
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
ShaderIrOperAbuf[] opers = new ShaderIrOperAbuf[size + 1];
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
for (int index = 0; index <= size; index++)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
opers[index] = new ShaderIrOperAbuf(abuf + index * 4, vertex);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return opers;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperAbuf Abuf28(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
int abuf = opCode.Read(28, 0x3ff);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperAbuf(abuf, opCode.Gpr39());
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperCbuf Cbuf34(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
|
|
|
|
return new ShaderIrOperCbuf(
|
2019-03-04 02:45:25 +01:00
|
|
|
|
opCode.Read(34, 0x1f),
|
|
|
|
|
opCode.Read(20, 0x3fff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr Gpr8(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(8, 0xff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr Gpr20(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(20, 0xff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr Gpr39(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(39, 0xff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr Gpr0(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(0, 0xff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr Gpr28(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(28, 0xff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr[] GprHalfVec8(this long opCode)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return GetGprHalfVec2(opCode.Read(8, 0xff), opCode.Read(47, 3));
|
2019-01-31 13:43:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr[] GprHalfVec20(this long opCode)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return GetGprHalfVec2(opCode.Read(20, 0xff), opCode.Read(28, 3));
|
2019-01-31 13:43:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr[] GetGprHalfVec2(int gpr, int mask)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
if (mask == 1)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
{
|
|
|
|
|
//This value is used for FP32, the whole 32-bits register
|
|
|
|
|
//is used as each element on the vector.
|
|
|
|
|
return new ShaderIrOperGpr[]
|
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
new ShaderIrOperGpr(gpr),
|
|
|
|
|
new ShaderIrOperGpr(gpr)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
ShaderIrOperGpr low = new ShaderIrOperGpr(gpr, 0);
|
|
|
|
|
ShaderIrOperGpr high = new ShaderIrOperGpr(gpr, 1);
|
2019-01-31 13:43:24 +01:00
|
|
|
|
|
|
|
|
|
return new ShaderIrOperGpr[]
|
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
(mask & 1) != 0 ? high : low,
|
|
|
|
|
(mask & 2) != 0 ? high : low
|
2019-01-31 13:43:24 +01:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr GprHalf0(this long opCode, int halfPart)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(0, 0xff), halfPart);
|
2019-01-31 13:43:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperGpr GprHalf28(this long opCode, int halfPart)
|
2019-01-31 13:43:24 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperGpr(opCode.Read(28, 0xff), halfPart);
|
2019-01-31 13:43:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImm Imm5_39(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImm(opCode.Read(39, 0x1f));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImm Imm13_36(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImm(opCode.Read(36, 0x1fff));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImm Imm32_20(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImm((int)(opCode >> 20));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImmf Immf32_20(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImmf(BitConverter.Int32BitsToSingle((int)(opCode >> 20)));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImm ImmU16_20(this long opCode)
|
2019-02-15 04:23:14 +01:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImm(opCode.Read(20, 0xffff));
|
2019-02-15 04:23:14 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImm Imm19_20(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
int value = opCode.Read(20, 0x7ffff);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
bool neg = opCode.Read(56);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
if (neg)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
value = -value;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImm(value);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperImmf Immf19_20(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
uint imm = (uint)(opCode >> 20) & 0x7ffff;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
bool neg = opCode.Read(56);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
imm <<= 12;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
if (neg)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
imm |= 0x80000000;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
float value = BitConverter.Int32BitsToSingle((int)imm);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperImmf(value);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred Pred0(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(opCode.Read(0, 7));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred Pred3(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(opCode.Read(3, 7));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred Pred12(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(opCode.Read(12, 7));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred Pred29(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(opCode.Read(29, 7));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrNode Pred39N(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
ShaderIrNode node = opCode.Pred39();
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
if (opCode.Read(42))
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
node = new ShaderIrOp(ShaderIrInst.Bnot, node);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return node;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred Pred39(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(opCode.Read(39, 7));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred Pred48(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(opCode.Read(48, 7));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrInst Cmp(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
switch (opCode.Read(49, 7))
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
|
|
|
|
case 1: return ShaderIrInst.Clt;
|
|
|
|
|
case 2: return ShaderIrInst.Ceq;
|
|
|
|
|
case 3: return ShaderIrInst.Cle;
|
|
|
|
|
case 4: return ShaderIrInst.Cgt;
|
|
|
|
|
case 5: return ShaderIrInst.Cne;
|
|
|
|
|
case 6: return ShaderIrInst.Cge;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
throw new ArgumentException(nameof(opCode));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrInst CmpF(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
switch (opCode.Read(48, 0xf))
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
|
|
|
|
case 0x1: return ShaderIrInst.Fclt;
|
|
|
|
|
case 0x2: return ShaderIrInst.Fceq;
|
|
|
|
|
case 0x3: return ShaderIrInst.Fcle;
|
|
|
|
|
case 0x4: return ShaderIrInst.Fcgt;
|
|
|
|
|
case 0x5: return ShaderIrInst.Fcne;
|
|
|
|
|
case 0x6: return ShaderIrInst.Fcge;
|
|
|
|
|
case 0x7: return ShaderIrInst.Fcnum;
|
|
|
|
|
case 0x8: return ShaderIrInst.Fcnan;
|
|
|
|
|
case 0x9: return ShaderIrInst.Fcltu;
|
|
|
|
|
case 0xa: return ShaderIrInst.Fcequ;
|
|
|
|
|
case 0xb: return ShaderIrInst.Fcleu;
|
|
|
|
|
case 0xc: return ShaderIrInst.Fcgtu;
|
|
|
|
|
case 0xd: return ShaderIrInst.Fcneu;
|
|
|
|
|
case 0xe: return ShaderIrInst.Fcgeu;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
throw new ArgumentException(nameof(opCode));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrInst BLop45(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
switch (opCode.Read(45, 3))
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
|
|
|
|
case 0: return ShaderIrInst.Band;
|
|
|
|
|
case 1: return ShaderIrInst.Bor;
|
|
|
|
|
case 2: return ShaderIrInst.Bxor;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
throw new ArgumentException(nameof(opCode));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrInst BLop24(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
switch (opCode.Read(24, 3))
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
|
|
|
|
case 0: return ShaderIrInst.Band;
|
|
|
|
|
case 1: return ShaderIrInst.Bor;
|
|
|
|
|
case 2: return ShaderIrInst.Bxor;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
throw new ArgumentException(nameof(opCode));
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrNode PredNode(this long opCode, ShaderIrNode node)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
ShaderIrOperPred pred = opCode.PredNode();
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
if (pred.Index != ShaderIrOperPred.UnusedIndex)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
bool inv = opCode.Read(19);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
node = new ShaderIrCond(pred, node, inv);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return node;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
private static ShaderIrOperPred PredNode(this long opCode)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
int pred = opCode.Read(16, 0xf);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
if (pred != 0xf)
|
2018-09-08 19:51:50 +02:00
|
|
|
|
{
|
2019-03-04 02:45:25 +01:00
|
|
|
|
pred &= 7;
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
|
return new ShaderIrOperPred(pred);
|
2018-09-08 19:51:50 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|