From: Connor Abbott Date: Tue, 28 Jul 2020 10:57:08 +0000 (+0200) Subject: tu: Dump CP_DRAW_INDIRECT_MULTI draw BO's X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a1924d55adab0e394cc9bbad0dea40729d52801;p=mesa.git tu: Dump CP_DRAW_INDIRECT_MULTI draw BO's These will be decoded by cffdump. Part-of: --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 7142ea53fb3..ae89c9ab86d 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -3290,7 +3290,7 @@ tu_CmdDrawIndirect(VkCommandBuffer commandBuffer, tu_cs_emit_qw(cs, buf->bo->iova + buf->bo_offset + offset); tu_cs_emit(cs, stride); - tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ); + tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP); } void @@ -3321,7 +3321,7 @@ tu_CmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, tu_cs_emit_qw(cs, buf->bo->iova + buf->bo_offset + offset); tu_cs_emit(cs, stride); - tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ); + tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP); } void @@ -3358,8 +3358,8 @@ tu_CmdDrawIndirectCount(VkCommandBuffer commandBuffer, tu_cs_emit_qw(cs, count_buf->bo->iova + count_buf->bo_offset + countBufferOffset); tu_cs_emit(cs, stride); - tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ); - tu_bo_list_add(&cmd->bo_list, count_buf->bo, MSM_SUBMIT_BO_READ); + tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP); + tu_bo_list_add(&cmd->bo_list, count_buf->bo, MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP); } void @@ -3393,8 +3393,8 @@ tu_CmdDrawIndexedIndirectCount(VkCommandBuffer commandBuffer, tu_cs_emit_qw(cs, count_buf->bo->iova + count_buf->bo_offset + countBufferOffset); tu_cs_emit(cs, stride); - tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ); - tu_bo_list_add(&cmd->bo_list, count_buf->bo, MSM_SUBMIT_BO_READ); + tu_bo_list_add(&cmd->bo_list, buf->bo, MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP); + tu_bo_list_add(&cmd->bo_list, count_buf->bo, MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP); } void tu_CmdDrawIndirectByteCountEXT(VkCommandBuffer commandBuffer,