SWDEV-249516 - [Lnx][Navi][rocm]conformance image read write tests data error

Change-Id: Ie1c4fda953198b49ed66fea9da23e62c686d9cea
Tá an tiomantas seo le fáil i:
Alex Xie údaraithe agus AlexBin Xie tiomanta 2020-09-01 17:20:58 -04:00
1 tuismitheoir fb4904f6dc
tiomantas 7e8f7b5927
1 comhad athraithe
+6
+6
Féach ar an gComhad
@@ -522,6 +522,9 @@ bool DmaBlitManager::copyImageToBuffer(device::Memory& srcMemory, device::Memory
dstHost, rowPitch, slicePitch, &image_region);
result = (status == HSA_STATUS_SUCCESS) ? true : false;
// hsa_ext_image_export need a system scope fence
gpu().addSystemScope();
// Check if a HostBlit transfer is required
if (completeOperation_ && !result) {
result = HostBlitManager::copyImageToBuffer(srcMemory, dstMemory, srcOrigin, dstOrigin, size,
@@ -564,6 +567,9 @@ bool DmaBlitManager::copyBufferToImage(device::Memory& srcMemory, device::Memory
dstImage.getHsaImageObject(), &image_region);
result = (status == HSA_STATUS_SUCCESS) ? true : false;
// hsa_ext_image_import need a system scope fence
gpu().addSystemScope();
// Check if a HostBlit tran sfer is required
if (completeOperation_ && !result) {
result = HostBlitManager::copyBufferToImage(srcMemory, dstMemory, srcOrigin, dstOrigin, size,