aco: fix signed integer overflow

Fix UBSan error:
runtime error: signed integer overflow: 2147483647 + 32 cannot be represented in type 'int'

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37055>
This commit is contained in:
Rhys Perry
2025-08-28 10:39:35 +01:00
committed by Marge Bot
parent 20705e89e9
commit 1105f7b98f
+1 -1
View File
@@ -1207,7 +1207,7 @@ void
schedule_block(sched_ctx& ctx, Program* program, Block* block)
{
ctx.last_SMEM_dep_idx = 0;
ctx.last_VMEM_store_idx = INT_MAX;
ctx.last_VMEM_store_idx = INT_MIN;
ctx.last_SMEM_stall = INT16_MIN;
ctx.mv.block = block;