diff --git a/.pick_status.json b/.pick_status.json index 42fb28eee32..e2a9eff71ef 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1183,7 +1183,7 @@ "description": "aux/pb: more correctly check number of reclaims", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "3d6c8829f54e52ae39b91b18d49acccf47755320" }, diff --git a/src/gallium/auxiliary/pipebuffer/pb_slab.c b/src/gallium/auxiliary/pipebuffer/pb_slab.c index 865ae92ee7f..83c1a597fe7 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_slab.c +++ b/src/gallium/auxiliary/pipebuffer/pb_slab.c @@ -89,7 +89,7 @@ pb_slabs_reclaim_locked(struct pb_slabs *slabs) * the driver should not walk the entire list, as this is likely to * result in zero reclaims if the first few entries fail to reclaim */ - } else if (num_failed_reclaims++ > MAX_FAILED_RECLAIMS) { + } else if (++num_failed_reclaims >= MAX_FAILED_RECLAIMS) { break; } }