From 88cb05e6e79e01b4bc2fb29b4d1cb2b3a1c2f6d4 Mon Sep 17 00:00:00 2001 From: Nguyen Dac Nam Date: Wed, 19 Feb 2020 12:57:22 +0700 Subject: shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat --- src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 925d068ee..c02306d69 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -1749,6 +1749,10 @@ private: } Expression ImageLoad(Operation operation) { + if (!device.IsShaderStorageImageReadWithoutFormatSupported()) { + return {v_float_zero, Type::Float}; + } + const auto& meta{std::get(operation.GetMeta())}; const Id coords = GetCoordinates(operation, Type::Int); -- cgit v1.2.3