diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-24 06:49:14 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:29 +0200 |
commit | 20e86fd61512626e267824c1a5469084c2d36c7a (patch) | |
tree | f6bae33e4025d744cfeeab3806e62e61a44f108c | |
parent | vk_compute_pipeline: Fix index comparison oversight on compute texture buffers (diff) | |
download | yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.tar yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.tar.gz yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.tar.bz2 yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.tar.lz yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.tar.xz yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.tar.zst yuzu-20e86fd61512626e267824c1a5469084c2d36c7a.zip |
-rw-r--r-- | src/shader_recompiler/ir_opt/constant_propagation_pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp index f16c5e8f6..b1c45d13a 100644 --- a/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp +++ b/src/shader_recompiler/ir_opt/constant_propagation_pass.cpp @@ -565,7 +565,7 @@ void ConstantPropagation(IR::Block& block, IR::Inst& inst) { const size_t back_shift{static_cast<size_t>(shift) + static_cast<size_t>(count)}; const size_t left_shift{32 - back_shift}; const size_t right_shift{static_cast<size_t>(32 - count)}; - if (back_shift >= 32 || left_shift >= 32 || right_shift >= 32) { + if (back_shift > 32 || left_shift >= 32 || right_shift >= 32) { throw LogicError("Undefined result in {}({}, {}, {})", IR::Opcode::BitFieldSExtract, base, shift, count); } |