1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00

[dxvk] Fixed staging buffer alignment

Four-byte alignment is required in order to avoid illegal
vkCmdCopyBufferToImage calls. We align staging buffer slices to
a full cache line in order to improve performance.
This commit is contained in:
Philip Rebohle 2018-01-01 23:32:08 +01:00
parent 8c0e797f37
commit d4db877cdc

View File

@ -35,7 +35,7 @@ namespace dxvk {
slice.offset = m_bufferOffset;
slice.mapPtr = m_buffer->mapPtr(m_bufferOffset);
m_bufferOffset += size;
m_bufferOffset = align(m_bufferOffset + size, 64);
return true;
}