zink: clamp max buffer sizes to smallest buffer heap size
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 28 Oct 2021 13:49:03 +0000 (09:49 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 1 Nov 2021 01:01:33 +0000 (01:01 +0000)
commitccfe36fffabbbc25cdd0fc0f7bf6bf30de0e1268
tree525c30a4671e07f5610de83391498b4ff78ef90d
parentfd2b47281f1b63312a58c2f7e77ee39f0858ba95
zink: clamp max buffer sizes to smallest buffer heap size

the max driver limit for these is irrelevant if there isn't enough memory
to allocate a buffer of that size

KHR-GL46.texture_buffer.texture_buffer_max_size

cc: mesa-stable

fixes #5568

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13584>
src/gallium/drivers/zink/zink_screen.c