aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/profile.h
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2022-08-02 17:41:41 +0100
committerBilly Laws <blaws05@gmail.com>2023-01-05 22:13:07 +0000
commitbbfad79c89f9b7886005d39b51129bcfd94830b8 (patch)
tree70450b224d32ae1302010248590caff84ea200b7 /src/shader_recompiler/profile.h
parent1428451722718d7af450f67d7ec823b155b128d2 (diff)
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shader_recompiler/profile.h b/src/shader_recompiler/profile.h
index b8841a5367..253e0d0bdd 100644
--- a/src/shader_recompiler/profile.h
+++ b/src/shader_recompiler/profile.h
@@ -55,6 +55,8 @@ struct Profile {
/// OpFClamp is broken and OpFMax + OpFMin should be used instead
bool has_broken_spirv_clamp{};
+ /// The Position builtin needs to be wrapped in a struct when used as an input
+ bool has_broken_spirv_position_input{};
/// Offset image operands with an unsigned type do not work
bool has_broken_unsigned_image_offsets{};
/// Signed instructions with unsigned data types are misinterpreted