Reserve a little more space in initial contents for sparse table

* Even if not present we serialise a bool indicating that it's not present,
  which needs to be reserved.
This commit is contained in:
baldurk
2021-04-13 13:25:04 +01:00
parent cb2b321a09
commit 00f352caeb
@@ -407,6 +407,8 @@ uint64_t D3D12ResourceManager::GetSize_InitialState(ResourceId id, const D3D12In
uint64_t ret =
WriteSerialiser::GetChunkAlignment() + 16 + uint64_t(buf ? buf->GetDesc().Width : 0);
ret += 16;
if(data.sparseTable)
ret += 16 + data.sparseTable->GetSerialiseSize();