renderdoc: fix

This commit is contained in:
nmzik
2026-08-19 23:06:07 +02:00
parent 5ad7d0ebc2
commit bac6bf65af
4 changed files with 23 additions and 12 deletions
+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) {