mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
fix: Mistake in store bounds check index.
This commit is contained in:
parent
bb59cd81fa
commit
a3bbf2274f
@ -529,7 +529,7 @@ void EmitStoreBufferBoundsCheck(EmitContext& ctx, Id index, Id buffer_size, auto
|
|||||||
// Bounds checking enabled, wrap in a conditional branch.
|
// Bounds checking enabled, wrap in a conditional branch.
|
||||||
auto compare_index = index;
|
auto compare_index = index;
|
||||||
if (N > 1) {
|
if (N > 1) {
|
||||||
index = ctx.OpIAdd(ctx.U32[1], index, ctx.ConstU32(N - 1));
|
compare_index = ctx.OpIAdd(ctx.U32[1], index, ctx.ConstU32(N - 1));
|
||||||
}
|
}
|
||||||
const Id in_bounds = ctx.OpULessThan(ctx.U1[1], compare_index, buffer_size);
|
const Id in_bounds = ctx.OpULessThan(ctx.U1[1], compare_index, buffer_size);
|
||||||
const Id in_bounds_label = ctx.OpLabel();
|
const Id in_bounds_label = ctx.OpLabel();
|
||||||
|
Loading…
Reference in New Issue
Block a user