turnip: Fix compiler warning about casting a nondispatchable handle.

Fixes: 1c5d84fcae ("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>
(cherry picked from commit bd53f4f56b)
This commit is contained in:
Eric Anholt 2020-02-21 16:38:26 -08:00 committed by Dylan Baker
parent 5f0ae1f0b4
commit 8a9f1293b8
2 changed files with 2 additions and 2 deletions

View file

@ -1246,7 +1246,7 @@
"description": "turnip: Fix compiler warning about casting a nondispatchable handle.",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "1c5d84fcae71b40f77891386ac53c8addee4f554"
},

View file

@ -3935,7 +3935,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);