radv/amdgpu: use the non-IB path for dumping CS with external IBs
Only the first CS chunk was dumped, but this allows to dump CS that are post the DGC execute IB when on compute queue. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29832>
This commit is contained in:
committed by
Marge Bot
parent
3274af99bf
commit
4db32ac7ef
@@ -1392,7 +1392,7 @@ radv_amdgpu_winsys_cs_dump(struct radeon_cmdbuf *_cs, FILE *file, const int *tra
|
||||
struct radv_amdgpu_cs *cs = (struct radv_amdgpu_cs *)_cs;
|
||||
struct radv_amdgpu_winsys *ws = cs->ws;
|
||||
|
||||
if (cs->use_ib) {
|
||||
if (cs->use_ib && !radv_amdgpu_cs_has_external_ib(cs)) {
|
||||
struct radv_amdgpu_cs_ib_info ib_info = radv_amdgpu_cs_ib_to_info(cs, cs->ib_buffers[0]);
|
||||
|
||||
struct ac_addr_info addr_info;
|
||||
@@ -1429,6 +1429,11 @@ radv_amdgpu_winsys_cs_dump(struct radeon_cmdbuf *_cs, FILE *file, const int *tra
|
||||
char name[64];
|
||||
void *mapped;
|
||||
|
||||
if (!ib->bo) {
|
||||
fprintf(file, "Chunk %d isn't owned by this CS.\n\n", i);
|
||||
continue;
|
||||
}
|
||||
|
||||
mapped = radv_buffer_map(&ws->base, ib->bo);
|
||||
if (!mapped)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user