turnip: mark IBs for dumping
authorChia-I Wu <olvaffe@gmail.com>
Mon, 25 Feb 2019 22:32:36 +0000 (14:32 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
Includes IBs in kernel cmdbuf dumps.

src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_device.c

index 9022e2359ba37e87df6ac5e2867c0b17894d8d7e..29219a0b039a92451af22f9521465ce4b01ba047 100644 (file)
@@ -1640,7 +1640,7 @@ tu_EndCommandBuffer(VkCommandBuffer commandBuffer)
 
    for (uint32_t i = 0; i < cmd_buffer->tile_cs.bo_count; i++) {
       tu_bo_list_add(&cmd_buffer->bo_list, cmd_buffer->tile_cs.bos[i],
-                     MSM_SUBMIT_BO_READ);
+                     MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP);
    }
 
    tu_cs_end(&cmd_buffer->cs);
index 598ed537fa3dc3f10ce0114f7ae9c29c005687a6..76d0f21f8cde2abfa86fdaa6d0782f9da243553b 100644 (file)
@@ -1212,8 +1212,9 @@ tu_QueueSubmit(VkQueue _queue,
          struct tu_cs *cs = &cmdbuf->cs;
          for (unsigned i = 0; i < cs->entry_count; ++i, ++entry_idx) {
             cmds[entry_idx].type = MSM_SUBMIT_CMD_BUF;
-            cmds[entry_idx].submit_idx = tu_bo_list_add(
-               &bo_list, cs->entries[i].bo, MSM_SUBMIT_BO_READ);
+            cmds[entry_idx].submit_idx =
+               tu_bo_list_add(&bo_list, cs->entries[i].bo,
+                              MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_DUMP);
             cmds[entry_idx].submit_offset = cs->entries[i].offset;
             cmds[entry_idx].size = cs->entries[i].size;
             cmds[entry_idx].pad = 0;