Address PR feedback
Removes a useless null check Aligns some values to improve readability
This commit is contained in:
parent
912e43e979
commit
29a825b43b
12 changed files with 86 additions and 79 deletions
|
@ -1,6 +1,6 @@
|
|||
namespace Ryujinx.Graphics.Shader.Decoders
|
||||
{
|
||||
enum BarrierLevel
|
||||
enum BarrierLevel
|
||||
{
|
||||
Cta = 0,
|
||||
Gl = 1,
|
||||
|
|
|
@ -285,8 +285,8 @@ namespace Ryujinx.Graphics.Shader.Decoders
|
|||
private static bool IsBranch(OpCode opCode)
|
||||
{
|
||||
return (opCode is OpCodeBranch opBranch && !opBranch.PushTarget) ||
|
||||
opCode is OpCodeBranchIndir ||
|
||||
opCode is OpCodeBranchPop ||
|
||||
opCode is OpCodeBranchIndir ||
|
||||
opCode is OpCodeBranchPop ||
|
||||
opCode is OpCodeExit;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
|
|||
{
|
||||
Operand addrLow = operation.GetSource(0);
|
||||
|
||||
Operand baseAddrLow = Cbuf(0, GetStorageCbOffset(config.Stage, storageIndex));
|
||||
Operand baseAddrLow = Cbuf(0, GetStorageCbOffset(config.Stage, storageIndex));
|
||||
|
||||
Operand baseAddrTrunc = Local();
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Shader.Translation
|
||||
{
|
||||
[Flags]
|
||||
public enum TranslationFlags
|
||||
{
|
||||
None = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue