P4 to Git Change 1570186 by gandryey@gera-w8 on 2018/06/19 13:20:24

SWDEV-150518 - [IQE][DG2018][I+eA][SSG] System hangs when trying to preview cache video to AMD SSG
	- Disable optimization for "disabled deferred allocations" in SSG path. There is an extra logic to support double copy transfers with allocations in the invisible heap. It's not an official requirement for the SSG extension and hasn't been tested, but Adobe utilizes that path.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#89 edit


[ROCm/clr commit: f67ed6630e]
Этот коммит содержится в:
foreman
2018-06-19 13:28:44 -04:00
родитель c51a2daa95
Коммит 2d187d848a
-10
Просмотреть файл
@@ -502,11 +502,6 @@ void TransferBufferFileCommand::submit(device::VirtualDevice& device) {
}
bool TransferBufferFileCommand::validateMemory() {
// Runtime disables deferred memory allocation for single device.
// Hence ignore memory validations
if (queue()->context().devices().size() == 1) {
return true;
}
// Check if the destination buffer has direct host access
if (!(memory_->getMemFlags() &
(CL_MEM_USE_HOST_PTR | CL_MEM_ALLOC_HOST_PTR | CL_MEM_USE_PERSISTENT_MEM_AMD))) {
@@ -534,11 +529,6 @@ bool TransferBufferFileCommand::validateMemory() {
}
bool CopyMemoryP2PCommand::validateMemory() {
// Runtime disables deferred memory allocation for single device.
// Hence ignore memory validations
if (queue()->context().devices().size() == 1) {
return true;
}
const std::vector<Device*>& devices = memory1_->getContext().devices();
if (devices.size() != 1) {
LogError("Can't allocate memory object for P2P extension");