diff options
| author | 2020-03-12 03:27:29 -0300 | |
|---|---|---|
| committer | 2020-03-13 18:33:05 -0300 | |
| commit | 69c7a01f88a1839a3d950cab968accfa5100ea18 (patch) | |
| tree | 58c80a2133092b990ca11f3a357d70fab2c5fd0b /src/video_core/renderer_vulkan | |
| parent | vk_shader_decompiler: Fix default varying regression (diff) | |
| download | yuzu-69c7a01f88a1839a3d950cab968accfa5100ea18.tar.gz yuzu-69c7a01f88a1839a3d950cab968accfa5100ea18.tar.xz yuzu-69c7a01f88a1839a3d950cab968accfa5100ea18.zip | |
vk/gl_shader_decompiler: Silence assertion on compute
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 7d51bf9af..b2c298051 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |||
| @@ -277,8 +277,11 @@ public: | |||
| 277 | explicit SPIRVDecompiler(const VKDevice& device, const ShaderIR& ir, ShaderType stage, | 277 | explicit SPIRVDecompiler(const VKDevice& device, const ShaderIR& ir, ShaderType stage, |
| 278 | const Registry& registry, const Specialization& specialization) | 278 | const Registry& registry, const Specialization& specialization) |
| 279 | : Module(0x00010300), device{device}, ir{ir}, stage{stage}, header{ir.GetHeader()}, | 279 | : Module(0x00010300), device{device}, ir{ir}, stage{stage}, header{ir.GetHeader()}, |
| 280 | registry{registry}, specialization{specialization}, | 280 | registry{registry}, specialization{specialization} { |
| 281 | transform_feedback{BuildTransformFeedback(registry.GetGraphicsInfo())} { | 281 | if (stage != ShaderType::Compute) { |
| 282 | transform_feedback = BuildTransformFeedback(registry.GetGraphicsInfo()); | ||
| 283 | } | ||
| 284 | |||
| 282 | AddCapability(spv::Capability::Shader); | 285 | AddCapability(spv::Capability::Shader); |
| 283 | AddCapability(spv::Capability::UniformAndStorageBuffer16BitAccess); | 286 | AddCapability(spv::Capability::UniformAndStorageBuffer16BitAccess); |
| 284 | AddCapability(spv::Capability::ImageQuery); | 287 | AddCapability(spv::Capability::ImageQuery); |
| @@ -2581,7 +2584,7 @@ private: | |||
| 2581 | const Tegra::Shader::Header header; | 2584 | const Tegra::Shader::Header header; |
| 2582 | const Registry& registry; | 2585 | const Registry& registry; |
| 2583 | const Specialization& specialization; | 2586 | const Specialization& specialization; |
| 2584 | const std::unordered_map<u8, VaryingTFB> transform_feedback; | 2587 | std::unordered_map<u8, VaryingTFB> transform_feedback; |
| 2585 | 2588 | ||
| 2586 | const Id t_void = Name(TypeVoid(), "void"); | 2589 | const Id t_void = Name(TypeVoid(), "void"); |
| 2587 | 2590 | ||