diff options
author | Eric Anholt <[email protected]> | 2020-02-21 16:38:26 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-26 16:58:50 +0000 |
commit | bd53f4f56b2ca93c1fe4f5af29b5040d2b32e88f (patch) | |
tree | ed7301e6fbdad26daacd4c904ad98e9ef7e390a2 /src/freedreno/vulkan | |
parent | ebd071d8cf034f898ce30df8277130d1625c902e (diff) |
turnip: Fix compiler warning about casting a nondispatchable handle.
Fixes: 1c5d84fcae71 ("turnip: hook up cmdbuffer event set/wait")
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3916>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3916>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 9bda41d4d06..2a513c911f4 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -4113,7 +4113,7 @@ tu_CmdWaitEvents(VkCommandBuffer commandBuffer, /* TODO: any flush required before/after? (CP_WAIT_FOR_ME?) */ for (uint32_t i = 0; i < eventCount; i++) { - const struct tu_event *event = (const struct tu_event*) pEvents[i]; + TU_FROM_HANDLE(tu_event, event, pEvents[i]); tu_bo_list_add(&cmd->bo_list, &event->bo, MSM_SUBMIT_BO_READ); |