diff options
author | Chia-I Wu <[email protected]> | 2019-02-25 14:32:36 -0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:02:13 -0700 |
commit | b8a5e10d0d6e6cb79417cf10ef09474eb8d8fc4e (patch) | |
tree | d24abfd8083988740e05640f3995371414a02060 | |
parent | 4a48dd9fb8ffef3f90dbf4538f8a17d4e239f997 (diff) |
turnip: mark IBs for dumping
Includes IBs in kernel cmdbuf dumps.
-rw-r--r-- | src/freedreno/vulkan/tu_cmd_buffer.c | 2 | ||||
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 9022e2359ba..29219a0b039 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -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); diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 598ed537fa3..76d0f21f8cd 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -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; |