From: Jason Ekstrand Date: Tue, 17 Nov 2015 09:32:55 +0000 (-0800) Subject: anv/formats: Don't advertise stencil texture/blit prior to Broadwell X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34d55d69cfe592068a72ed7a5ca9adc1ee080976;p=mesa.git anv/formats: Don't advertise stencil texture/blit prior to Broadwell --- 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; }