Commit 11ad78b 1 parent 890c942 commit 11ad78b Copy full SHA for 11ad78b
File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ extern "C" {
106
106
#define VKD3D_CONFIG_FLAG_DRIVER_VERSION_SENSITIVE_SHADERS (1ull << 48)
107
107
#define VKD3D_CONFIG_FLAG_SMALL_VRAM_REBAR (1ull << 49)
108
108
#define VKD3D_CONFIG_FLAG_STAGGERED_SUBMIT (1ull << 50)
109
+ #define VKD3D_CONFIG_FLAG_ASYNC_PRESENT (1ull << 51)
109
110
110
111
struct vkd3d_instance ;
111
112
Original file line number Diff line number Diff line change @@ -940,6 +940,7 @@ static const struct vkd3d_debug_option vkd3d_config_options[] =
940
940
{"app_debug_marker_only" , VKD3D_CONFIG_FLAG_APP_DEBUG_MARKER_ONLY },
941
941
{"small_vram_rebar" , VKD3D_CONFIG_FLAG_SMALL_VRAM_REBAR },
942
942
{"staggered_submit" , VKD3D_CONFIG_FLAG_STAGGERED_SUBMIT },
943
+ {"async_present" , VKD3D_CONFIG_FLAG_ASYNC_PRESENT },
943
944
};
944
945
945
946
static void vkd3d_config_flags_init_once (void )
Original file line number Diff line number Diff line change @@ -1349,7 +1349,8 @@ static HRESULT dxgi_vk_swap_chain_create_surface(struct dxgi_vk_swap_chain *chai
1349
1349
* Only attempt this if the application is asking for an "unusual" priority, since this
1350
1350
* implies some out of order shenanigans. */
1351
1351
family_info = chain -> queue -> device -> queue_families [VKD3D_QUEUE_FAMILY_COMPUTE ];
1352
- if (chain -> queue -> device -> queue_families [VKD3D_QUEUE_FAMILY_GRAPHICS ]-> queue_count == 1 &&
1352
+ if ((vkd3d_config_flags & VKD3D_CONFIG_FLAG_ASYNC_PRESENT ) &&
1353
+ chain -> queue -> device -> queue_families [VKD3D_QUEUE_FAMILY_GRAPHICS ]-> queue_count == 1 &&
1353
1354
family_info -> vk_family_index != chain -> queue -> vkd3d_queue -> vk_family_index &&
1354
1355
VK_CALL (vkGetPhysicalDeviceSurfaceSupportKHR (vk_physical_device ,
1355
1356
family_info -> vk_family_index , chain -> vk_surface , & supported )) == VK_SUCCESS && supported )
You can’t perform that action at this time.
0 commit comments