P4 to Git Change 1508149 by gandryey@gera-w8 on 2018/01/25 17:02:46
SWDEV-143822 - [CQE OCL][Vega10][OCLtst][DTB-Blocker][QR] 8 out of 50 failures are observed with OCLPerf 32bit test; due to Faulty CL# 1502648 - Free resource cache if PAL failed memory allocation Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#47 edit
This commit is contained in:
@@ -41,6 +41,8 @@ GpuMemoryReference* GpuMemoryReference::Create(const Device& dev,
|
||||
result = dev.iDev()->CreateGpuMemory(createInfo, &memRef[1], &memRef->gpuMem_);
|
||||
if (result != Pal::Result::Success) {
|
||||
memRef->release();
|
||||
// Free cache if PAL failed allocation
|
||||
dev.resourceCache().free();
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user