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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user