radv: enable tc compatible htile for d32s8 also.
authorDave Airlie <airlied@redhat.com>
Tue, 13 Jun 2017 03:31:14 +0000 (13:31 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Oct 2017 20:02:23 +0000 (21:02 +0100)
This enables tc compatible htile for stencil surfaces as well.

This gives a 3-5fps boost on Mad Max on high@4k.

It also depends on Bas's tc-compat htile patch.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c

index bf30281abaa632aac30acdb03be8442688286037..c017bf8955382b4bc3c48577a19a166080a78769 100644 (file)
@@ -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;