From: Eric Anholt Date: Sat, 22 Feb 2020 00:38:26 +0000 (-0800) Subject: turnip: Fix compiler warning about casting a nondispatchable handle. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd53f4f56b2ca93c1fe4f5af29b5040d2b32e88f;p=mesa.git turnip: Fix compiler warning about casting a nondispatchable handle. Fixes: 1c5d84fcae71 ("turnip: hook up cmdbuffer event set/wait") Tested-by: Marge Bot Part-of: --- 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);