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
This commit is contained in:
foreman
2015-01-15 18:27:43 -05:00
rodzic bc142e9ecb
commit 8aafdbd80d
+2 -2
Wyświetl plik
@@ -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_;
}