Non-flags enums should not be used in bitwise operations (#5214)

This commit is contained in:
Marco Carvalho 2023-06-09 14:44:22 -03:00 committed by GitHub
parent 76b474e97b
commit 0e95a8271a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 1 deletions

View file

@ -1,5 +1,8 @@
using System;
namespace ARMeilleure.IntermediateRepresentation namespace ARMeilleure.IntermediateRepresentation
{ {
[Flags]
enum Intrinsic : ushort enum Intrinsic : ushort
{ {
// X86 (SSE and AVX) // X86 (SSE and AVX)

View file

@ -1,3 +1,5 @@
using System;
namespace Ryujinx.Graphics.Shader.Decoders namespace Ryujinx.Graphics.Shader.Decoders
{ {
enum AlSize enum AlSize
@ -711,6 +713,7 @@ namespace Ryujinx.Graphics.Shader.Decoders
TexSamplerBorderColor = 22, TexSamplerBorderColor = 22,
} }
[Flags]
enum VectorSelect enum VectorSelect
{ {
U8B0 = 0, U8B0 = 0,

View file

@ -1,5 +1,8 @@
using System;
namespace Ryujinx.Graphics.Shader.Decoders namespace Ryujinx.Graphics.Shader.Decoders
{ {
[Flags]
enum InstProps : ushort enum InstProps : ushort
{ {
None = 0, None = 0,

View file

@ -1,5 +1,8 @@
namespace Ryujinx.Graphics.Shader.Translation using System;
namespace Ryujinx.Graphics.Shader.Translation
{ {
[Flags]
enum AggregateType enum AggregateType
{ {
Invalid, Invalid,

View file

@ -1,5 +1,8 @@
using System;
namespace Ryujinx.HLE.HOS.Kernel.Threading namespace Ryujinx.HLE.HOS.Kernel.Threading
{ {
[Flags]
enum ThreadSchedState : ushort enum ThreadSchedState : ushort
{ {
LowMask = 0xf, LowMask = 0xf,