diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 4 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index db0998ad6..dd6dff0c8 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h | |||
| @@ -23,8 +23,8 @@ constexpr u32 NUM_TEXTURE_AND_IMAGE_SCALING_WORDS = | |||
| 23 | 23 | ||
| 24 | struct RescalingLayout { | 24 | struct RescalingLayout { |
| 25 | u32 down_factor; | 25 | u32 down_factor; |
| 26 | std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures; | 26 | alignas(16) std::array<u32, NUM_TEXTURE_SCALING_WORDS> rescaling_textures; |
| 27 | std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images; | 27 | alignas(16) std::array<u32, NUM_IMAGE_SCALING_WORDS> rescaling_images; |
| 28 | }; | 28 | }; |
| 29 | 29 | ||
| 30 | [[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, | 30 | [[nodiscard]] std::vector<u32> EmitSPIRV(const Profile& profile, const RuntimeInfo& runtime_info, |
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index c29bab678..5ad1180bb 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |||
| @@ -479,7 +479,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling) { | |||
| 479 | } | 479 | } |
| 480 | if (update_rescaling) { | 480 | if (update_rescaling) { |
| 481 | const f32 config_down_factor{Settings::values.resolution_info.down_factor}; | 481 | const f32 config_down_factor{Settings::values.resolution_info.down_factor}; |
| 482 | const float scale_down_factor{is_rescaling ? config_down_factor : 1.0f}; | 482 | const f32 scale_down_factor{is_rescaling ? config_down_factor : 1.0f}; |
| 483 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, 0, | 483 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS, 0, |
| 484 | sizeof(scale_down_factor), &scale_down_factor); | 484 | sizeof(scale_down_factor), &scale_down_factor); |
| 485 | } | 485 | } |