Skip to content

Commit a66165e

Browse files
test
Signed-off-by: Zhang, Winston <[email protected]>
1 parent 4ca8d91 commit a66165e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

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

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
// REQUIRES: aspect-ext_oneapi_external_memory_import
2-
// REQUIRES: windows
31

4-
// UNSUPPORTED: gpu-intel-gen12
5-
// UNSUPPORTED-INTENDED: Unknown issue with integrated GPU failing
6-
// when importing memory
72

83
// RUN: %{build} %link-directx -o %t.out
94
// RUN: %{run-unfiltered-devices} env NEOReadDebugKeys=1 UseBindlessMode=1 UseExternalAllocatorForSshAndDsh=1 %t.out
@@ -248,25 +243,31 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
248243
// it is only applicable to 2D textures.
249244
texDesc.MiscFlags = D3D11_RESOURCE_MISC_SHARED_NTHANDLE |
250245
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX;
246+
printf("1\n");
251247
ThrowIfFailed(pDevice->CreateTexture2D(&texDesc, nullptr, &texture));
252248

253249
// Create the keyed mutex for synchronising the shared resource.
254250
ComPtr<IDXGIKeyedMutex> keyedMutex;
251+
printf("2\n");
255252
ThrowIfFailed(texture.As(&keyedMutex));
256253
d3d11ProgramState.key = 0;
257254

258255
// Create an NT handle to a shared resource referring to our texture.
259256
// Opening the shared resource gives access to it for use on the SYCL device.
260257
ComPtr<IDXGIResource1> sharedResource;
258+
printf("3\n");
261259
ThrowIfFailed(texture.As(&sharedResource));
262260
HANDLE sharedHandle = nullptr;
261+
printf("4\n");
263262
ThrowIfFailed(sharedResource->CreateSharedHandle(
264263
nullptr, DXGI_SHARED_RESOURCE_READ | DXGI_SHARED_RESOURCE_WRITE, nullptr,
265264
&sharedHandle));
266265

267266
// Obtain a pointer to the shared resource for use in subsequent operations.
268267
ComPtr<ID3D11Device1> device1;
268+
printf("5\n");
269269
ThrowIfFailed(pDevice->QueryInterface(IID_PPV_ARGS(&device1)));
270+
printf("6\n");
270271
ThrowIfFailed(device1->OpenSharedResource1(
271272
sharedHandle, IID_PPV_ARGS(sharedResource.GetAddressOf())));
272273

@@ -300,10 +301,12 @@ int runTest(D3D11ProgramState &d3d11ProgramState, sycl::queue syclQueue,
300301
// When IDXGIKeyedMutex importing into SYCL is implemented, we'll be able to
301302
// call it from the SYCL API. All it does is ensuring only one device has
302303
// exclusive access.
304+
printf("7\n");
303305
ThrowIfFailed(keyedMutex->AcquireSync(d3d11ProgramState.key++, INFINITE));
304306
callSyclKernel<NDims, DType, NChannels>(syclQueue, syclImageHandle,
305307
globalSize, localSize);
306308
// Back to the D3D11 process
309+
printf("8\n");
307310
ThrowIfFailed(keyedMutex->ReleaseSync(d3d11ProgramState.key));
308311

309312
// Read-back and verify

0 commit comments

Comments
 (0)