mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12: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;
|
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())
|
: m_device(&dev), v2(dev.get_synchronization2_support())
|
||||||
{
|
{
|
||||||
VkEventCreateInfo info
|
VkEventCreateInfo info
|
||||||
|
@ -183,6 +183,12 @@ namespace vk
|
||||||
.pNext = nullptr,
|
.pNext = nullptr,
|
||||||
.flags = 0
|
.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));
|
CHECK_RESULT(vkCreateEvent(dev, &info, nullptr, &m_vk_event));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue