File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
924
924
case UR_DEVICE_INFO_BINDLESS_IMAGES_SHARED_USM_SUPPORT_EXP:
925
925
return ReturnValue (true );
926
926
case UR_DEVICE_INFO_BINDLESS_IMAGES_1D_USM_SUPPORT_EXP:
927
- return ReturnValue (true );
927
+ return ReturnValue (false );
928
928
case UR_DEVICE_INFO_BINDLESS_IMAGES_2D_USM_SUPPORT_EXP:
929
929
return ReturnValue (true );
930
930
case UR_DEVICE_INFO_IMAGE_PITCH_ALIGN_EXP:
Original file line number Diff line number Diff line change @@ -298,6 +298,15 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
298
298
case UR_IMAGE_CHANNEL_ORDER_RGX: {
299
299
switch (ZeImageFormatTypeSize) {
300
300
default :
301
+ case 8 :
302
+ ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_8_8_8;
303
+ break ;
304
+ case 16 :
305
+ ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_16_16_16;
306
+ break ;
307
+ case 32 :
308
+ ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32_32_32;
309
+ break ;
301
310
urPrint (" urMemImageCreate: unexpected data type Size\n " );
302
311
return UR_RESULT_ERROR_INVALID_VALUE;
303
312
}
@@ -363,8 +372,8 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
363
372
ZeImageDesc.type = ZeImageType;
364
373
ZeImageDesc.format = ZeFormatDesc;
365
374
ZeImageDesc.width = ur_cast<uint64_t >(ImageDesc->width );
366
- ZeImageDesc.height = std::max (ur_cast<uint64_t >(ImageDesc->height ), 1ul );
367
- ZeImageDesc.depth = std::max (ur_cast<uint64_t >(ImageDesc->depth ), 1ul );
375
+ ZeImageDesc.height = std::max (ur_cast<uint64_t >(ImageDesc->height ), ( uint64_t ) 1 );
376
+ ZeImageDesc.depth = std::max (ur_cast<uint64_t >(ImageDesc->depth ), ( uint64_t ) 1 );
368
377
ZeImageDesc.arraylevels = ur_cast<uint32_t >(ImageDesc->arraySize );
369
378
ZeImageDesc.miplevels = ImageDesc->numMipLevel ;
370
379
You can’t perform that action at this time.
0 commit comments