SWDEV-497619 - Ensure suballocSize is integer multiple of 4096
Change-Id: Iefc452d73566f58cfb63391a68c836f30d77dd6c
[ROCm/clr commit: b02b1858c0]
这个提交包含在:
1 父节点
4dd97ee92c
当前提交
021ca96766
1 个文件已更改
+3
-4
@@ -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;
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户