diff options
author | Jason Ekstrand <[email protected]> | 2016-03-30 17:43:44 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-08 15:59:29 -0700 |
commit | c226e72a399199a71579f22e5b088f50b1a10ac1 (patch) | |
tree | 97512bd790527407b91b2a0b46c70f7f7d9f1b89 /src/intel/vulkan | |
parent | e3312644cbc8a74c262e35672547d5cce83fd1bc (diff) |
anv/formats: Advertise blit support for stencil
Thanks to advances in the blit code, we can do this now.
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 4d279a8fb72..750af793bdf 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -381,13 +381,11 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d VkFormatFeatureFlags linear = 0, tiled = 0, buffer = 0; if (anv_format_is_depth_or_stencil(&anv_formats[format])) { tiled |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT; - if (physical_device->info->gen >= 8) { + if (physical_device->info->gen >= 8) tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT; - tiled |= VK_FORMAT_FEATURE_BLIT_SRC_BIT; - } - if (anv_formats[format].has_depth) { - tiled |= VK_FORMAT_FEATURE_BLIT_DST_BIT; - } + + tiled |= VK_FORMAT_FEATURE_BLIT_SRC_BIT | + VK_FORMAT_FEATURE_BLIT_DST_BIT; } else { enum isl_format linear_fmt, tiled_fmt; struct anv_format_swizzle linear_swizzle, tiled_swizzle; |