[Mesa-dev] [PATCH] radv: enable tc compatible htile for d32s8 also.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Wed Oct 4 07:33:02 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Wed, Oct 4, 2017 at 4:41 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This enables tc compatible htile for stencil surfaces as well.
>
> This gives a 3-5fps boost on Mad Max on high at 4k.
>
> It also depends on Bas's tc-compat htile patch.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/vulkan/radv_image.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index bf30281..c017bf8 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -114,7 +114,8 @@ radv_init_surface(struct radv_device *device,
>                     pCreateInfo->tiling != VK_IMAGE_TILING_LINEAR &&
>                     pCreateInfo->mipLevels <= 1 &&
>                     device->physical_device->rad_info.chip_class >= VI &&
> -                   (pCreateInfo->format == VK_FORMAT_D32_SFLOAT ||
> +                   ((pCreateInfo->format == VK_FORMAT_D32_SFLOAT ||
> +                     pCreateInfo->format == VK_FORMAT_D32_SFLOAT_S8_UINT) ||
>                      (device->physical_device->rad_info.chip_class >= GFX9 &&
>                       pCreateInfo->format == VK_FORMAT_D16_UNORM)))
>                         surface->flags |= RADEON_SURF_TC_COMPATIBLE_HTILE;
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list