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>
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;