Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
// E.g. LevelZero does not support `unorm` channel types.
if (!bindless_helpers::memoryAllocationSupported(
syclImageDesc, syclexp::image_memory_handle_type::opaque_handle,
syclQueue)) {
syclQueue) ||
(channelType == sycl::image_channel_type::unorm_int8 &&
syclQueue.get_device().get_backend() ==
sycl::backend::ext_oneapi_level_zero)) {
// We cannot allocate the image memory, skip the test.
#ifdef VERBOSE_PRINT
std::cout << "Memory allocation unsupported. Skipping test.\n";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,14 @@ static bool
runTest(DX12SYCLDevice &device, sycl::image_channel_type channelType,
sycl::range<NDims> globalSize, sycl::range<NDims> localSize) {

// Skip unorm_int8 tests for Level Zero backend
if (channelType == sycl::image_channel_type::unorm_int8 &&
device.getSyclQueue().get_device().get_backend() ==
sycl::backend::ext_oneapi_level_zero) {
std::cout << "Skipping unorm_int8 test for Level Zero backend.\n";
return true;
}

syclexp::image_descriptor syclImageDesc{globalSize, NChannels, channelType};

// Verify ability to allocate the above image descriptor.
Expand Down
10 changes: 0 additions & 10 deletions unified-runtime/source/adapters/level_zero/image_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1014,16 +1014,6 @@ bool verifyCommonImagePropertiesSupport(
}
}

// Verify unnormalized channel type support.
// LevelZero currently doesn't support unnormalized channel types.
switch (pImageFormat->channelType) {
default:
break;
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT8:
case UR_IMAGE_CHANNEL_TYPE_UNORM_INT16:
return false;
}

return supported;
}

Expand Down