mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 18:10:11 +01:00
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:
parent
a144fa608d
commit
ff007afce2
2 changed files with 3 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ Here's a list of those requirements:
|
||||||
* Device extensions:
|
* Device extensions:
|
||||||
|
|
||||||
* `VK_KHR_maintenance1`_
|
* `VK_KHR_maintenance1`_
|
||||||
|
* `VK_EXT_custom_border_color`
|
||||||
|
|
||||||
In addition to this, `VK_KHR_external_memory`_ is required to support the
|
In addition to this, `VK_KHR_external_memory`_ is required to support the
|
||||||
DRI code-path.
|
DRI code-path.
|
||||||
|
|
|
||||||
|
|
@ -1432,7 +1432,8 @@ check_base_requirements(struct zink_screen *screen)
|
||||||
!screen->info.feats.features.shaderClipDistance ||
|
!screen->info.feats.features.shaderClipDistance ||
|
||||||
!(screen->info.feats12.scalarBlockLayout ||
|
!(screen->info.feats12.scalarBlockLayout ||
|
||||||
screen->info.have_EXT_scalar_block_layout) ||
|
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 "
|
fprintf(stderr, "WARNING: The Vulkan device doesn't support "
|
||||||
"the base Zink requirements, some incorrect rendering "
|
"the base Zink requirements, some incorrect rendering "
|
||||||
"might occur\n");
|
"might occur\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue