turnip: add missing tu_bo_list_add in CmdWriteTimestamp
authorJonathan Marek <jonathan@marek.ca>
Thu, 5 Mar 2020 18:54:38 +0000 (13:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 Aug 2020 14:28:11 +0000 (14:28 +0000)
Fixes an issue observed in renderdoc.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6320>

src/freedreno/vulkan/tu_query.c

index 9b013060cb37fbe1058d471034fb74f71ffbd594..e3fdb49091c1ad05068715d277798be83e7854f6 100644 (file)
@@ -784,6 +784,8 @@ tu_CmdWriteTimestamp(VkCommandBuffer commandBuffer,
    TU_FROM_HANDLE(tu_query_pool, pool, queryPool);
    struct tu_cs *cs = cmd->state.pass ? &cmd->draw_epilogue_cs : &cmd->cs;
 
+   tu_bo_list_add(&cmd->bo_list, &pool->bo, MSM_SUBMIT_BO_WRITE);
+
    /* WFI to get more accurate timestamp */
    tu_cs_emit_wfi(cs);