From deab3a23f6c35720248144637058697f46b2fa34 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 12 Sep 2019 19:00:23 -0400 Subject: ac: move num_sdp_interfaces into radeon_info Reviewed-by: Timothy Arceri Reviewed-by: Samuel Pitoiset --- src/amd/common/ac_gpu_info.c | 14 ++++++++++++++ src/amd/common/ac_gpu_info.h | 1 + 2 files changed, 15 insertions(+) (limited to 'src/amd/common') diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index aa09ba815ef..0c6e8cbfb98 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -570,6 +570,20 @@ bool ac_query_gpu_info(int fd, void *dev_p, } } + if (info->chip_class >= GFX10) { + switch (info->family) { + case CHIP_NAVI10: + case CHIP_NAVI12: + info->num_sdp_interfaces = 16; + break; + case CHIP_NAVI14: + info->num_sdp_interfaces = 8; + break; + default: + assert(0); + } + } + return true; } diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h index 555f7175e87..1e42a2a434b 100644 --- a/src/amd/common/ac_gpu_info.h +++ b/src/amd/common/ac_gpu_info.h @@ -67,6 +67,7 @@ struct radeon_info { bool has_out_of_order_rast; bool cpdma_prefetch_writes_memory; uint32_t pbb_max_alloc_count; + uint32_t num_sdp_interfaces; /* There are 2 display DCC codepaths, because display expects unaligned DCC. */ /* Disable RB and pipe alignment to skip the retile blit. (1 RB chips only) */ -- cgit v1.2.3