SWDEV-308726 - OCL WIN - Conformance SVM Test failing

SVM mapping should not use direct mapping in Windows PAL

Change-Id: I005115bdce6ef99f471bb08fa8d042fa644587a6
このコミットが含まれているのは:
Alex Xie
2021-10-27 00:35:09 -04:00
committed by AlexBin Xie
コミット fa73e0cfcc
+2 -2
ファイルの表示
@@ -786,8 +786,8 @@ void* Memory::allocMapTarget(const amd::Coord3D& origin, const amd::Coord3D& reg
mapAddress = reinterpret_cast<address>(owner()->getHostMem());
}
// If resource is a persistent allocation, we can use it directly
else if ((isPersistentDirectMap(mapFlags & CL_MAP_WRITE) && (getMapCount() == 0)) ||
isPersistentMapped()) {
else if (((isPersistentDirectMap(mapFlags & CL_MAP_WRITE) && (getMapCount() == 0)) ||
isPersistentMapped()) && (owner()->getSvmPtr() == nullptr)) {
if (nullptr == map(nullptr)) {
LogError("Could not map target persistent resource");
decIndMapCount();