Skip to content

Commit c6cb192

Browse files
committed
format
1 parent 64a14c8 commit c6cb192

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

source/adapters/level_zero/image.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,10 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
354354
ZeImageDesc.type = ZeImageType;
355355
ZeImageDesc.format = ZeFormatDesc;
356356
ZeImageDesc.width = ur_cast<uint64_t>(ImageDesc->width);
357-
ZeImageDesc.height = std::max(ur_cast<uint64_t>(ImageDesc->height), (uint64_t)1);
358-
ZeImageDesc.depth = std::max(ur_cast<uint64_t>(ImageDesc->depth), (uint64_t)1);
357+
ZeImageDesc.height =
358+
std::max(ur_cast<uint64_t>(ImageDesc->height), (uint64_t)1);
359+
ZeImageDesc.depth =
360+
std::max(ur_cast<uint64_t>(ImageDesc->depth), (uint64_t)1);
359361
ZeImageDesc.arraylevels = ur_cast<uint32_t>(ImageDesc->arraySize);
360362
ZeImageDesc.miplevels = ImageDesc->numMipLevel;
361363

source/adapters/level_zero/memory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,8 +1559,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreateWithNativeHandle(
15591559
return Res;
15601560
}
15611561
#else
1562-
std::ignore = ImageFormat;
1563-
std::ignore = ImageDesc;
1562+
std::ignore = ImageFormat;
1563+
std::ignore = ImageDesc;
15641564
#endif // !NDEBUG
15651565

15661566
UR_CALL(createUrMemFromZeImage(

0 commit comments

Comments
 (0)