Skip to content

Commit ee703c8

Browse files
authored
[SYCL][Bindless] Fix dx12 interop samples for new external type names (#14872)
- fix for #14444 Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 3c0532d commit ee703c8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ void DX12InteropTest::importDX12SharedMemoryHandle(size_t allocationSize) {
108108
syclexp::external_mem_handle_type::win32_nt_dx12_resource,
109109
allocationSize};
110110

111-
m_syclInteropMemHandle =
111+
m_syclExternalMemHandle =
112112
syclexp::import_external_memory(extMemDesc, m_syclQueue);
113113

114114
m_syclImageMemHandle = syclexp::map_external_image_memory(
115-
m_syclInteropMemHandle, m_syclImageDesc, m_syclQueue);
115+
m_syclExternalMemHandle, m_syclImageDesc, m_syclQueue);
116116

117117
m_syclImageHandle =
118118
syclexp::create_image(m_syclImageMemHandle, m_syclImageDesc, m_syclQueue);
@@ -123,15 +123,15 @@ void DX12InteropTest::importDX12SharedSemaphoreHandle() {
123123
extSemDesc{m_sharedSemaphoreHandle,
124124
syclexp::external_semaphore_handle_type::win32_nt_dx12_fence};
125125

126-
m_syclInteropSemaphoreHandle =
126+
m_syclExternalSemaphoreHandle =
127127
syclexp::import_external_semaphore(extSemDesc, m_syclQueue);
128128
}
129129

130130
void DX12InteropTest::callSYCLKernel() {
131131
#ifdef TEST_SEMAPHORE_IMPORT
132132
// Wait for imported semaphore. This semaphore was signalled at the
133133
// end of `populateDX12Texture`.
134-
m_syclQueue.ext_oneapi_wait_external_semaphore(m_syclInteropSemaphoreHandle,
134+
m_syclQueue.ext_oneapi_wait_external_semaphore(m_syclExternalSemaphoreHandle,
135135
m_sharedFenceValue);
136136
#endif
137137

@@ -168,7 +168,7 @@ void DX12InteropTest::callSYCLKernel() {
168168

169169
// Signal imported semaphore.
170170
m_syclQueue.submit([&](sycl::handler &cgh) {
171-
cgh.ext_oneapi_signal_external_semaphore(m_syclInteropSemaphoreHandle,
171+
cgh.ext_oneapi_signal_external_semaphore(m_syclExternalSemaphoreHandle,
172172
m_sharedFenceValue);
173173
});
174174

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class DX12InteropTest {
8787
sycl::queue m_syclQueue;
8888
sycl::device m_syclDevice;
8989
syclexp::image_descriptor m_syclImageDesc;
90-
syclexp::interop_mem_handle m_syclInteropMemHandle;
91-
syclexp::interop_semaphore_handle m_syclInteropSemaphoreHandle;
90+
syclexp::external_mem m_syclExternalMemHandle;
91+
syclexp::external_semaphore m_syclExternalSemaphoreHandle;
9292
syclexp::image_mem_handle m_syclImageMemHandle;
9393
syclexp::unsampled_image_handle m_syclImageHandle;
9494
};

0 commit comments

Comments
 (0)