From: Marek Olšák Date: Fri, 9 Mar 2018 21:24:40 +0000 (-0500) Subject: ac/gpu_info: print ib_start_alignment, add assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e99212e97090e9ad321a6e54088e8c011912a93b;p=mesa.git ac/gpu_info: print ib_start_alignment, add assertion --- 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);