renderdoc: fix

This commit is contained in:
nmzik committed 2026-08-21 03:32:48 +02:00
1 parent 5ad7d0ebc2
commit bac6bf65af
4 files changed
+23 -12

No files matched your search

+4 -11
View File
@@ -199,17 +199,6 @@ void GuestGpu::Done() {
if (!IsGpuThread()) {
WaitForIdle();
}
if (RenderDocCaptureInProgress()) {
SendCommandSync([this] {
Common::LockGuard render_lock(m_renderer.GetMutex());
RenderDocEndCapture();
});
} else if (RenderDocCaptureRequested()) {
SendCommandSync([this] {
Common::LockGuard render_lock(m_renderer.GetMutex());
RenderDocStartCapture();
});
}
m_graphics_done = true;
m_done_num++;
}
@@ -571,6 +560,10 @@ void GuestGpu::ThreadRun(void* data) {
bool GuestGpu::Process(Submission& submission) {
const bool first_slice = !submission.started;
if (first_slice && RenderDocCaptureRequested()) {
Common::LockGuard render_lock(m_renderer.GetMutex());
RenderDocStartCapture();
}
auto& cp = GetProcessor(submission.queue_id);
if (first_slice && submission.reset_processor) {