mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv,ac: GFX10 depth/stencil HTILE mipmap bug info variable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Signed-off-by: Vitaliy Triang3l Kuzmin <triang3l@yandex.ru> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33962>
This commit is contained in:
parent
1c27ddefd0
commit
5243f292ef
3 changed files with 7 additions and 2 deletions
|
|
@ -935,6 +935,9 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
|
|||
|
||||
info->has_gfx9_scissor_bug = info->family == CHIP_VEGA10 || info->family == CHIP_RAVEN;
|
||||
|
||||
/* Stencil texturing with HTILE doesn't work with mipmapping on Navi10-14. */
|
||||
info->has_htile_stencil_mipmap_bug = info->gfx_level == GFX10;
|
||||
|
||||
info->has_tc_compat_zrange_bug = info->gfx_level >= GFX8 && info->gfx_level <= GFX9;
|
||||
|
||||
info->has_small_prim_filter_sample_loc_bug =
|
||||
|
|
@ -1710,6 +1713,7 @@ void ac_print_gpu_info(const struct radeon_info *info, FILE *f)
|
|||
fprintf(f, " has_out_of_order_rast = %u\n", info->has_out_of_order_rast);
|
||||
fprintf(f, " cpdma_prefetch_writes_memory = %u\n", info->cpdma_prefetch_writes_memory);
|
||||
fprintf(f, " has_gfx9_scissor_bug = %i\n", info->has_gfx9_scissor_bug);
|
||||
fprintf(f, " has_htile_stencil_mipmap_bug = %i\n", info->has_htile_stencil_mipmap_bug);
|
||||
fprintf(f, " has_tc_compat_zrange_bug = %i\n", info->has_tc_compat_zrange_bug);
|
||||
fprintf(f, " has_small_prim_filter_sample_loc_bug = %i\n", info->has_small_prim_filter_sample_loc_bug);
|
||||
fprintf(f, " has_ls_vgpr_init_bug = %i\n", info->has_ls_vgpr_init_bug);
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ struct radeon_info {
|
|||
bool has_accelerated_dot_product;
|
||||
bool cpdma_prefetch_writes_memory;
|
||||
bool has_gfx9_scissor_bug;
|
||||
bool has_htile_stencil_mipmap_bug;
|
||||
bool has_tc_compat_zrange_bug;
|
||||
bool has_small_prim_filter_sample_loc_bug;
|
||||
bool has_ls_vgpr_init_bug;
|
||||
|
|
|
|||
|
|
@ -407,8 +407,8 @@ radv_use_htile_for_image(const struct radv_device *device, const struct radv_ima
|
|||
*/
|
||||
bool use_htile_for_mips = image->vk.array_layers == 1 && pdev->info.gfx_level >= GFX10;
|
||||
|
||||
/* Stencil texturing with HTILE doesn't work with mipmapping on Navi10-14. */
|
||||
if (pdev->info.gfx_level == GFX10 && image->vk.format == VK_FORMAT_D32_SFLOAT_S8_UINT && image->vk.mip_levels > 1)
|
||||
if (pdev->info.has_htile_stencil_mipmap_bug && image->vk.format == VK_FORMAT_D32_SFLOAT_S8_UINT &&
|
||||
image->vk.mip_levels > 1)
|
||||
return false;
|
||||
|
||||
/* Do not enable HTILE for very small images because it seems less performant but make sure it's
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue