@@ -270,7 +270,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
270270 ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32;
271271 break ;
272272 default :
273- urPrint (" urMemImageCreate : unexpected data type Size \n " );
273+ urPrint (" ur2zeImageDesc : unexpected data type size \n " );
274274 return UR_RESULT_ERROR_INVALID_VALUE;
275275 }
276276 break ;
@@ -289,25 +289,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
289289 ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32_32;
290290 break ;
291291 default :
292- urPrint (" urMemImageCreate: unexpected data type Size\n " );
293- return UR_RESULT_ERROR_INVALID_VALUE;
294- }
295- break ;
296- }
297- case UR_IMAGE_CHANNEL_ORDER_RGB:
298- case UR_IMAGE_CHANNEL_ORDER_RGX: {
299- switch (ZeImageFormatTypeSize) {
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 ;
310- urPrint (" urMemImageCreate: unexpected data type Size\n " );
292+ urPrint (" ur2zeImageDesc: unexpected data type size\n " );
311293 return UR_RESULT_ERROR_INVALID_VALUE;
312294 }
313295 break ;
@@ -327,14 +309,14 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
327309 ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32_32_32_32;
328310 break ;
329311 default :
330- urPrint (" urMemImageCreate : unexpected data type Size \n " );
312+ urPrint (" ur2zeImageDesc : unexpected data type size \n " );
331313 return UR_RESULT_ERROR_INVALID_VALUE;
332314 }
333315 break ;
334316 }
335317 default :
336- urPrint (" format layout = %d\n " , ImageFormat->channelOrder );
337- die (" urMemImageCreate : unsupported image format layout \n " );
318+ urPrint (" format channel order = %d\n " , ImageFormat->channelOrder );
319+ die (" ur2zeImageDesc : unsupported image channel order \n " );
338320 break ;
339321 }
340322
@@ -362,7 +344,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
362344 ZeImageType = ZE_IMAGE_TYPE_2DARRAY;
363345 break ;
364346 default :
365- urPrint (" urMemImageCreate : unsupported image type\n " );
347+ urPrint (" ur2zeImageDesc : unsupported image type\n " );
366348 return UR_RESULT_ERROR_INVALID_VALUE;
367349 }
368350
0 commit comments