SWDEV-497619 - Ensure suballocSize is integer multiple of 4096

Change-Id: Iefc452d73566f58cfb63391a68c836f30d77dd6c


[ROCm/clr commit: b02b1858c0]
This commit is contained in:
Pengda Xie
2025-03-06 17:03:26 -08:00
committed by German Andryeyev
parent 4dd97ee92c
commit 021ca96766
@@ -890,10 +890,9 @@ bool VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs,
createInfo.flags.autoMemoryReuse = false;
createInfo.allocInfo[Pal::CommandDataAlloc].allocHeap = Pal::GpuHeapGartUswc;
createInfo.allocInfo[Pal::CommandDataAlloc].suballocSize =
VirtualGPU::Queue::MaxCommands * (320 + ((profiling) ? 96 : 0));
if (dev().captureMgr() != nullptr) {
createInfo.allocInfo[Pal::CommandDataAlloc].suballocSize += 512;
}
VirtualGPU::Queue::MaxCommands * (320 +
((profiling) ? 96 : 0) +
((dev().captureMgr() != nullptr)? 512 : 0));
createInfo.allocInfo[Pal::CommandDataAlloc].allocSize =
dev().settings().maxCmdBuffers_ * createInfo.allocInfo[Pal::CommandDataAlloc].suballocSize;