summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-04-29 05:28:07 +0200
committerGitHub <noreply@github.com>2022-04-29 05:28:07 +0200
commit5687bc6e103d47d5ddf1ac4380a939f1287bdb31 (patch)
tree9eac623466c034656b87ae866b73cfba1bf3a925
parentMerge pull request #8267 from Morph1984/swapbuffers (diff)
parentGCC 12 fixes (diff)
downloadyuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.tar
yuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.tar.gz
yuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.tar.bz2
yuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.tar.lz
yuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.tar.xz
yuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.tar.zst
yuzu-5687bc6e103d47d5ddf1ac4380a939f1287bdb31.zip
m---------externals/sirit0
-rw-r--r--src/common/settings.cpp2
-rw-r--r--src/shader_recompiler/ir_opt/verification_pass.cpp2
-rw-r--r--src/video_core/shader_environment.cpp4
4 files changed, 4 insertions, 4 deletions
diff --git a/externals/sirit b/externals/sirit
-Subproject a39596358a3a5488c06554c0c15184a6af71e43
+Subproject b8f133bf631ace5a613bbd7e8329300358cacbd
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index fdc012355..9a9c74a70 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -10,7 +10,7 @@
namespace Settings {
-Values values = {};
+Values values;
static bool configuring_global = true;
std::string GetTimeZoneString() {
diff --git a/src/shader_recompiler/ir_opt/verification_pass.cpp b/src/shader_recompiler/ir_opt/verification_pass.cpp
index e2ef2b0b3..f89f4ac28 100644
--- a/src/shader_recompiler/ir_opt/verification_pass.cpp
+++ b/src/shader_recompiler/ir_opt/verification_pass.cpp
@@ -43,7 +43,7 @@ static void ValidateUses(const IR::Program& program) {
}
}
}
- for (const auto [inst, uses] : actual_uses) {
+ for (const auto& [inst, uses] : actual_uses) {
if (inst->UseCount() != uses) {
throw LogicError("Invalid uses in block: {}", IR::DumpProgram(program));
}
diff --git a/src/video_core/shader_environment.cpp b/src/video_core/shader_environment.cpp
index a558f8deb..d469964f6 100644
--- a/src/video_core/shader_environment.cpp
+++ b/src/video_core/shader_environment.cpp
@@ -188,11 +188,11 @@ void GenericEnvironment::Serialize(std::ofstream& file) const {
.write(reinterpret_cast<const char*>(&cached_highest), sizeof(cached_highest))
.write(reinterpret_cast<const char*>(&stage), sizeof(stage))
.write(reinterpret_cast<const char*>(code.data()), code_size);
- for (const auto [key, type] : texture_types) {
+ for (const auto& [key, type] : texture_types) {
file.write(reinterpret_cast<const char*>(&key), sizeof(key))
.write(reinterpret_cast<const char*>(&type), sizeof(type));
}
- for (const auto [key, type] : cbuf_values) {
+ for (const auto& [key, type] : cbuf_values) {
file.write(reinterpret_cast<const char*>(&key), sizeof(key))
.write(reinterpret_cast<const char*>(&type), sizeof(type));
}