From bd53f4f56b2ca93c1fe4f5af29b5040d2b32e88f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 21 Feb 2020 16:38:26 -0800 Subject: [PATCH] turnip: Fix compiler warning about casting a nondispatchable handle. Fixes: 1c5d84fcae71 ("turnip: hook up cmdbuffer event set/wait") Tested-by: Marge Bot Part-of: --- src/freedreno/vulkan/tu_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2