SWDEV-240165 - Move all amd::MemObjMap_ reference to ROCclr and only allow base ptr to get ipc handle.

Change-Id: I9de10a0c4ba4dee3b3c8b972966840ab807001d8
This commit is contained in:
kjayapra-amd
2020-06-23 09:25:27 -04:00
committed by Karthik Jayaprakash
parent 1b69c85913
commit 16e6b65b5c
6 changed files with 72 additions and 64 deletions
+9 -9
View File
@@ -789,11 +789,6 @@ class Memory : public amd::HeapObject {
//! Returns CPU pointer to HW state
virtual const address cpuSrd() const { return nullptr; }
virtual bool IpcCreate(size_t offset, size_t* mem_size, void* handle) const {
ShouldNotReachHere();
return false;
}
protected:
enum Flags {
HostMemoryDirectAccess = 0x00000001, //!< GPU has direct access to the host memory
@@ -1447,13 +1442,18 @@ class Device : public RuntimeObject {
//! Checks if OCL runtime can use code object manager for compilation
bool ValidateComgr();
virtual amd::Memory* IpcAttach(const void* handle, size_t mem_size, unsigned int flags,
void** dev_ptr) const {
virtual bool IpcCreate(void* dev_ptr, size_t* mem_size, void* handle) {
ShouldNotReachHere();
return nullptr;
return false;
}
virtual bool IpcDetach(amd::Memory& memory) const {
virtual bool IpcAttach(const void* handle, size_t mem_size,
unsigned int flags, void** dev_ptr) const {
ShouldNotReachHere();
return false;
}
virtual bool IpcDetach(void* dev_ptr) const {
ShouldNotReachHere();
return false;
}