mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 02:10:24 +01:00
dzn: Pass the dzn_event pointer to _mesa_hash_table_insert()
The key is supposed to be the dzn_event pointer, not the VkEvent object, even if they do match in practice on 64bit builds. Fixes:a012b21964("microsoft: Initial vulkan-on-12 driver") Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16109> (cherry picked from commit3328f6be06)
This commit is contained in:
parent
001a5c73cc
commit
ff7e8aec04
2 changed files with 3 additions and 3 deletions
|
|
@ -454,7 +454,7 @@
|
|||
"description": "dzn: Pass the dzn_event pointer to _mesa_hash_table_insert()",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "a012b219640e875aa552b37dfdaf69336d5863c7"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -3788,7 +3788,7 @@ dzn_CmdResetEvent(VkCommandBuffer commandBuffer,
|
|||
dzn_device *device = container_of(cmdbuf->vk.base.device, dzn_device, vk);
|
||||
VK_FROM_HANDLE(dzn_event, evt, event);
|
||||
|
||||
if (!_mesa_hash_table_insert(cmdbuf->events.ht, event, (void *)(uintptr_t)DZN_EVENT_STATE_RESET))
|
||||
if (!_mesa_hash_table_insert(cmdbuf->events.ht, evt, (void *)(uintptr_t)DZN_EVENT_STATE_RESET))
|
||||
cmdbuf->error = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
}
|
||||
|
||||
|
|
@ -3801,7 +3801,7 @@ dzn_CmdSetEvent(VkCommandBuffer commandBuffer,
|
|||
dzn_device *device = container_of(cmdbuf->vk.base.device, dzn_device, vk);
|
||||
VK_FROM_HANDLE(dzn_event, evt, event);
|
||||
|
||||
if (!_mesa_hash_table_insert(cmdbuf->events.ht, event, (void *)(uintptr_t)DZN_EVENT_STATE_SET))
|
||||
if (!_mesa_hash_table_insert(cmdbuf->events.ht, evt, (void *)(uintptr_t)DZN_EVENT_STATE_SET))
|
||||
cmdbuf->error = vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue