anv: store event creation flags
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38707>
This commit is contained in:
committed by
Marge Bot
parent
72ee520b36
commit
5dd6f0d0ef
@@ -20,6 +20,7 @@ VkResult anv_CreateEvent(
|
||||
if (event == NULL)
|
||||
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
event->flags = pCreateInfo->flags;
|
||||
event->state = anv_state_pool_alloc(&device->dynamic_state_pool,
|
||||
sizeof(uint64_t), 8);
|
||||
*(uint64_t *)event->state.map = VK_EVENT_RESET;
|
||||
|
||||
@@ -5166,6 +5166,7 @@ void anv_cmd_buffer_restore_state(struct anv_cmd_buffer *cmd_buffer,
|
||||
|
||||
struct anv_event {
|
||||
struct vk_object_base base;
|
||||
VkEventCreateFlags flags;
|
||||
struct anv_state state;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user