mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
zink: determine whether the vulkan driver requires mesa flush wsi
this is used for ANV's implicit fencing (until we get wsi) Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9290>
This commit is contained in:
parent
86bd643d6a
commit
6fb4e1345d
2 changed files with 4 additions and 1 deletions
|
|
@ -1215,7 +1215,9 @@ check_device_needs_mesa_wsi(struct zink_screen *screen)
|
|||
screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_RADV_KHR
|
||||
) {
|
||||
screen->needs_mesa_wsi = true;
|
||||
}
|
||||
} else if (screen->info.driver_props.driverID == VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA_KHR)
|
||||
screen->needs_mesa_flush_wsi = true;
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ struct zink_screen {
|
|||
uint32_t cur_custom_border_color_samplers;
|
||||
|
||||
bool needs_mesa_wsi;
|
||||
bool needs_mesa_flush_wsi;
|
||||
|
||||
PFN_vkGetPhysicalDeviceFeatures2 vk_GetPhysicalDeviceFeatures2;
|
||||
PFN_vkGetPhysicalDeviceProperties2 vk_GetPhysicalDeviceProperties2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue