v3dv/formats: properly return unsupported for 1D compressed textures
Gets tests like the following one properly skipped: dEQP-VK.api.copy_and_blit.core.image_to_image.all_formats.color.1d.etc2_r8g8b8a8_unorm_block.etc2_r8g8b8a8_unorm_block.optimal_general Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
committed by
Marge Bot
parent
0df0449b65
commit
abca6c97a0
@@ -650,6 +650,12 @@ get_image_format_properties(
|
||||
unreachable("bad VkImageType");
|
||||
}
|
||||
|
||||
/* Our hw doesn't support 1D compressed textures. */
|
||||
if (info->type == VK_IMAGE_TYPE_1D &&
|
||||
vk_format_is_compressed(info->format)) {
|
||||
goto unsupported;
|
||||
}
|
||||
|
||||
/* From the Vulkan 1.0 spec, section 34.1.1. Supported Sample Counts:
|
||||
*
|
||||
* sampleCounts will be set to VK_SAMPLE_COUNT_1_BIT if at least one of the
|
||||
|
||||
Reference in New Issue
Block a user