SWDEV-497619 - Ensure suballocSize is integer multiple of 4096
Change-Id: Iefc452d73566f58cfb63391a68c836f30d77dd6c
This commit is contained in:
کامیت شده توسط
German Andryeyev
والد
5da8ce45ab
کامیت
b02b1858c0
@@ -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;
|
||||
|
||||
|
||||
مرجع در شماره جدید
Block a user