diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index 2283a79895..756dc62b52 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -503,6 +503,14 @@ public: void ResetStats() override { renderManager_.ResetStats(); } + void StopThreads() override { + renderManager_.StopThreads(); + } + + void StartThreads() override { + renderManager_.StartThreads(); + } + std::string GetInfoString(InfoField info) const override { // TODO: Make these actually query the right information diff --git a/Common/GPU/thin3d.h b/Common/GPU/thin3d.h index 95af546665..a0ab3db446 100644 --- a/Common/GPU/thin3d.h +++ b/Common/GPU/thin3d.h @@ -834,6 +834,10 @@ public: targetHeight_ = h; } + // In Vulkan, when changing things like MSAA mode, we can't have draw commands in flight (since we only support one at a time). + virtual void StopThreads() {} + virtual void StartThreads() {} + virtual std::string GetInfoString(InfoField info) const = 0; virtual uint64_t GetNativeObject(NativeObject obj, void *srcObject = nullptr) = 0; // Most uses don't need an srcObject. diff --git a/GPU/Common/FramebufferManagerCommon.cpp b/GPU/Common/FramebufferManagerCommon.cpp index 25e7c5ab14..c50f59e94c 100644 --- a/GPU/Common/FramebufferManagerCommon.cpp +++ b/GPU/Common/FramebufferManagerCommon.cpp @@ -2810,7 +2810,9 @@ void FramebufferManagerCommon::NotifyRenderResized(int msaaLevel) { PSP_CoreParameter().renderScaleFactor = scaleFactor; if (UpdateRenderSize(msaaLevel)) { + draw_->StopThreads(); DestroyAllFBOs(); + draw_->StartThreads(); } // No drawing is allowed here. This includes anything that might potentially touch a command buffer, like creating images! diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index ae01a4d04b..1c26b4f8a8 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -514,7 +514,7 @@ GameBrowser::GameBrowser(int token, const Path &path, BrowseFlags browseFlags, b : LinearLayout(UI::ORIENT_VERTICAL, layoutParams), path_(path), gridStyle_(gridStyle), browseFlags_(browseFlags), lastText_(lastText), lastLink_(lastLink), screenManager_(screenManager), token_(token) { using namespace UI; path_.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION)); - path_.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString()); + path_.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString() + "/"); Refresh(); } diff --git a/UI/RemoteISOScreen.cpp b/UI/RemoteISOScreen.cpp index 8ed622622e..ccfb4e6d83 100644 --- a/UI/RemoteISOScreen.cpp +++ b/UI/RemoteISOScreen.cpp @@ -256,7 +256,7 @@ static bool LoadGameList(const Path &url, std::vector &games) { PathBrowser browser(url); std::vector files; browser.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION)); - browser.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString()); + browser.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString() + "/"); browser.GetListing(files, "iso:cso:chd:pbp:elf:prx:ppdmp:", &scanCancelled); if (scanCancelled) { return false;