zink: document requirement of VK_EXT_custom_border_color

Without this extension, we misrender when custom border colors are
used. Let's document this, and emit a warning when the extension is
missing.

Reviewed-by: Joshua Ashton <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10316>
This commit is contained in:
Erik Faye-Lund 2021-04-19 12:41:01 +02:00 committed by Marge Bot
parent a144fa608d
commit ff007afce2
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ Here's a list of those requirements:
* Device extensions:
* `VK_KHR_maintenance1`_
* `VK_EXT_custom_border_color`
In addition to this, `VK_KHR_external_memory`_ is required to support the
DRI code-path.

View File

@ -1432,7 +1432,8 @@ check_base_requirements(struct zink_screen *screen)
!screen->info.feats.features.shaderClipDistance ||
!(screen->info.feats12.scalarBlockLayout ||
screen->info.have_EXT_scalar_block_layout) ||
!screen->info.have_KHR_maintenance1) {
!screen->info.have_KHR_maintenance1 ||
!screen->info.have_EXT_custom_border_color) {
fprintf(stderr, "WARNING: The Vulkan device doesn't support "
"the base Zink requirements, some incorrect rendering "
"might occur\n");