P4 to Git Change 1977252 by vsytchen@vsytchen-remote-ocl-win10 on 2019/08/01 16:47:20

SWDEV-197026 - “GpuToGpuCL_VS2015” test terminates upon launching

	1. Since amd::buffer inherits from amd::memory, make sure that the methods it overwrites have the same signature as it's parent's.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/17769/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.hpp#111 edit
이 커밋은 다음에 포함됨:
foreman
2019-08-01 16:50:58 -04:00
부모 950dccb283
커밋 fe6915a1bb
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
+2 -2
파일 보기
@@ -478,7 +478,7 @@ void Buffer::initDeviceMemory() {
memset(deviceMemories_, 0, NumDevicesWithP2P() * sizeof(DeviceMemory));
}
bool Buffer::create(void* initFrom, bool sysMemAlloc, bool skipAlloc) {
bool Buffer::create(void* initFrom, bool sysMemAlloc, bool skipAlloc, bool forceAlloc) {
if ((getMemFlags() & CL_MEM_EXTERNAL_PHYSICAL_AMD) && (initFrom != NULL)) {
busAddress_ = *(reinterpret_cast<cl_bus_address_amd*>(initFrom));
initFrom = NULL;
@@ -486,7 +486,7 @@ bool Buffer::create(void* initFrom, bool sysMemAlloc, bool skipAlloc) {
busAddress_.surface_bus_address = 0;
busAddress_.marker_bus_address = 0;
}
return Memory::create(initFrom, sysMemAlloc, skipAlloc);
return Memory::create(initFrom, sysMemAlloc, skipAlloc, forceAlloc);
}
bool Buffer::isEntirelyCovered(const Coord3D& origin, const Coord3D& region) const {