summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_scheduler.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-07-26 03:34:12 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:28 +0100
commitd2388dd0d0d36a230b58efbdd17f8366c79555b5 (patch)
tree02f74469732f55fc109dd45a71339a6d26c0dfae /src/video_core/renderer_vulkan/vk_scheduler.cpp
parentvk_texture_cache: Properly scale blit source images (diff)
downloadyuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar
yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.gz
yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.bz2
yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.lz
yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.xz
yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.tar.zst
yuzu-d2388dd0d0d36a230b58efbdd17f8366c79555b5.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_scheduler.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.cpp b/src/video_core/renderer_vulkan/vk_scheduler.cpp
index 0c11c814f..3bfdf41ba 100644
--- a/src/video_core/renderer_vulkan/vk_scheduler.cpp
+++ b/src/video_core/renderer_vulkan/vk_scheduler.cpp
@@ -128,6 +128,15 @@ bool VKScheduler::UpdateGraphicsPipeline(GraphicsPipeline* pipeline) {
return true;
}
+bool VKScheduler::UpdateRescaling(bool is_rescaling) {
+ if (state.rescaling_defined && is_rescaling == state.is_rescaling) {
+ return false;
+ }
+ state.rescaling_defined = true;
+ state.is_rescaling = is_rescaling;
+ return true;
+}
+
void VKScheduler::WorkerThread(std::stop_token stop_token) {
Common::SetCurrentThreadName("yuzu:VulkanWorker");
do {
@@ -227,6 +236,7 @@ void VKScheduler::AllocateNewContext() {
void VKScheduler::InvalidateState() {
state.graphics_pipeline = nullptr;
+ state.rescaling_defined = false;
state_tracker.InvalidateCommandBufferState();
}