P4 to Git Change 1973670 by gandryey@gera-win10 on 2019/07/25 11:27:11

SWDEV-79445 - OCL generic changes and code clean-up
	- Don't create an extra queue for DMA transfers when SDMA is disabled. That should allow to avoid useless sync operations.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palconstbuf.cpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palgpuopen.cpp#15 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#75 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paltimestamp.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paltimestamp.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#143 edit


[ROCm/clr commit: b9b798616f]
Этот коммит содержится в:
foreman committed 2019-07-25 11:38:30 -04:00
1 родитель 81b9a53440
Коммит 05efcb5556
6 files changed
+34 -24

No files matched your search

+4 -2
Просмотреть файл
@@ -69,8 +69,10 @@ address ManagedBuffer::reserve(uint32_t size, uint64_t* gpu_address) {
// Get the next buffer in the list
++activeBuffer_;
activeBuffer_ %= MaxNumberOfBuffers;
// Make sure the buffer isn't busy
gpu().waitForEvent(&pool_[activeBuffer_].events[SdmaEngine]);
if (!gpu().dev().settings().disableSdma_) {
// Make sure the buffer isn't busy
gpu().waitForEvent(&pool_[activeBuffer_].events[SdmaEngine]);
}
gpu().waitForEvent(&pool_[activeBuffer_].events[MainEngine]);
wrtAddress_ = pool_[activeBuffer_].buf->data();
wrtOffset_ = 0;