diff options
author | Marek Olšák <[email protected]> | 2018-03-09 16:24:40 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-03-09 16:28:29 -0500 |
commit | e99212e97090e9ad321a6e54088e8c011912a93b (patch) | |
tree | 01fd8028ee2813daa3713763440371b2e974c457 | |
parent | e30a165be274e399787ba7d44171567f3d93dcac (diff) |
ac/gpu_info: print ib_start_alignment, add assertion
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 29e2aa8a529..73b5da0fe18 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -366,6 +366,7 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev, ib_align = MAX2(ib_align, vce.ib_start_alignment); ib_align = MAX2(ib_align, vcn_dec.ib_start_alignment); ib_align = MAX2(ib_align, vcn_enc.ib_start_alignment); + assert(ib_align); info->ib_start_alignment = ib_align; return true; @@ -422,6 +423,7 @@ void ac_print_gpu_info(struct radeon_info *info) printf("has_virtual_memory = %i\n", info->has_virtual_memory); printf("gfx_ib_pad_with_type2 = %i\n", info->gfx_ib_pad_with_type2); printf("has_hw_decode = %u\n", info->has_hw_decode); + printf("ib_start_alignment = %u\n", info->ib_start_alignment); printf("num_sdma_rings = %i\n", info->num_sdma_rings); printf("num_compute_rings = %u\n", info->num_compute_rings); printf("uvd_fw_version = %u\n", info->uvd_fw_version); |