mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-29 17:52:18 +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:
parent
8c0e797f37
commit
d4db877cdc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user