summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-14 11:52:53 +0100
committerGitHub <noreply@github.com>2017-01-14 11:52:53 +0100
commit16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7 (patch)
tree4fc401f579c2d6320fc3c52fa2b645bc5dcd4f3b
parentMerge pull request #2423 from Kloen/floats-should-be-float (diff)
parentGSP::WriteHWRegsWithMask: fix register mask (diff)
downloadyuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.tar
yuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.tar.gz
yuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.tar.bz2
yuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.tar.lz
yuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.tar.xz
yuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.tar.zst
yuzu-16a3f9e393a740e3d7cd2ab02c4f5b1e07d53ec7.zip
-rw-r--r--src/core/hle/service/gsp_gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 947958703..a8c1331ed 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -149,7 +149,7 @@ static ResultCode WriteHWRegsWithMask(u32 base_address, u32 size_in_bytes, VAddr
u32 mask = Memory::Read32(masks_vaddr);
// Update the current value of the register only for set mask bits
- reg_value = (reg_value & ~mask) | (data | mask);
+ reg_value = (reg_value & ~mask) | (data & mask);
WriteSingleHWReg(base_address, reg_value);