diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-01-03 21:38:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 21:38:29 +0100 |
commit | 7265e80c12de2d24d759ee6956a2445bf9ac8992 (patch) | |
tree | 3236d949fdf894b985a8dcafc580cd233ebd9a68 /src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |
parent | Merge pull request #5278 from MerryMage/cpuopt_unsafe_inaccurate_nan (diff) | |
parent | vulkan_instance: Allow different Vulkan versions and enforce 1.1 (diff) | |
download | yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.tar yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.tar.gz yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.tar.bz2 yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.tar.lz yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.tar.xz yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.tar.zst yuzu-7265e80c12de2d24d759ee6956a2445bf9ac8992.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_shader_decompiler.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 09d6f9f35..571460c2f 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -272,19 +272,12 @@ bool IsPrecise(Operation operand) { return false; } -u32 ShaderVersion(const VKDevice& device) { - if (device.InstanceApiVersion() < VK_API_VERSION_1_1) { - return 0x00010000; - } - return 0x00010300; -} - class SPIRVDecompiler final : public Sirit::Module { public: explicit SPIRVDecompiler(const VKDevice& device_, const ShaderIR& ir_, ShaderType stage_, const Registry& registry_, const Specialization& specialization_) - : Module(ShaderVersion(device_)), device{device_}, ir{ir_}, stage{stage_}, - header{ir_.GetHeader()}, registry{registry_}, specialization{specialization_} { + : Module(0x00010300), device{device_}, ir{ir_}, stage{stage_}, header{ir_.GetHeader()}, + registry{registry_}, specialization{specialization_} { if (stage_ != ShaderType::Compute) { transform_feedback = BuildTransformFeedback(registry_.GetGraphicsInfo()); } |