summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-13 15:51:14 +0200
committerGitHub <noreply@github.com>2020-05-13 15:51:14 +0200
commitb1a1bd12cae560b39c718b7188db0d8eae975917 (patch)
tree4b30162771fc25000519ab57bfcf8e2b0b32c96e /src/video_core/engines
parentMerge pull request #3816 from ReinUsesLisp/vk-rasterizer-enable (diff)
parentgl_shader_decompiler: Properly emulate NaN behaviour on NE (diff)
downloadyuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.tar
yuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.tar.gz
yuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.tar.bz2
yuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.tar.lz
yuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.tar.xz
yuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.tar.zst
yuzu-b1a1bd12cae560b39c718b7188db0d8eae975917.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 8dae754d4..e7cb87589 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -168,18 +168,22 @@ enum class Pred : u64 {
};
enum class PredCondition : u64 {
- LessThan = 1,
- Equal = 2,
- LessEqual = 3,
- GreaterThan = 4,
- NotEqual = 5,
- GreaterEqual = 6,
- LessThanWithNan = 9,
- LessEqualWithNan = 11,
- GreaterThanWithNan = 12,
- NotEqualWithNan = 13,
- GreaterEqualWithNan = 14,
- // TODO(Subv): Other condition types
+ F = 0, // Always false
+ LT = 1, // Ordered less than
+ EQ = 2, // Ordered equal
+ LE = 3, // Ordered less than or equal
+ GT = 4, // Ordered greater than
+ NE = 5, // Ordered not equal
+ GE = 6, // Ordered greater than or equal
+ NUM = 7, // Ordered
+ NAN_ = 8, // Unordered
+ LTU = 9, // Unordered less than
+ EQU = 10, // Unordered equal
+ LEU = 11, // Unordered less than or equal
+ GTU = 12, // Unordered greater than
+ NEU = 13, // Unordered not equal
+ GEU = 14, // Unordered greater than or equal
+ T = 15, // Always true
};
enum class PredOperation : u64 {