mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 15:30:09 +00:00
radv: disable HTILE for D32S8 format and mipmaps on GFX10
Stencil texturing with HTILE doesn't work with mipmapping on Navi10-14, it's a hw bug. RadeonSI and PAL have a workaround too. This fixes 35 piglit failures with Zink on Navi10. Cc: 21.3 mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13814>
This commit is contained in:
parent
d63cd245e1
commit
341278f069
@ -352,6 +352,11 @@ radv_use_htile_for_image(const struct radv_device *device, const struct radv_ima
|
||||
bool use_htile_for_mips =
|
||||
image->info.array_size == 1 && device->physical_device->rad_info.chip_class >= GFX10;
|
||||
|
||||
/* Stencil texturing with HTILE doesn't work with mipmapping on Navi10-14. */
|
||||
if (device->physical_device->rad_info.chip_class == GFX10 &&
|
||||
image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT && image->info.levels > 1)
|
||||
return false;
|
||||
|
||||
/* Do not enable HTILE for very small images because it seems less performant but make sure it's
|
||||
* allowed with VRS attachments because we need HTILE.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user