SWDEV-272268, SWDEV-268186 - OCL change for Rebar optimization:fix regressions in OCLMemInfo and Conformance basic test

Change-Id: I3e709942b5f43ba52a4cb0824a2e6b3202d4b405
This commit is contained in:
Julia Jiang
2021-04-05 15:11:59 -04:00
committed by Julia Jiang
vanhempi 2d41031aec
commit f22ceb0fd8
2 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
+2
Näytä tiedosto
@@ -1721,6 +1721,8 @@ void VirtualGPU::submitUnmapMemory(amd::UnmapMemoryCommand& vcmd) {
// data check was added for persistent memory that failed to get aperture
// and therefore are treated like a remote resource
else if (memory->isPersistentDirectMap() && (memory->data() != nullptr)) {
// Map/unmap must be serialized
amd::ScopedLock lock(owner->lockMemoryOps());
memory->unmap(this);
} else if (memory->mapMemory() != nullptr) {
if (writeMapInfo->isUnmapWrite()) {