summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-01-07 21:14:08 +0100
committerGitHub <noreply@github.com>2023-01-07 21:14:08 +0100
commit926438b68d33b84f6c2222ffd4e3260648c64ff5 (patch)
tree1043be28e9536446d10074982581758b66ff3a24 /src
parentMerge pull request #9570 from liamwhite/less-clock-boost (diff)
parentAvoid OOB array access reading passthrough attr mask (diff)
downloadyuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.tar
yuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.tar.gz
yuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.tar.bz2
yuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.tar.lz
yuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.tar.xz
yuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.tar.zst
yuzu-926438b68d33b84f6c2222ffd4e3260648c64ff5.zip
Diffstat (limited to 'src')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate_program.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate_program.cpp b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
index a3b99e24d..a42453e90 100644
--- a/src/shader_recompiler/frontend/maxwell/translate_program.cpp
+++ b/src/shader_recompiler/frontend/maxwell/translate_program.cpp
@@ -259,7 +259,7 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
program.is_geometry_passthrough = sph.common0.geometry_passthrough != 0;
if (program.is_geometry_passthrough) {
const auto& mask{env.GpPassthroughMask()};
- for (size_t i = 0; i < program.info.passthrough.mask.size(); ++i) {
+ for (size_t i = 0; i < mask.size() * 32; ++i) {
program.info.passthrough.mask[i] = ((mask[i / 32] >> (i % 32)) & 1) == 0;
}