mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-19 02:29:12 +00:00
Only apply NV BDA workaround on replay if it was applied on capture
* Applying it during capture ensures that we have enough room on replay to apply the same expansion.
This commit is contained in:
1 file changed
+1
-1
@@ -350,7 +350,7 @@ bool WrappedVulkan::Serialise_vkAllocateMemory(SerialiserType &ser, VkDevice dev
|
||||
}
|
||||
|
||||
// apply workaround for presumed windows bug
|
||||
if(GetDriverInfo().NVUnalignedBDAIssue())
|
||||
if(GetDriverInfo().NVUnalignedBDAIssue() && ser.VersionAtLeast(0x17))
|
||||
{
|
||||
// all memory allocations must be 64kB aligned. The rest of the workaround only applies during capture
|
||||
patched.allocationSize = AlignUp(patched.allocationSize, VkDeviceSize(64 * 1024));
|
||||
|
||||
Reference in new issue
Block a user