pvr: Implement vkSetEvent API.
Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18708>
This commit is contained in:
committed by
Marge Bot
parent
2274b26dfb
commit
96f5892f62
@@ -2582,7 +2582,18 @@ VkResult pvr_GetEventStatus(VkDevice _device, VkEvent _event)
|
||||
|
||||
VkResult pvr_SetEvent(VkDevice _device, VkEvent _event)
|
||||
{
|
||||
assert(!"Unimplemented");
|
||||
PVR_FROM_HANDLE(pvr_event, event, _event);
|
||||
|
||||
if (event->sync) {
|
||||
PVR_FROM_HANDLE(pvr_device, device, _device);
|
||||
|
||||
const VkResult result = vk_sync_signal(&device->vk, event->sync, 0);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
}
|
||||
|
||||
event->state = PVR_EVENT_STATE_SET_BY_HOST;
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user