Support creating textures from user ptr with offset

Change-Id: Ied0af9a842fc6ef067e068a9d89dde63ff5dfce1
This commit is contained in:
Vlad Sytchenko
2020-05-26 14:26:19 -04:00
parent 8db45328d9
commit ba2d3fbbb3
3 changed files with 31 additions and 9 deletions
+1
View File
@@ -236,6 +236,7 @@ extern hipError_t ihipDeviceGetCount(int* count);
extern int ihipGetDevice();
extern hipError_t ihipMalloc(void** ptr, size_t sizeBytes, unsigned int flags);
extern amd::Memory* getMemoryObject(const void* ptr, size_t& offset);
extern amd::Memory* getMemoryObjectWithOffset(const void* ptr, const size_t size);
extern bool CL_CALLBACK getSvarInfo(cl_program program, std::string var_name, void** var_addr,
size_t* var_size);