zink: improve descriptor set oom handling
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 9 Sep 2020 13:38:14 +0000 (09:38 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Feb 2021 02:33:25 +0000 (02:33 +0000)
commitf9c7dd744f51dd22bf009f654d00169880cbdecf
tree32283e270aef3ff3734a4d6305641b81a6c9582e
parentabce6c5d3d75d90bdfae962bd964ac064947d952
zink: improve descriptor set oom handling

this attempts to dynamically establish an upper bound for per-batch descriptor
use, flushing all batches and resetting the pools on alloc failure in
an attempt to be more robust about it

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9117>
src/gallium/drivers/zink/zink_batch.c
src/gallium/drivers/zink/zink_batch.h
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_draw.c