From 142ad5487601a342f00d0bf5f57a0da084eb5326 Mon Sep 17 00:00:00 2001 From: psucien Date: Wed, 12 Jun 2024 20:52:28 +0200 Subject: [PATCH] gnmdriver: fix for pm4 dump name in some erroneous cases --- src/core/libraries/gnmdriver/gnmdriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/libraries/gnmdriver/gnmdriver.cpp b/src/core/libraries/gnmdriver/gnmdriver.cpp index fb829ce5..bf11904d 100644 --- a/src/core/libraries/gnmdriver/gnmdriver.cpp +++ b/src/core/libraries/gnmdriver/gnmdriver.cpp @@ -1512,9 +1512,9 @@ s32 PS4_SYSV_ABI sceGnmSubmitCommandBuffers(u32 count, const u32* dcb_gpu_addrs[ const auto& ccb_span = std::span{ccb, ccb_size_dw}; if (Config::dumpPM4()) { - static auto last_frame_num = frames_submitted; + static auto last_frame_num = -1LL; static u32 seq_num{}; - if (last_frame_num && last_frame_num == frames_submitted) { + if (last_frame_num == frames_submitted) { ++seq_num; } else { last_frame_num = frames_submitted;