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/hip commit: 2568c8042f]
Tento commit je obsažen v:
foreman
2018-06-12 12:11:19 -04:00
rodič abd1681306
revize 4032d01baf
+1 -1
Zobrazit soubor
@@ -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());