mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Don't pad dedicated image allocations
Fixes validation errors on Nvidia.
This commit is contained in:
parent
409eac9d20
commit
b0503b54ce
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user