panvk: expose VK_KHR_display
It seems the common WSI code does all that's really needed here for us already. Enabling this lets me run vkmark on PanVK. This is a bit silly, because what actually happens here is that we end up passing -1 as the display_fd to wsi_device_init(). This in turn leads us to returning zero usable displays, which renders the extension somewhat useless. But it is better than not supporting the extension, and not supporting applications who have a hard depdendency on it fail, like is the case with vkmark. Tested-by: Alexandre ARNOUD <aarnoud@me.com> Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33916>
This commit is contained in:
committed by
Marge Bot
parent
10cbd4f211
commit
8aae7d153d
@@ -62,6 +62,9 @@ static const struct vk_instance_extension_table panvk_instance_extensions = {
|
||||
#ifdef PANVK_USE_WSI_PLATFORM
|
||||
.KHR_surface = true,
|
||||
#endif
|
||||
#ifdef VK_USE_PLATFORM_DISPLAY_KHR
|
||||
.KHR_display = true,
|
||||
#endif
|
||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||
.KHR_wayland_surface = true,
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,8 @@ enum panvk_debug_flags {
|
||||
|
||||
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || \
|
||||
defined(VK_USE_PLATFORM_XCB_KHR) || \
|
||||
defined(VK_USE_PLATFORM_XLIB_KHR)
|
||||
defined(VK_USE_PLATFORM_XLIB_KHR) || \
|
||||
defined(VK_USE_PLATFORM_DISPLAY_KHR)
|
||||
#define PANVK_USE_WSI_PLATFORM
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user