diff options
| author | 2022-08-02 17:41:41 +0100 | |
|---|---|---|
| committer | 2023-01-05 22:13:07 +0000 | |
| commit | bbfad79c89f9b7886005d39b51129bcfd94830b8 (patch) | |
| tree | 70450b224d32ae1302010248590caff84ea200b7 /src/shader_recompiler/backend/spirv/spirv_emit_context.h | |
| parent | Merge pull request #9527 from Wollnashorn/amd-cache-fix (diff) | |
| download | yuzu-bbfad79c89f9b7886005d39b51129bcfd94830b8.tar.gz yuzu-bbfad79c89f9b7886005d39b51129bcfd94830b8.tar.xz yuzu-bbfad79c89f9b7886005d39b51129bcfd94830b8.zip | |
Vulkan: Add a workaround for input_position on Adreno drivers
Adreno drivers will crash compiling geometry shaders if the input position is not wrapped in a gl_in struct.
Diffstat (limited to 'src/shader_recompiler/backend/spirv/spirv_emit_context.h')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/spirv_emit_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.h b/src/shader_recompiler/backend/spirv/spirv_emit_context.h index 4414a5169..dbc5c55b9 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.h +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.h | |||
| @@ -280,6 +280,7 @@ public: | |||
| 280 | Id write_global_func_u32x2{}; | 280 | Id write_global_func_u32x2{}; |
| 281 | Id write_global_func_u32x4{}; | 281 | Id write_global_func_u32x4{}; |
| 282 | 282 | ||
| 283 | bool need_input_position_indirect{}; | ||
| 283 | Id input_position{}; | 284 | Id input_position{}; |
| 284 | std::array<Id, 32> input_generics{}; | 285 | std::array<Id, 32> input_generics{}; |
| 285 | 286 | ||