SWDEV-301667 - Fix build warnings
Change-Id: Ice23b3d1a19a7958ca5c3caff34db2934b361a98
This commit is contained in:
1 parent
545cfaf428
commit
086aee0fcb
8 files changed
+76
-54
No files matched your search
@@ -64,8 +64,9 @@ hipError_t ihipCreateSurfaceObject(hipSurfaceObject_t* pSurfObject,
|
||||
image = as_amd(memObj)->asImage();
|
||||
|
||||
void* surfObjectBuffer = nullptr;
|
||||
ihipMalloc(&surfObjectBuffer, sizeof(__hip_surface), CL_MEM_SVM_FINE_GRAIN_BUFFER);
|
||||
if (surfObjectBuffer == nullptr) {
|
||||
hipError_t err = ihipMalloc(&surfObjectBuffer, sizeof(__hip_surface),
|
||||
CL_MEM_SVM_FINE_GRAIN_BUFFER);
|
||||
if (surfObjectBuffer == nullptr || err != hipSuccess) {
|
||||
return hipErrorOutOfMemory;
|
||||
}
|
||||
*pSurfObject = new (surfObjectBuffer) __hip_surface{image, *pResDesc};
|
||||
|
||||
Reference in new issue
Block a user