Skip to content

Commit 8b06c40

Browse files
No support for unnormalized channel types on Windows
Signed-off-by: Zhang, Winston <[email protected]>
1 parent 857362d commit 8b06c40

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

unified-runtime/source/adapters/level_zero/image_common.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,17 +1014,17 @@ bool verifyCommonImagePropertiesSupport(
10141014
}
10151015
}
10161016

1017-
#if defined(_WIN32)
1018-
// Verify unnormalized channel type support.
1019-
// LevelZero currently doesn't support unnormalized channel types on Windows.
1020-
switch (pImageFormat->channelType) {
1021-
default:
1022-
break;
1023-
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT8:
1024-
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT16:
1025-
return false;
1026-
}
1027-
#endif
1017+
#if defined(_WIN32)
1018+
// Verify unnormalized channel type support.
1019+
// LevelZero currently doesn't support unnormalized channel types on Windows.
1020+
switch (pImageFormat->channelType) {
1021+
default:
1022+
break;
1023+
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT8:
1024+
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT16:
1025+
return false;
1026+
}
1027+
#endif
10281028

10291029
return supported;
10301030
}

0 commit comments

Comments
 (0)