aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/control_flow.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-17 10:35:16 -0400
committerFernandoS27 <fsahmkow27@gmail.com>2019-10-26 15:38:30 -0400
commitbe856a38d6b0c7c90c861baf3204ac48a108f3d2 (patch)
treefeef5da87a406bc2e83326adbbf59a54772a34d2 /src/video_core/shader/control_flow.h
parente3afd6595a3b7d67e554aaa21f929b64c9fe4b8b (diff)
Shader_IR: Address Feedback.
Diffstat (limited to 'src/video_core/shader/control_flow.h')
-rw-r--r--src/video_core/shader/control_flow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/shader/control_flow.h b/src/video_core/shader/control_flow.h
index 288ee68af..5304998b9 100644
--- a/src/video_core/shader/control_flow.h
+++ b/src/video_core/shader/control_flow.h
@@ -51,6 +51,10 @@ public:
std::tie(b.condition, b.address, b.kill, b.is_sync, b.is_brk, b.ignore);
}
+ bool operator!=(const SingleBranch& b) const {
+ return !operator==(b);
+ }
+
Condition condition{};
s32 address{exit_branch};
bool kill{};
@@ -67,7 +71,7 @@ struct CaseBranch {
class MultiBranch {
public:
- MultiBranch(u32 gpr, std::vector<CaseBranch>& branches)
+ MultiBranch(u32 gpr, std::vector<CaseBranch>&& branches)
: gpr{gpr}, branches{std::move(branches)} {}
u32 gpr{};