1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[dxvk] Don't pad dedicated image allocations

Fixes validation errors on Nvidia.
This commit is contained in:
Philip Rebohle 2020-04-19 17:18:24 +02:00
parent 409eac9d20
commit b0503b54ce
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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());
}