From b0503b54ce9f3c8afc65bcc93e9fc80c697164eb Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sun, 19 Apr 2020 17:18:24 +0200 Subject: [PATCH] [dxvk] Don't pad dedicated image allocations Fixes validation errors on Nvidia. --- src/dxvk/dxvk_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_image.cpp b/src/dxvk/dxvk_image.cpp index 1ff763276..353320886 100644 --- a/src/dxvk/dxvk_image.cpp +++ b/src/dxvk/dxvk_image.cpp @@ -84,7 +84,7 @@ namespace dxvk { m_vkd->vkGetImageMemoryRequirements2( m_vkd->device(), &memReqInfo, &memReq); - if (info.tiling != VK_IMAGE_TILING_LINEAR) { + if (info.tiling != VK_IMAGE_TILING_LINEAR && !dedicatedRequirements.prefersDedicatedAllocation) { memReq.memoryRequirements.size = align(memReq.memoryRequirements.size, memAlloc.bufferImageGranularity()); memReq.memoryRequirements.alignment = align(memReq.memoryRequirements.alignment , memAlloc.bufferImageGranularity()); }