P4 to Git Change 1534589 by vsytchen@vsytchen-ocl-win10 on 2018/03/29 14:54:53

SWDEV-79445 - OCL generic changes and code clean-up

	Return nullptr if creating a suballocation fails

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#59 edit
Этот коммит содержится в:
foreman
2018-03-29 15:03:19 -04:00
родитель 641fd3c85c
Коммит 63ac798b50
+2
Просмотреть файл
@@ -1895,6 +1895,8 @@ GpuMemoryReference* MemorySubAllocator::Allocate(Pal::gpusize size, Pal::gpusize
// If we have found a valid chunk, then suballocate memory
if (Pal::Result::Success == allocator->Allocate(size, alignment, offset)) {
return mem_ref;
} else {
mem_ref = nullptr;
}
}
if ((mem_ref == nullptr) && !CreateChunk(reserved_va)) {