mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
nvk: Only enable WSI modifiers if the extension is supported.
The extension relies on the kernel being new, so don't tell
wsi about it.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11270
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11166
Fixes: e6f77defec ("nvk/wsi: Advertise modifier support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29563>
This commit is contained in:
parent
3d05d86d88
commit
726838620e
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,8 @@ nvk_init_wsi(struct nvk_physical_device *pdev)
|
|||
return result;
|
||||
|
||||
pdev->wsi_device.supports_scanout = false;
|
||||
pdev->wsi_device.supports_modifiers = true;
|
||||
pdev->wsi_device.supports_modifiers =
|
||||
pdev->vk.supported_extensions.table.EXT_image_drm_format_modifier;
|
||||
|
||||
pdev->vk.wsi_device = &pdev->wsi_device;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue