Skip to content

Commit

Permalink
[L0][Bindless Image] Fix pixel size of half type
Browse files Browse the repository at this point in the history
This PR makes sampling_2D_half.cpp passing on DG2.
  • Loading branch information
wenju-he committed Mar 15, 2024
1 parent d99d5f7 commit 9a3db39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adapters/level_zero/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ uint32_t getPixelSizeBytes(const ur_image_format_t *Format) {
case UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT16:
case UR_IMAGE_CHANNEL_TYPE_UNORM_SHORT_565:
case UR_IMAGE_CHANNEL_TYPE_UNORM_SHORT_555:
case UR_IMAGE_CHANNEL_TYPE_HALF_FLOAT:
ChannelTypeSizeInBytes = 2;
break;
case UR_IMAGE_CHANNEL_TYPE_HALF_FLOAT:
case UR_IMAGE_CHANNEL_TYPE_INT_101010:
case UR_IMAGE_CHANNEL_TYPE_SIGNED_INT32:
case UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT32:
Expand Down

0 comments on commit 9a3db39

Please sign in to comment.