mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
venus: enable VK_EXT_external_memory_acquire_unmodified if needed
When used internally, we have to conditionally enable it behind the app.
Fixes: 969cb02de7 ("venus: chain VkExternalMemoryAcquireUnmodifiedEXT for wsi ownership transfers")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33419>
This commit is contained in:
parent
6b2b74a894
commit
1d668233ba
1 changed files with 9 additions and 0 deletions
|
|
@ -333,6 +333,15 @@ vn_device_fix_create_info(const struct vn_device *dev,
|
||||||
extra_exts[extra_count++] = VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME;
|
extra_exts[extra_count++] = VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* see vn_cmd_set_external_acquire_unmodified */
|
||||||
|
if (VN_PRESENT_SRC_INTERNAL_LAYOUT != VK_IMAGE_LAYOUT_PRESENT_SRC_KHR &&
|
||||||
|
physical_dev->renderer_extensions
|
||||||
|
.EXT_external_memory_acquire_unmodified &&
|
||||||
|
!app_exts->EXT_external_memory_acquire_unmodified && has_wsi) {
|
||||||
|
extra_exts[extra_count++] =
|
||||||
|
VK_EXT_EXTERNAL_MEMORY_ACQUIRE_UNMODIFIED_EXTENSION_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
if (app_exts->EXT_device_memory_report) {
|
if (app_exts->EXT_device_memory_report) {
|
||||||
/* see vn_physical_device_get_native_extensions */
|
/* see vn_physical_device_get_native_extensions */
|
||||||
block_exts[block_count++] = VK_EXT_DEVICE_MEMORY_REPORT_EXTENSION_NAME;
|
block_exts[block_count++] = VK_EXT_DEVICE_MEMORY_REPORT_EXTENSION_NAME;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue