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/profile.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/profile.h')
| -rw-r--r-- | src/shader_recompiler/profile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h index b8841a536..253e0d0bd 100644 --- a/src/shader_recompiler/profile.h +++ b/src/shader_recompiler/profile.h | |||
| @@ -55,6 +55,8 @@ struct Profile { | |||
| 55 | 55 | ||
| 56 | /// OpFClamp is broken and OpFMax + OpFMin should be used instead | 56 | /// OpFClamp is broken and OpFMax + OpFMin should be used instead |
| 57 | bool has_broken_spirv_clamp{}; | 57 | bool has_broken_spirv_clamp{}; |
| 58 | /// The Position builtin needs to be wrapped in a struct when used as an input | ||
| 59 | bool has_broken_spirv_position_input{}; | ||
| 58 | /// Offset image operands with an unsigned type do not work | 60 | /// Offset image operands with an unsigned type do not work |
| 59 | bool has_broken_unsigned_image_offsets{}; | 61 | bool has_broken_unsigned_image_offsets{}; |
| 60 | /// Signed instructions with unsigned data types are misinterpreted | 62 | /// Signed instructions with unsigned data types are misinterpreted |