diff options
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 81b6c372d..1aa116cea 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |||
| @@ -467,7 +467,7 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) { | |||
| 467 | } | 467 | } |
| 468 | 468 | ||
| 469 | void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling, | 469 | void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling, |
| 470 | const RenderAreaPushConstant& render_are) { | 470 | const RenderAreaPushConstant& render_area) { |
| 471 | texture_cache.UpdateRenderTargets(false); | 471 | texture_cache.UpdateRenderTargets(false); |
| 472 | scheduler.RequestRenderpass(texture_cache.GetFramebuffer()); | 472 | scheduler.RequestRenderpass(texture_cache.GetFramebuffer()); |
| 473 | 473 | ||
| @@ -484,8 +484,8 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling, | |||
| 484 | const void* const descriptor_data{update_descriptor_queue.UpdateData()}; | 484 | const void* const descriptor_data{update_descriptor_queue.UpdateData()}; |
| 485 | scheduler.Record([this, descriptor_data, bind_pipeline, rescaling_data = rescaling.Data(), | 485 | scheduler.Record([this, descriptor_data, bind_pipeline, rescaling_data = rescaling.Data(), |
| 486 | is_rescaling, update_rescaling, | 486 | is_rescaling, update_rescaling, |
| 487 | uses_render_area = render_are.uses_render_area, | 487 | uses_render_area = render_area.uses_render_area, |
| 488 | render_area_data = render_are.words](vk::CommandBuffer cmdbuf) { | 488 | render_area_data = render_area.words](vk::CommandBuffer cmdbuf) { |
| 489 | if (bind_pipeline) { | 489 | if (bind_pipeline) { |
| 490 | cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline); | 490 | cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline); |
| 491 | } | 491 | } |
| @@ -494,7 +494,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling, | |||
| 494 | rescaling_data.data()); | 494 | rescaling_data.data()); |
| 495 | if (update_rescaling) { | 495 | if (update_rescaling) { |
| 496 | const f32 config_down_factor{Settings::values.resolution_info.down_factor}; | 496 | const f32 config_down_factor{Settings::values.resolution_info.down_factor}; |
| 497 | const f32 scale_down_factor{is_rescaling ? config_down_factor : 2.0f}; | 497 | const f32 scale_down_factor{is_rescaling ? config_down_factor : 1.0f}; |
| 498 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, | 498 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, |
| 499 | RESCALING_LAYOUT_DOWN_FACTOR_OFFSET, sizeof(scale_down_factor), | 499 | RESCALING_LAYOUT_DOWN_FACTOR_OFFSET, sizeof(scale_down_factor), |
| 500 | &scale_down_factor); | 500 | &scale_down_factor); |