Structural and Memory Safety Improvements, Analyzer Cleanup (ryubing/ryujinx!47)

See merge request ryubing/ryujinx!47
This commit is contained in:
MrKev 2025-06-11 17:58:27 -05:00 committed by LotP
parent d03ae9c164
commit ea027d65a7
309 changed files with 1018 additions and 1247 deletions

View file

@ -1,5 +1,4 @@
using System;
using System.Diagnostics.CodeAnalysis;
namespace Ryujinx.Graphics.Shader.Translation
{

View file

@ -103,7 +103,7 @@ namespace Ryujinx.Graphics.Shader.Translation
this.BranchIfFalse(lblVertexInBounds, isVertexOob);
this.Return();
this.MarkLabel(lblVertexInBounds);
MarkLabel(lblVertexInBounds);
Operand outputInstanceOffset = this.Load(StorageKind.Input, IoVariable.GlobalId, Const(1));
Operand instanceCount = this.Load(StorageKind.ConstantBuffer, vertexInfoCbBinding, Const((int)VertexInfoBufferField.VertexCounts), Const(1));
@ -116,7 +116,7 @@ namespace Ryujinx.Graphics.Shader.Translation
this.BranchIfFalse(lblInstanceInBounds, isInstanceOob);
this.Return();
this.MarkLabel(lblInstanceInBounds);
MarkLabel(lblInstanceInBounds);
if (TranslatorContext.Stage == ShaderStage.Vertex)
{
@ -469,7 +469,7 @@ namespace Ryujinx.Graphics.Shader.Translation
this.BranchIfTrue(alphaPassLabel, alphaPass);
this.Discard();
this.MarkLabel(alphaPassLabel);
MarkLabel(alphaPassLabel);
}
}
@ -556,7 +556,7 @@ namespace Ryujinx.Graphics.Shader.Translation
Operand lblLoopHead = Label();
Operand lblExit = Label();
this.MarkLabel(lblLoopHead);
MarkLabel(lblLoopHead);
Operand writtenIndices = this.Load(StorageKind.LocalMemory, ResourceManager.LocalGeometryOutputIndexCountMemoryId);
@ -581,7 +581,7 @@ namespace Ryujinx.Graphics.Shader.Translation
this.Branch(lblLoopHead);
this.MarkLabel(lblExit);
MarkLabel(lblExit);
}
}
@ -617,7 +617,7 @@ namespace Ryujinx.Graphics.Shader.Translation
this.BranchIfTrue(a2cDitherEndLabel, opaque);
this.Discard();
this.MarkLabel(a2cDitherEndLabel);
MarkLabel(a2cDitherEndLabel);
}
public Operation[] GetOperations()