zink: check maxImageDimension1D as well as maxImageDimension2D
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 16 Nov 2022 12:18:54 +0000 (13:18 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 29 Nov 2022 13:35:46 +0000 (13:35 +0000)
commitdc770eb9bb7f3e87c4fd652211ab1e2fb30b37b2
tree7d5cfa6c56abf68715dad5fcc0ce993bcc6c3e51
parent1b892c5a7d7200eefa4b74baa17d7001d13c9792
zink: check maxImageDimension1D as well as maxImageDimension2D

According to the docs for PIPE_CAP_MAX_TEXTURE_2D_SIZE, it's the limit
both for 2D *and* 1D textures. So let's take the min of the two vulkan
features here instead of assuming they're the same.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19780>
docs/drivers/zink.rst
src/gallium/drivers/zink/VP_ZINK_requirements.json
src/gallium/drivers/zink/zink_screen.c