P4 to Git Change 1969954 by gandryey@gera-win10 on 2019/07/18 14:55:51

SWDEV-196199 - [Navi10] Corruption is observed when running Premier Pro Benchmarks using Adobe Premier Pro 2019
	- In addition to CL#1968527.  Add an extra transfer in the case the app reads image without kernel execution

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#139 edit


[ROCm/clr commit: b9897c0ba9]
This commit is contained in:
foreman
2019-07-18 14:57:53 -04:00
szülő a4bafe4b9a
commit d893fa6730
@@ -1108,8 +1108,17 @@ void VirtualGPU::submitReadMemory(amd::ReadMemoryCommand& vcmd) {
if (memory->memoryType() == Resource::ImageBuffer) {
Image* imageBuffer = static_cast<Image*>(memory);
// Check if synchronization has to be performed
if (imageBuffer->CopyImageBuffer() != nullptr) {
if (nullptr != imageBuffer->CopyImageBuffer()) {
memory = imageBuffer->CopyImageBuffer();
if (nullptr == imageBuffer->owner()->getLastWriter()) {
Memory* buffer = dev().getGpuMemory(imageBuffer->owner()->parent());
amd::Image* image = imageBuffer->owner()->asImage();
amd::Coord3D offs(0);
// Copy memory from the original image buffer into the backing store image
result = blitMgr().copyBufferToImage(*buffer, *imageBuffer->CopyImageBuffer(),
offs, offs, image->getRegion(), true,
image->getRowPitch(), image->getSlicePitch());
}
}
}
if (hostMemory != nullptr) {