mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
ac/gpu_info: remove redundant radeon_info::num_sdp_interfaces
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8892>
This commit is contained in:
parent
dcb6ab84e6
commit
bec7b7d528
4 changed files with 2 additions and 8 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue