diff options
| author | namkazy <nam.kazt.91@gmail.com> | 2020-03-30 18:47:50 +0700 |
|---|---|---|
| committer | namkazy <nam.kazt.91@gmail.com> | 2020-03-30 18:47:50 +0700 |
| commit | 4f7bea403a3e7e7b10255b7f1ac5363822c65833 (patch) | |
| tree | b717b2511a278a509f46ca1248c097e6b214701d /src/video_core/shader/node_helper.cpp | |
| parent | c8f6d9effd32a61be435cc08310bd94d2597cc97 (diff) | |
shader_decode: ATOM/ATOMS: add function to avoid code repetition
Diffstat (limited to 'src/video_core/shader/node_helper.cpp')
| -rw-r--r-- | src/video_core/shader/node_helper.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/shader/node_helper.cpp b/src/video_core/shader/node_helper.cpp index 76c56abb5..7bf4ff387 100644 --- a/src/video_core/shader/node_helper.cpp +++ b/src/video_core/shader/node_helper.cpp @@ -86,6 +86,20 @@ OperationCode SignedToUnsignedCode(OperationCode operation_code, bool is_signed) return OperationCode::LogicalUNotEqual; case OperationCode::LogicalIGreaterEqual: return OperationCode::LogicalUGreaterEqual; + case OperationCode::AtomicIExchange: + return OperationCode::AtomicUExchange; + case OperationCode::AtomicIAdd: + return OperationCode::AtomicUAdd; + case OperationCode::AtomicIMin: + return OperationCode::AtomicUMin; + case OperationCode::AtomicIMax: + return OperationCode::AtomicUMax; + case OperationCode::AtomicIAnd: + return OperationCode::AtomicUAnd; + case OperationCode::AtomicIOr: + return OperationCode::AtomicUOr; + case OperationCode::AtomicIXor: + return OperationCode::AtomicUXor; case OperationCode::INegate: UNREACHABLE_MSG("Can't negate an unsigned integer"); return {}; |
