From 34d55d69cfe592068a72ed7a5ca9adc1ee080976 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 17 Nov 2015 01:32:55 -0800 Subject: [PATCH] anv/formats: Don't advertise stencil texture/blit prior to Broadwell --- src/vulkan/anv_formats.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index a231967a865..f1c8da00b3c 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -257,9 +257,11 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d uint32_t linear = 0, tiled = 0; if (anv_format_is_depth_or_stencil(format)) { - tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT; tiled |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT; - tiled |= VK_FORMAT_FEATURE_BLIT_SOURCE_BIT; + if (physical_device->info->gen >= 8) { + tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT; + tiled |= VK_FORMAT_FEATURE_BLIT_SOURCE_BIT; + } if (format->depth_format) { tiled |= VK_FORMAT_FEATURE_BLIT_DESTINATION_BIT; } -- 2.30.2