Commit 817b8dd
committed
tu/kgsl: drop strict KHR_display check during initialization
Currently, `tu_knl_kgsl_load` explicitly fails with `VK_ERROR_INITIALIZATION_FAILED`
if the application enables the `VK_KHR_display` instance extension.
This causes applications that blindly enable all available instance extensions
(such as `vkcube` or WSI layers) to fail device enumeration completely
in environments where KMS/DRM support is compiled alongside KGSL (i.e. when
VK_USE_PLATFORM_DISPLAY_KHR is exposed).
The proper WSI display fallback behavior (returning 0 displays when the DRM
master fd is invalid/missing) is already correctly handled by `wsi_display_init_wsi`
and `wsi_GetPhysicalDeviceDisplayPropertiesKHR`. Thus, it is safe and more
compliant to drop this aggressive check, allowing Vulkan physical device
enumeration to succeed even if the display extension was requested.1 parent 73319d2 commit 817b8dd
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1754 | 1754 | | |
1755 | 1755 | | |
1756 | 1756 | | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
| 1757 | + | |
1761 | 1758 | | |
1762 | 1759 | | |
1763 | 1760 | | |
| |||
0 commit comments