diff options
author | Feng Chen <vonchenplus@gmail.com> | 2021-11-19 08:32:53 +0100 |
---|---|---|
committer | vonchenplus <vonchenplus@gmail.com> | 2021-11-19 15:53:58 +0100 |
commit | 4dd85f86a89338ff84d05a3981c14f6de1be4606 (patch) | |
tree | b2a48b24bf216a325e62f5e363bc98b41de84444 /src/video_core/renderer_vulkan | |
parent | Merge pull request #7349 from ameerj/ogl-convert-image (diff) | |
download | yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.gz yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.bz2 yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.lz yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.xz yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.tar.zst yuzu-4dd85f86a89338ff84d05a3981c14f6de1be4606.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index eb8b4e08b..5efa4feb4 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -50,6 +50,7 @@ namespace { using Shader::Backend::SPIRV::EmitSPIRV; using Shader::Maxwell::MergeDualVertexPrograms; using Shader::Maxwell::TranslateProgram; +using Shader::Maxwell::ConvertLegacyToGeneric; using VideoCommon::ComputeEnvironment; using VideoCommon::FileEnvironment; using VideoCommon::GenericEnvironment; @@ -543,6 +544,7 @@ std::unique_ptr<GraphicsPipeline> PipelineCache::CreateGraphicsPipeline( infos[stage_index] = &program.info; const auto runtime_info{MakeRuntimeInfo(programs, key, program, previous_stage)}; + ConvertLegacyToGeneric(program, runtime_info); const std::vector<u32> code{EmitSPIRV(profile, runtime_info, program, binding)}; device.SaveShader(code); modules[stage_index] = BuildShader(device, code); |