mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 06:35:04 -06:00
Add flags to handle sync domain with v2 events
This commit is contained in:
parent
322b5dac79
commit
3e8f9cbbf2
@ -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…
Reference in New Issue
Block a user