From 35d85fca88b2b521d50b96ed6d697cda60b42993 Mon Sep 17 00:00:00 2001 From: Echo J Date: Thu, 30 Mar 2023 22:34:18 +0300 Subject: [PATCH] nvk: Add bufferImageGranularity limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: --- src/nouveau/vulkan/nvk_physical_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index ed95fc30ac0..21feaa1f5e0 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -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,