1
0
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:
Philip Rebohle 2019-11-14 14:29:47 +01:00
parent 420d95e396
commit 3457e312b0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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);