Commit bec7b7d5 authored by Marek Olšák's avatar Marek Olšák Committed by Marge Bot
Browse files

ac/gpu_info: remove redundant radeon_info::num_sdp_interfaces



Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Pierre-Eric Pelloux-Prayer's avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <!8892>
parent dcb6ab84
......@@ -929,10 +929,6 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
}
}
/* The number of SDPs is the same as the number of TCCs for now. */
if (info->chip_class >= GFX10)
info->num_sdp_interfaces = info->num_tcc_blocks;
if (info->chip_class >= GFX10_3)
info->max_wave64_per_simd = 16;
else if (info->chip_class == GFX10)
......@@ -1062,7 +1058,6 @@ void ac_print_gpu_info(struct radeon_info *info, FILE *f)
fprintf(f, " has_dedicated_vram = %u\n", info->has_dedicated_vram);
fprintf(f, " all_vram_visible = %u\n", info->all_vram_visible);
fprintf(f, " smart_access_memory = %u\n", info->smart_access_memory);
fprintf(f, " num_sdp_interfaces = %u\n", info->num_sdp_interfaces);
fprintf(f, " max_tcc_blocks = %i\n", info->max_tcc_blocks);
fprintf(f, " num_tcc_blocks = %i\n", info->num_tcc_blocks);
fprintf(f, " tcc_cache_line_size = %u\n", info->tcc_cache_line_size);
......
......@@ -104,7 +104,6 @@ struct radeon_info {
bool smart_access_memory;
bool has_l2_uncached;
bool r600_has_virtual_memory;
uint32_t num_sdp_interfaces;
uint32_t max_tcc_blocks;
uint32_t num_tcc_blocks;
uint32_t tcc_cache_line_size;
......
......@@ -3935,7 +3935,7 @@ radv_gfx10_compute_bin_size(const struct radv_pipeline *pipeline, const VkGraphi
const unsigned fmask_tag_count = 44;
const unsigned rb_count = pipeline->device->physical_device->rad_info.max_render_backends;
const unsigned pipe_count = MAX2(rb_count, pipeline->device->physical_device->rad_info.num_sdp_interfaces);
const unsigned pipe_count = MAX2(rb_count, pipeline->device->physical_device->rad_info.num_tcc_blocks);
const unsigned db_tag_part = (db_tag_count * rb_count / pipe_count) * db_tag_size * pipe_count;
const unsigned color_tag_part = (color_tag_count * rb_count / pipe_count) * color_tag_size * pipe_count;
......
......@@ -310,7 +310,7 @@ static void gfx10_get_bin_sizes(struct si_context *sctx, unsigned cb_target_enab
const unsigned FcReadTags = 44;
const unsigned num_rbs = sctx->screen->info.max_render_backends;
const unsigned num_pipes = MAX2(num_rbs, sctx->screen->info.num_sdp_interfaces);
const unsigned num_pipes = MAX2(num_rbs, sctx->screen->info.num_tcc_blocks);
const unsigned depthBinSizeTagPart =
((ZsNumTags * num_rbs / num_pipes) * (ZsTagSize * num_pipes));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment