diff options
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_formats.c | 6 |
1 files 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; } |