aux/pb: more correctly check number of reclaims
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 15 Oct 2021 20:01:52 +0000 (16:01 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Oct 2021 23:36:48 +0000 (23:36 +0000)
commitfe2674dd52dd63e6fb4a69e037a7cb5266049e4a
tree1aa9705ab5709a9adcd8865fa274707fbe355937
parent58f605e4d488fd8e3cb657f6c46f70155ed95aaa
aux/pb: more correctly check number of reclaims

the increment needs to happen before the comparison here

Fixes: 3d6c8829f54 ("aux/pb: add a tolerance for reclaim failure")

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13388>
src/gallium/auxiliary/pipebuffer/pb_slab.c