mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Always align index buffer slices to 256 Bytes
To be on the safe side.
This commit is contained in:
parent
420d95e396
commit
3457e312b0
@ -134,8 +134,8 @@ namespace dxvk {
|
||||
result = std::max(result, devInfo.limits.optimalBufferCopyOffsetAlignment);
|
||||
|
||||
// For some reason, Warhammer Chaosbane breaks otherwise
|
||||
if (m_info.usage & VK_BUFFER_USAGE_VERTEX_BUFFER_BIT)
|
||||
result = 256;
|
||||
if (m_info.usage & (VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT))
|
||||
result = std::max(result, VkDeviceSize(256));
|
||||
|
||||
if (m_memFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) {
|
||||
result = std::max(result, devInfo.limits.nonCoherentAtomSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user