st/nine: Retry allocations after freeing some space
authorAxel Davy <davyaxel0@gmail.com>
Fri, 8 May 2020 21:23:17 +0000 (23:23 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
commitffed34113b652a59e6d6a9d9e212a3eac72dd216
tree24a95622720de59040750f0bde76e4fe62bbcf59
parentd771e0cc60a0aa853c5e1e0df304f970a47ab774
st/nine: Retry allocations after freeing some space

Managed resources can be released whenever we need.
When we have an allocation failure, free them and retry.
Try also to flush the csmt queue in case there were some things released.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
src/gallium/frontends/nine/basetexture9.c
src/gallium/frontends/nine/buffer9.c
src/gallium/frontends/nine/device9.c
src/gallium/frontends/nine/device9.h
src/gallium/frontends/nine/resource9.c
src/gallium/frontends/nine/swapchain9.c