radeonsi/gfx11: remove the INST_PREF_SIZE workaround

The hw does the right thing automatically. (i.e. enables or disables
the feature)

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21041>
This commit is contained in:
Marek Olšák 2023-01-23 21:29:37 -05:00 committed by Marge Bot
parent f6c30af00c
commit d21850f753

View file

@ -671,13 +671,6 @@ static unsigned si_get_vs_vgpr_comp_cnt(struct si_screen *sscreen, struct si_sha
unsigned si_get_shader_prefetch_size(struct si_shader *shader)
{
/* Return 0 for some A0 chips only. Other chips don't need it. */
if ((shader->selector->screen->info.family == CHIP_GFX1100 ||
shader->selector->screen->info.family == CHIP_GFX1102 ||
shader->selector->screen->info.family == CHIP_GFX1103_R1) &&
shader->selector->screen->info.chip_rev == 0)
return 0;
/* inst_pref_size is calculated in cache line size granularity */
assert(!(shader->bo->b.b.width0 & 0x7f));
return MIN2(shader->bo->b.b.width0, 8064) / 128;