mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58: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:
parent
8c0e797f37
commit
d4db877cdc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue