summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-12-24 13:46:23 -0500
committerMarek Olšák <[email protected]>2020-01-08 16:00:40 -0500
commitd7b565365e0262f45c0040e984c679bd3c0d42f1 (patch)
treecf5a8873e0213d4a3eb98743a33f24818752de19 /src/amd/common
parentd1c8aeb24f9a28ba95290c0e712e152eeeb64d09 (diff)
ac/gpu_info: add pc_lines and use it in radeonsi
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_gpu_info.c3
-rw-r--r--src/amd/common/ac_gpu_info.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 82a6cfb825d..b8230fd03b1 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -639,6 +639,8 @@ bool ac_query_gpu_info(int fd, void *dev_p,
assert(0);
}
+ info->pc_lines = pc_lines;
+
if (info->chip_class >= GFX10) {
info->pbb_max_alloc_count = pc_lines / 3;
} else {
@@ -758,6 +760,7 @@ void ac_print_gpu_info(struct radeon_info *info)
printf(" num_tcc_blocks = %i\n", info->num_tcc_blocks);
printf(" tcc_cache_line_size = %u\n", info->tcc_cache_line_size);
printf(" tcc_harvested = %u\n", info->tcc_harvested);
+ printf(" pc_lines = %u\n", info->pc_lines);
printf("CP info:\n");
printf(" gfx_ib_pad_with_type2 = %i\n", info->gfx_ib_pad_with_type2);
diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h
index 412332ea70d..08ded09030a 100644
--- a/src/amd/common/ac_gpu_info.h
+++ b/src/amd/common/ac_gpu_info.h
@@ -96,6 +96,7 @@ struct radeon_info {
uint32_t num_tcc_blocks;
uint32_t tcc_cache_line_size;
bool tcc_harvested;
+ unsigned pc_lines;
/* CP info. */
bool gfx_ib_pad_with_type2;