diff --git a/projects/clr/rocclr/runtime/device/device.cpp b/projects/clr/rocclr/runtime/device/device.cpp index d880f07b17..a40cd8c94d 100644 --- a/projects/clr/rocclr/runtime/device/device.cpp +++ b/projects/clr/rocclr/runtime/device/device.cpp @@ -399,21 +399,6 @@ char* Device::getExtensionString() { return result; } -void* Device::allocMapTarget(amd::Memory& mem, const amd::Coord3D& origin, - const amd::Coord3D& region, uint mapFlags, size_t* rowPitch, - size_t* slicePitch) { - // Translate memory references - device::Memory* devMem = mem.getDeviceMemory(*this); - if (devMem == NULL) { - LogError("allocMapTarget failed. Can't allocate video memory"); - return NULL; - } - - // Pass request over to memory - return devMem->allocMapTarget(origin, region, mapFlags, rowPitch, slicePitch); -} - - #if defined(WITH_LIGHTNING_COMPILER) CacheCompilation::CacheCompilation(std::string targetStr, std::string postfix, bool enableCache, bool resetCache) diff --git a/projects/clr/rocclr/runtime/device/device.hpp b/projects/clr/rocclr/runtime/device/device.hpp index 757ade8224..3c1c8813b4 100644 --- a/projects/clr/rocclr/runtime/device/device.hpp +++ b/projects/clr/rocclr/runtime/device/device.hpp @@ -1513,16 +1513,6 @@ class Device : public RuntimeObject { //! resolves GL depth/msaa buffer virtual bool resolveGLMemory(device::Memory*) const { return true; } - //! Gets a pointer to a region of host-visible memory for use as the target - //! of an indirect map for a given memory object - virtual void* allocMapTarget(amd::Memory& mem, //!< Abstraction layer memory object - const amd::Coord3D& origin, //!< The map location in memory - const amd::Coord3D& region, //!< The map region in memory - uint mapFlags, //!< Map flags - size_t* rowPitch = NULL, //!< Row pitch for the mapped memory - size_t* slicePitch = NULL //!< Slice for the mapped memory - ); - //! Gets free memory on a GPU device virtual bool globalFreeMemory(size_t* freeMemory //!< Free memory information on a GPU device ) const = 0;