Skip to content

Commit 3539712

Browse files
Fixed use of Handle
1 parent 0f08f9d commit 3539712

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

include/dxc/Support/RAIIClasses.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class HhEvent {
2626
}
2727
return S_OK;
2828
}
29-
HANDLE Get() { return m_handle; }
3029
void SetEvent() { ::SetEvent(m_handle); }
3130
void ResetEvent() { ::ResetEvent(m_handle); }
3231
~HhEvent() {

tools/clang/unittests/HLSLExec/ShaderOpTest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void ShaderOpTest::CopyBackResources() {
290290
}
291291
pList->Close();
292292
ExecuteCommandList(ResCommandList.Queue, pList);
293-
WaitForSignal(ResCommandList.Queue, m_pFence, m_hFence.Get(), m_FenceValue++);
293+
WaitForSignal(ResCommandList.Queue, m_pFence, m_hFence.m_handle, m_FenceValue++);
294294
}
295295

296296
void ShaderOpTest::CreateCommandList() {
@@ -746,7 +746,7 @@ void ShaderOpTest::CreateResources() {
746746

747747
CHECK_HR(pList->Close());
748748
ExecuteCommandList(ResCommandList.Queue, pList);
749-
WaitForSignal(ResCommandList.Queue, m_pFence, m_hFence.Get(), m_FenceValue++);
749+
WaitForSignal(ResCommandList.Queue, m_pFence, m_hFence.m_handle, m_FenceValue++);
750750
}
751751

752752
void ShaderOpTest::CreateRootSignature() {
@@ -1051,7 +1051,7 @@ void ShaderOpTest::RunCommandList() {
10511051
}
10521052
CHECK_HR(pList->Close());
10531053
ExecuteCommandList(m_CommandList.Queue, pList);
1054-
WaitForSignal(m_CommandList.Queue, m_pFence, m_hFence.Get(), m_FenceValue++);
1054+
WaitForSignal(m_CommandList.Queue, m_pFence, m_hFence.m_handle, m_FenceValue++);
10551055
}
10561056

10571057
void ShaderOpTest::RunShaderOp(ShaderOp *pShaderOp) {
@@ -1209,7 +1209,7 @@ void ShaderOpTest::PresentRenderTarget(ShaderOp *pShaderOp,
12091209
D3D12_RESOURCE_STATE_PRESENT);
12101210
pList->Close();
12111211
ExecuteCommandList(ResCommandList.Queue, pList);
1212-
WaitForSignal(ResCommandList.Queue, m_pFence, m_hFence.Get(), m_FenceValue++);
1212+
WaitForSignal(ResCommandList.Queue, m_pFence, m_hFence.m_handle, m_FenceValue++);
12131213
}
12141214

12151215
ShaderOp *ShaderOpSet::GetShaderOp(LPCSTR pName) {

0 commit comments

Comments
 (0)