Skip to content

Commit bef3fea

Browse files
test modification
Signed-off-by: Zhang, Winston <[email protected]>
1 parent de50dbf commit bef3fea

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sycl/test-e2e/bindless_images/dx11_interop/read_write_unsampled.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
213213
// E.g. LevelZero does not support `unorm` channel types.
214214
if (!bindless_helpers::memoryAllocationSupported(
215215
syclImageDesc, syclexp::image_memory_handle_type::opaque_handle,
216-
syclQueue)) {
216+
syclQueue) || (channelType == sycl::image_channel_type::unorm_int8 &&
217+
syclQueue.get_device().get_backend() == sycl::backend::ext_oneapi_level_zero)) {
217218
// We cannot allocate the image memory, skip the test.
218219
#ifdef VERBOSE_PRINT
219220
std::cout << "Memory allocation unsupported. Skipping test.\n";

sycl/test-e2e/bindless_images/dx12_interop/read_write_unsampled.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,13 @@ static bool
523523
runTest(DX12SYCLDevice &device, sycl::image_channel_type channelType,
524524
sycl::range<NDims> globalSize, sycl::range<NDims> localSize) {
525525

526+
// Skip unorm_int8 tests for Level Zero backend
527+
if (channelType == sycl::image_channel_type::unorm_int8 &&
528+
device.getSyclQueue().get_device().get_backend() == sycl::backend::ext_oneapi_level_zero) {
529+
std::cout << "Skipping unorm_int8 test for Level Zero backend.\n";
530+
return true;
531+
}
532+
526533
syclexp::image_descriptor syclImageDesc{globalSize, NChannels, channelType};
527534

528535
// Verify ability to allocate the above image descriptor.

0 commit comments

Comments
 (0)