P4 to Git Change 1567203 by skudchad@skudchad_test2_win_opencl on 2018/06/12 12:01:43

SWDEV-145570 - [HIP] -  Since getMemoryObject is now used in hip_texture it shouldnt be inline

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#32 edit


[ROCm/clr commit: 73dcd702e1]
This commit is contained in:
foreman
2018-06-12 12:11:19 -04:00
parent 73850c27d3
commit b1b51ba1e7
+1 -1
View File
@@ -36,7 +36,7 @@ extern void getDrvChannelOrderAndType(const enum hipArray_Format Format,
cl_channel_order* channelOrder,
cl_channel_type* channelType);
inline amd::Memory* getMemoryObject(const void* ptr, size_t& offset) {
amd::Memory* getMemoryObject(const void* ptr, size_t& offset) {
amd::Memory *memObj = amd::MemObjMap::FindMemObj(ptr);
if (memObj != nullptr) {
offset = reinterpret_cast<size_t>(ptr) - reinterpret_cast<size_t>(memObj->getSvmPtr());