P4 to Git Change 1553193 by gandryey@gera-lnx-rcf-lc on 2018/05/10 13:55:21

SWDEV-79445 - OCL generic changes and code clean-up
	- Following CL#1552596. Add a flag to skip memory allocation. ROCr backend requires access to the parent object in the blit manager, but it's not fully initialized and a view creation is required. However a view creation with not fully initialized object can cause a dead lock if device memory is allocated during the object create.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#132 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#104 edit
이 커밋은 다음에 포함됨:
foreman
2018-05-10 14:03:44 -04:00
부모 522de89190
커밋 e56e3ce677
3개의 변경된 파일과 9개의 추가작업 그리고 7개의 파일을 삭제
+1 -1
파일 보기
@@ -708,7 +708,7 @@ bool Buffer::create() {
// data transfer to the view of the buffer.
amd::Buffer* bufferView = new (owner()->getContext())
amd::Buffer(*owner(), 0, owner()->getOrigin(), owner()->getSize());
bufferView->create();
bufferView->create(nullptr, false, true);
roc::Buffer* devBufferView = new roc::Buffer(dev_, *bufferView);
devBufferView->deviceMemory_ = deviceMemory_;