P4 to Git Change 1540428 by gandryey@gera-lnx-rcf on 2018/04/12 11:38:42

SWDEV-86035 - Keep invisible memory for scratch buffer
	- Currently scratch memory isn't used for compute, but PAL will assert on Local type

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#91 edit


[ROCm/clr commit: f933209ee4]
此提交包含在:
foreman
2018-04-12 12:05:24 -04:00
父節點 478210cf20
當前提交 39eb0cf136
+1 -1
查看文件
@@ -770,7 +770,7 @@ bool VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs,
createInfo.allocInfo[Pal::EmbeddedDataAlloc].allocSize = 64 * Ki;
createInfo.allocInfo[Pal::EmbeddedDataAlloc].suballocSize = 64 * Ki;
createInfo.allocInfo[Pal::GpuScratchMemAlloc].allocHeap = Pal::GpuHeapLocal;
createInfo.allocInfo[Pal::GpuScratchMemAlloc].allocHeap = Pal::GpuHeapInvisible;
createInfo.allocInfo[Pal::GpuScratchMemAlloc].allocSize = 64 * Ki;
createInfo.allocInfo[Pal::GpuScratchMemAlloc].suballocSize = 64 * Ki;