Fix wrong maximum id on sampler pool in some cases
This commit is contained in:
@@ -180,9 +180,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||
|
||||
public static void DeclareLocals(CodeGenContext context, StructuredProgramInfo info)
|
||||
{
|
||||
context.AppendLine(GetVarTypeName(VariableType.S32) + " " + DefaultNames.DummyIntName + ";");
|
||||
context.AppendLine(GetVarTypeName(VariableType.U32) + " " + DefaultNames.DummyUintName + ";");
|
||||
|
||||
foreach (AstOperand decl in info.Locals)
|
||||
{
|
||||
string name = context.OperandManager.DeclareLocal(decl);
|
||||
|
@@ -22,9 +22,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||
public const string LocalMemoryName = "local_mem";
|
||||
public const string SharedMemoryName = "shared_mem";
|
||||
|
||||
public const string DummyIntName = "dummyInt";
|
||||
public const string DummyUintName = "dummyUint";
|
||||
|
||||
public const string UndefinedName = "undef";
|
||||
}
|
||||
}
|
@@ -241,6 +241,8 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
||||
|
||||
res = context.IAdd(res, srcC);
|
||||
|
||||
// TODO: CC, X, SAT, and more?
|
||||
|
||||
context.Copy(GetDest(context), res);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user