mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Add flags to handle sync domain with v2 events
This commit is contained in:
parent
322b5dac79
commit
3e8f9cbbf2
1 changed files with 7 additions and 1 deletions
|
@ -174,7 +174,7 @@ namespace vk
|
|||
return m_handle;
|
||||
}
|
||||
|
||||
event::event(const render_device& dev, sync_domain /*domain*/)
|
||||
event::event(const render_device& dev, sync_domain domain)
|
||||
: m_device(&dev), v2(dev.get_synchronization2_support())
|
||||
{
|
||||
VkEventCreateInfo info
|
||||
|
@ -183,6 +183,12 @@ namespace vk
|
|||
.pNext = nullptr,
|
||||
.flags = 0
|
||||
};
|
||||
|
||||
if (v2 && domain == sync_domain::gpu)
|
||||
{
|
||||
info.flags = VK_EVENT_CREATE_DEVICE_ONLY_BIT_KHR;
|
||||
}
|
||||
|
||||
CHECK_RESULT(vkCreateEvent(dev, &info, nullptr, &m_vk_event));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue