Skip to content

Commit

Permalink
Add multi-queue wait-before-signal test
Browse files Browse the repository at this point in the history
This tests submitting commands, signals, and waits to graphics and
multiple compute queues where the entire frame's submission for each
queue depends on the other queues and the submission order is not the
order in which the GPU (and replay) need to be processed.  This is to
ensure any capture or replaying deserialises adequately.
  • Loading branch information
GertyP authored and baldurk committed Nov 3, 2023
1 parent fb02202 commit 7619414
Show file tree
Hide file tree
Showing 4 changed files with 473 additions and 5 deletions.
12 changes: 7 additions & 5 deletions util/test/demos/d3d12/d3d12_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ D3D12BufferCreator &D3D12BufferCreator::InitialState(D3D12_RESOURCE_STATES initi
D3D12BufferCreator::operator ID3D12ResourcePtr() const
{
ID3D12ResourcePtr buf;
CHECK_HR(m_Dev->CreateCommittedResource(&m_HeapDesc, D3D12_HEAP_FLAG_NONE, &m_BufDesc, m_InitialState,
NULL, __uuidof(ID3D12Resource), (void **)&buf));
CHECK_HR(m_Dev->CreateCommittedResource(&m_HeapDesc, D3D12_HEAP_FLAG_NONE, &m_BufDesc,
m_InitialState, NULL, __uuidof(ID3D12Resource),
(void **)&buf));

if(m_Initdata && m_Test)
m_Test->SetBufferData(buf, D3D12_RESOURCE_STATE_COMMON, (const byte *)m_Initdata,
Expand Down Expand Up @@ -419,9 +420,10 @@ D3D12TextureCreator &D3D12TextureCreator::ClearVal(const D3D12_CLEAR_VALUE &clea
D3D12TextureCreator::operator ID3D12ResourcePtr() const
{
ID3D12ResourcePtr tex;
CHECK_HR(m_Dev->CreateCommittedResource(&m_HeapDesc, m_HeapFlags, &m_TexDesc, m_InitialState,
(m_ClearVal.Format == DXGI_FORMAT_UNKNOWN) ? NULL : &m_ClearVal,
__uuidof(ID3D12Resource), (void **)&tex));
CHECK_HR(m_Dev->CreateCommittedResource(
&m_HeapDesc, m_HeapFlags, &m_TexDesc, m_InitialState,
(m_ClearVal.Format == DXGI_FORMAT_UNKNOWN) ? NULL : &m_ClearVal, __uuidof(ID3D12Resource),
(void **)&tex));
return tex;
}

Expand Down
Loading

0 comments on commit 7619414

Please sign in to comment.