P4 to Git Change 1112144 by gandryey@gera-dev-w7 on 2015/01/15 17:50:43

ECR #304775 - Move GPU wait outside of the device lock operation for staging buffers
	- Wait can occur per queue independently

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#491 edit


[ROCm/clr commit: 8aafdbd80d]
Dieser Commit ist enthalten in:
foreman
2015-01-15 18:27:43 -05:00
Ursprung 79e00c28bd
Commit cd0cc0ec2b
@@ -357,11 +357,11 @@ Device::XferBuffers::acquire()
void
Device::XferBuffers::release(VirtualGPU& gpu, Resource& buffer)
{
// Lock the operations with the staged buffer list
amd::ScopedLock l(lock_);
// Make sure buffer isn't busy on the current VirtualGPU, because
// the next aquire can come from different queue
buffer.wait(gpu);
// Lock the operations with the staged buffer list
amd::ScopedLock l(lock_);
freeBuffers_.push_back(&buffer);
--acquiredCnt_;
}