mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
GPU: Don't allow step id to decrease at a sync.
This might've caused us to miss necessary dynamic state dirtying in games, but only in fairly specific cases. But it happens a lot when stepping via the GE debugger.
This commit is contained in:
1 parent
c8f8d55118
commit
24c844445e
4 files changed
+12
-2
No files matched your search
@@ -422,6 +422,7 @@ void VulkanRenderManager::BeginFrame(bool enableProfiling) {
|
||||
vulkan_->BeginFrame();
|
||||
|
||||
insideFrame_ = true;
|
||||
renderStepOffset_ = 0;
|
||||
|
||||
frameData.profile.timestampDescriptions.clear();
|
||||
if (frameData_->profilingEnabled_) {
|
||||
@@ -1173,6 +1174,8 @@ void VulkanRenderManager::EndSyncFrame(int frame) {
|
||||
|
||||
void VulkanRenderManager::FlushSync() {
|
||||
// TODO: Reset curRenderStep_?
|
||||
renderStepOffset_ += (int)steps_.size();
|
||||
|
||||
int curFrame = vulkan_->GetCurFrame();
|
||||
FrameData &frameData = frameData_[curFrame];
|
||||
if (!useThread_) {
|
||||
|
||||
Reference in new issue
Block a user