mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Track and accumulate pipeline flags for render passes.
(Information that will later let us make some interesting optimizations)
This commit is contained in:
1 parent
4ff059d3d8
commit
5ece3de8ba
10 files changed
+75
-34
No files matched your search
@@ -839,7 +839,7 @@ void DrawEngineVulkan::DoFlush() {
|
||||
lastRenderStepId_ = curRenderStepId;
|
||||
}
|
||||
|
||||
renderManager->BindPipeline(pipeline->pipeline);
|
||||
renderManager->BindPipeline(pipeline->pipeline, (PipelineFlags)pipeline->flags);
|
||||
if (pipeline != lastPipeline_) {
|
||||
if (lastPipeline_ && !(lastPipeline_->UsesBlendConstant() && pipeline->UsesBlendConstant())) {
|
||||
gstate_c.Dirty(DIRTY_BLEND_STATE);
|
||||
@@ -964,7 +964,7 @@ void DrawEngineVulkan::DoFlush() {
|
||||
lastRenderStepId_ = curRenderStepId;
|
||||
}
|
||||
|
||||
renderManager->BindPipeline(pipeline->pipeline);
|
||||
renderManager->BindPipeline(pipeline->pipeline, (PipelineFlags)pipeline->flags);
|
||||
if (pipeline != lastPipeline_) {
|
||||
if (lastPipeline_ && !lastPipeline_->UsesBlendConstant() && pipeline->UsesBlendConstant()) {
|
||||
gstate_c.Dirty(DIRTY_BLEND_STATE);
|
||||
|
||||
Reference in new issue
Block a user