Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wenju-he committed Feb 29, 2024
1 parent 64a14c8 commit c6cb192
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions source/adapters/level_zero/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
ZeImageDesc.type = ZeImageType;
ZeImageDesc.format = ZeFormatDesc;
ZeImageDesc.width = ur_cast<uint64_t>(ImageDesc->width);
ZeImageDesc.height = std::max(ur_cast<uint64_t>(ImageDesc->height), (uint64_t)1);
ZeImageDesc.depth = std::max(ur_cast<uint64_t>(ImageDesc->depth), (uint64_t)1);
ZeImageDesc.height =
std::max(ur_cast<uint64_t>(ImageDesc->height), (uint64_t)1);
ZeImageDesc.depth =
std::max(ur_cast<uint64_t>(ImageDesc->depth), (uint64_t)1);
ZeImageDesc.arraylevels = ur_cast<uint32_t>(ImageDesc->arraySize);
ZeImageDesc.miplevels = ImageDesc->numMipLevel;

Expand Down
4 changes: 2 additions & 2 deletions source/adapters/level_zero/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1559,8 +1559,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreateWithNativeHandle(
return Res;
}
#else
std::ignore = ImageFormat;
std::ignore = ImageDesc;
std::ignore = ImageFormat;
std::ignore = ImageDesc;
#endif // !NDEBUG

UR_CALL(createUrMemFromZeImage(
Expand Down

0 comments on commit c6cb192

Please sign in to comment.