diff options
author | Marek Olšák <[email protected]> | 2019-11-14 17:43:12 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-11-19 18:31:53 -0500 |
commit | e9cc4f670f7faf4e95933fe670b3bd13a6efa887 (patch) | |
tree | ce44b61325c9277429f479f40b4193f8a77c2912 /src/amd/common/ac_gpu_info.c | |
parent | 654efd38bb49daa0040ffbc6b046a6d3ba4cdb4f (diff) |
ac: add radeon_info::num_rings and move ring_type to amd_family.h
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/amd/common/ac_gpu_info.c')
-rw-r--r-- | src/amd/common/ac_gpu_info.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 23dcb190a3f..c40427987f7 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -500,8 +500,8 @@ bool ac_query_gpu_info(int fd, void *dev_p, assert(util_is_power_of_two_or_zero(compute.available_rings + 1)); info->has_graphics = gfx.available_rings > 0; - info->num_sdma_rings = util_bitcount(dma.available_rings); - info->num_compute_rings = util_bitcount(compute.available_rings); + info->num_rings[RING_DMA] = util_bitcount(dma.available_rings); + info->num_rings[RING_COMPUTE] = util_bitcount(compute.available_rings); /* The mere presence of CLEAR_STATE in the IB causes random GPU hangs * on GFX6. Some CLEAR_STATE cause asic hang on radeon kernel, etc. @@ -708,8 +708,8 @@ void ac_print_gpu_info(struct radeon_info *info) printf("Features:\n"); printf(" has_graphics = %i\n", info->has_graphics); - printf(" num_compute_rings = %u\n", info->num_compute_rings); - printf(" num_sdma_rings = %i\n", info->num_sdma_rings); + printf(" num_rings[RING_COMPUTE] = %u\n", info->num_rings[RING_COMPUTE]); + printf(" num_rings[RING_DMA] = %i\n", info->num_rings[RING_DMA]); printf(" has_clear_state = %u\n", info->has_clear_state); printf(" has_distributed_tess = %u\n", info->has_distributed_tess); printf(" has_dcc_constant_encode = %u\n", info->has_dcc_constant_encode); |