mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 21:20:12 +01:00
vk: Advertise that depthstencil formats support sampling
Let vkGetPhysicalDeviceFormatProperties() set VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT for tiled depthstencil images.
This commit is contained in:
parent
4e48f94469
commit
c15ce5c834
1 changed files with 1 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ VkResult anv_GetPhysicalDeviceFormatProperties(
|
|||
|
||||
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;
|
||||
} else {
|
||||
/* The surface_formats table only contains color formats */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue