mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Vulkan: Restore a minor old forgotten optimization
This commit is contained in:
1 parent
cf23689219
commit
1f276fcc20
1 file changed
+1
-4
@@ -531,10 +531,6 @@ void DrawEngineVulkan::DoFlush() {
|
||||
|
||||
gpuStats.numFlushes++;
|
||||
|
||||
// TODO: Needs to be behind a check for changed render pass, at an appropriate time in this function.
|
||||
// Similar issues as with the lastRenderStepId_ check. Will need a bit of a rethink.
|
||||
lastPipeline_ = nullptr;
|
||||
|
||||
// If have a new render pass, dirty our dynamic state so it gets re-set.
|
||||
// We have to do this again after the last possible place in DoFlush that can cause a renderpass switch
|
||||
// like a shader blend blit or similar. But before we actually set the state!
|
||||
@@ -544,6 +540,7 @@ void DrawEngineVulkan::DoFlush() {
|
||||
gstate_c.Dirty(DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_BLEND_STATE | DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS);
|
||||
textureCache_->ForgetLastTexture();
|
||||
lastRenderStepId_ = curRenderStepId;
|
||||
lastPipeline_ = nullptr;
|
||||
}
|
||||
|
||||
bool tess = gstate_c.submitType == SubmitType::HW_BEZIER || gstate_c.submitType == SubmitType::HW_SPLINE;
|
||||
|
||||
Reference in new issue
Block a user