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:
Lionel Landwerlin
2024-10-22 20:39:07 +03:00
committed by Marge Bot
parent 72ee520b36
commit 5dd6f0d0ef
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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;
+1
View File
@@ -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;
};