P4 to Git Change 1576209 by vsytchen@vsytchen-win10 on 2018/07/04 15:37:58
SWDEV-79445 - OCL generic changes and code clean-up
1. Purge redundant AllocMapTarget function
ReviewBoardURL = http://ocltc.amd.com/reviews/r/15346/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#84 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#223 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#309 edit
[ROCm/clr commit: 6e589b7de6]
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user