mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Always align vertex buffer slices to 256 bytes
Works around an unknown geometry rendering isssue in Warhammer Chaosbane. Should probably be investigated at some point.
This commit is contained in:
parent
31baf3529a
commit
6948d18f5f
@ -133,6 +133,10 @@ namespace dxvk {
|
||||
&& m_info.size > (devInfo.limits.optimalBufferCopyOffsetAlignment / 2))
|
||||
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_memFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) {
|
||||
result = std::max(result, devInfo.limits.nonCoherentAtomSize);
|
||||
result = std::max(result, VkDeviceSize(64));
|
||||
|
Loading…
x
Reference in New Issue
Block a user