diff --git a/src/nouveau/vulkan/nvk_image.c b/src/nouveau/vulkan/nvk_image.c index 7e24dd33412..13e5594159b 100644 --- a/src/nouveau/vulkan/nvk_image.c +++ b/src/nouveau/vulkan/nvk_image.c @@ -219,11 +219,10 @@ nvk_GetPhysicalDeviceImageFormatProperties2( } if (features == 0) return VK_ERROR_FORMAT_NOT_SUPPORTED; - - if (pImageFormatInfo->tiling == VK_IMAGE_TILING_LINEAR && + + if (pImageFormatInfo->tiling == VK_IMAGE_TILING_LINEAR && pImageFormatInfo->type != VK_IMAGE_TYPE_2D) return VK_ERROR_FORMAT_NOT_SUPPORTED; - if (vk_format_is_compressed(pImageFormatInfo->format) && pImageFormatInfo->type != VK_IMAGE_TYPE_2D)