anv/formats: Don't advertise stencil texture/blit prior to Broadwell

This commit is contained in:
Jason Ekstrand 2015-11-17 01:32:55 -08:00
parent de54b4b18f
commit 34d55d69cf

View file

@ -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;
}