Skip to content

Commit

Permalink
Remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdkchan committed Jun 5, 2023
1 parent 024caf2 commit 26ba0eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Expand Up @@ -35,7 +35,6 @@ partial class CodeGenContext : Module
public Dictionary<IoDefinition, Instruction> InputsPerPatch { get; } = new Dictionary<IoDefinition, Instruction>();
public Dictionary<IoDefinition, Instruction> OutputsPerPatch { get; } = new Dictionary<IoDefinition, Instruction>();

public Instruction CoordTemp { get; set; }
public StructuredFunction CurrentFunction { get; set; }
private readonly Dictionary<AstOperand, Instruction> _locals = new Dictionary<AstOperand, Instruction>();
private readonly Dictionary<int, Instruction[]> _localForArgs = new Dictionary<int, Instruction[]>();
Expand Down
7 changes: 0 additions & 7 deletions src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs
Expand Up @@ -43,13 +43,6 @@ public static void DeclareLocals(CodeGenContext context, StructuredFunction func
context.AddLocalVariable(spvLocal);
context.DeclareLocal(local, spvLocal);
}

var ivector2Type = context.TypeVector(context.TypeS32(), 2);
var coordTempPointerType = context.TypePointer(StorageClass.Function, ivector2Type);
var coordTemp = context.Variable(coordTempPointerType, StorageClass.Function);

context.AddLocalVariable(coordTemp);
context.CoordTemp = coordTemp;
}

public static void DeclareLocalForArgs(CodeGenContext context, List<StructuredFunction> functions)
Expand Down

0 comments on commit 26ba0eb

Please sign in to comment.