@@ -270,7 +270,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
270
270
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32;
271
271
break ;
272
272
default :
273
- urPrint (" urMemImageCreate : unexpected data type Size \n " );
273
+ urPrint (" ur2zeImageDesc : unexpected data type size \n " );
274
274
return UR_RESULT_ERROR_INVALID_VALUE;
275
275
}
276
276
break ;
@@ -289,25 +289,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
289
289
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32_32;
290
290
break ;
291
291
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 " );
311
293
return UR_RESULT_ERROR_INVALID_VALUE;
312
294
}
313
295
break ;
@@ -327,14 +309,14 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
327
309
ZeImageFormatLayout = ZE_IMAGE_FORMAT_LAYOUT_32_32_32_32;
328
310
break ;
329
311
default :
330
- urPrint (" urMemImageCreate : unexpected data type Size \n " );
312
+ urPrint (" ur2zeImageDesc : unexpected data type size \n " );
331
313
return UR_RESULT_ERROR_INVALID_VALUE;
332
314
}
333
315
break ;
334
316
}
335
317
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 " );
338
320
break ;
339
321
}
340
322
@@ -362,7 +344,7 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat,
362
344
ZeImageType = ZE_IMAGE_TYPE_2DARRAY;
363
345
break ;
364
346
default :
365
- urPrint (" urMemImageCreate : unsupported image type\n " );
347
+ urPrint (" ur2zeImageDesc : unsupported image type\n " );
366
348
return UR_RESULT_ERROR_INVALID_VALUE;
367
349
}
368
350
0 commit comments