mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
anv/formats: Don't advertise stencil texture/blit prior to Broadwell
This commit is contained in:
parent
de54b4b18f
commit
34d55d69cf
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue