mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Various Vulkan image transition fixes and related
This commit is contained in:
1 parent
5da165fad6
commit
804aa79376
9 files changed
+70
-55
No files matched your search
@@ -884,8 +884,11 @@ void DrawEngineVulkan::DoFlush() {
|
||||
if (pipeline != lastPipeline_) {
|
||||
vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline->pipeline);
|
||||
lastPipeline_ = pipeline;
|
||||
if (lastPipeline_ && !lastPipeline_->useBlendConstant && pipeline->useBlendConstant) {
|
||||
gstate_c.Dirty(DIRTY_BLEND_STATE);
|
||||
}
|
||||
}
|
||||
ApplyDrawStateLate(cmd, false, 0);
|
||||
ApplyDrawStateLate(cmd, false, 0, pipeline->useBlendConstant);
|
||||
gstate_c.Clean(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
|
||||
}
|
||||
lastPrim_ = prim;
|
||||
@@ -986,8 +989,11 @@ void DrawEngineVulkan::DoFlush() {
|
||||
if (pipeline != lastPipeline_) {
|
||||
vkCmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline->pipeline); // TODO: Avoid if same as last draw.
|
||||
lastPipeline_ = pipeline;
|
||||
if (lastPipeline_ && !lastPipeline_->useBlendConstant && pipeline->useBlendConstant) {
|
||||
gstate_c.Dirty(DIRTY_BLEND_STATE);
|
||||
}
|
||||
}
|
||||
ApplyDrawStateLate(cmd, false, 0);
|
||||
ApplyDrawStateLate(cmd, false, 0, pipeline->useBlendConstant);
|
||||
gstate_c.Clean(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE);
|
||||
}
|
||||
lastPrim_ = prim;
|
||||
|
||||
Reference in new issue
Block a user