nvk: Add bufferImageGranularity limit

This is the secret change everyone has been waiting for 🐸

But anyway, this change adds the bufferImageGranularity limit (which
is needed by both DXVK and osu!lazer; DXVK will be a corrupted mess
without it and osu!lazer simply throws an exception)

The values have been scraped from https://vulkan.gpuinfo.org BTW
(because of that I'm not sure if they're actually accurate)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Echo J 2023-03-30 22:34:18 +03:00 committed by Marge Bot
parent c4aba5b310
commit 35d85fca88

View file

@ -50,6 +50,7 @@ nvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
.maxImageDimensionCube = 0x8000,
.maxPushConstantsSize = NVK_MAX_PUSH_SIZE,
.maxMemoryAllocationCount = 1024,
.bufferImageGranularity = pdev->dev->chipset >= 0x120 ? 0x400 : 0x10000,
.maxFramebufferHeight = pdev->dev->chipset >= 0x130 ? 0x8000 : 0x4000,
.maxFramebufferWidth = pdev->dev->chipset >= 0x130 ? 0x8000 : 0x4000,
.maxFramebufferLayers = 2048,