mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 22:54:16 +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))
|
&& m_info.size > (devInfo.limits.optimalBufferCopyOffsetAlignment / 2))
|
||||||
result = std::max(result, devInfo.limits.optimalBufferCopyOffsetAlignment);
|
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) {
|
if (m_memFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) {
|
||||||
result = std::max(result, devInfo.limits.nonCoherentAtomSize);
|
result = std::max(result, devInfo.limits.nonCoherentAtomSize);
|
||||||
result = std::max(result, VkDeviceSize(64));
|
result = std::max(result, VkDeviceSize(64));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user