Skip to content

Commit 857362d

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,18 @@ 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
1028+
10171029
return supported;
10181030
}
10191031

0 commit comments

Comments
 (0)