panvk: set correct max extents for images
We updated maxImageDimension2D etc to report the actual max size, but we
forgot to update GetPhysicalDeviceImageFormatProperties in the same way.
Let's do that to make things consistent.
This fixes the following CTS test-case:
dEQP-VK.wsi.wayland.swapchain.create.image_extent
Fixes: d5ed77800e ("panvk: Fix GetPhysicalDeviceProperties2() to report accurate info")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32221>
This commit is contained in:
committed by
Marge Bot
parent
00b25ec769
commit
9c1de5c6b3
@@ -1232,24 +1232,24 @@ get_image_format_properties(struct panvk_physical_device *physical_device,
|
||||
default:
|
||||
unreachable("bad vkimage type");
|
||||
case VK_IMAGE_TYPE_1D:
|
||||
maxExtent.width = 16384;
|
||||
maxExtent.width = 1 << 16;
|
||||
maxExtent.height = 1;
|
||||
maxExtent.depth = 1;
|
||||
maxMipLevels = 15; /* log2(maxWidth) + 1 */
|
||||
maxArraySize = 2048;
|
||||
maxMipLevels = 17; /* log2(maxWidth) + 1 */
|
||||
maxArraySize = 1 << 16;
|
||||
break;
|
||||
case VK_IMAGE_TYPE_2D:
|
||||
maxExtent.width = 16384;
|
||||
maxExtent.height = 16384;
|
||||
maxExtent.width = 1 << 16;
|
||||
maxExtent.height = 1 << 16;
|
||||
maxExtent.depth = 1;
|
||||
maxMipLevels = 15; /* log2(maxWidth) + 1 */
|
||||
maxArraySize = 2048;
|
||||
maxMipLevels = 17; /* log2(maxWidth) + 1 */
|
||||
maxArraySize = 1 << 16;
|
||||
break;
|
||||
case VK_IMAGE_TYPE_3D:
|
||||
maxExtent.width = 2048;
|
||||
maxExtent.height = 2048;
|
||||
maxExtent.depth = 2048;
|
||||
maxMipLevels = 12; /* log2(maxWidth) + 1 */
|
||||
maxExtent.width = 1 << 16;
|
||||
maxExtent.height = 1 << 16;
|
||||
maxExtent.depth = 1 << 16;
|
||||
maxMipLevels = 17; /* log2(maxWidth) + 1 */
|
||||
maxArraySize = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user