Skip to content

Commit

Permalink
Fix missing queue use in FlushLists call
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jan 8, 2025
1 parent e6b4de8 commit 898e4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions renderdoc/driver/d3d12/d3d12_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4777,14 +4777,14 @@ void WrappedID3D12Device::ExecuteLists(WrappedID3D12CommandQueue *queue, bool In
m_InternalCmds.pendingcmds.clear();
}

void WrappedID3D12Device::FlushLists(bool forceSync, ID3D12CommandQueue *queue)
void WrappedID3D12Device::FlushLists(bool forceSync)
{
if(HasFatalError())
return;

if(!m_InternalCmds.submittedcmds.empty() || forceSync)
{
QueueWaitForIdle(queue, m_WFIFence);
QueueWaitForIdle(m_Queue, m_WFIFence);

if(!m_InternalCmds.submittedcmds.empty())
m_InternalCmds.freecmds.append(m_InternalCmds.submittedcmds);
Expand Down
2 changes: 1 addition & 1 deletion renderdoc/driver/d3d12/d3d12_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ class WrappedID3D12Device : public IFrameCapturer, public ID3DDevice, public ID3
bool InFrameCaptureBoundary = false);
void MarkListExecuted(ID3D12GraphicsCommandListX *list);
void ExecuteLists(WrappedID3D12CommandQueue *queue = NULL, bool InFrameCaptureBoundary = false);
void FlushLists(bool forceSync = false, ID3D12CommandQueue *queue = NULL);
void FlushLists(bool forceSync = false);

void DataUploadSync();

Expand Down

0 comments on commit 898e4e0

Please sign in to comment.