diff options
| author | Liam <byteslice@airmail.cc> | 2024-02-10 12:02:37 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2024-02-10 12:02:37 -0500 |
| commit | 47eeb0008b831760b2e7c9a91f2855ab52071d79 (patch) | |
| tree | 9654d6aa7e1ce6df38bb58f72caa85e1c5dab4aa /src | |
| parent | 5383720d01350fe2f848d74e286d955701ce453d (diff) | |
host_shaders: add vendor workaround for adreno drivers
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/host_shaders/vulkan_present.vert | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/video_core/host_shaders/vulkan_present.vert b/src/video_core/host_shaders/vulkan_present.vert index 249c9675a2..c0e6e85372 100644 --- a/src/video_core/host_shaders/vulkan_present.vert +++ b/src/video_core/host_shaders/vulkan_present.vert @@ -19,15 +19,13 @@ layout (push_constant) uniform PushConstants { // Any member of a push constant block that is declared as an // array must only be accessed with dynamically uniform indices. ScreenRectVertex GetVertex(int index) { - switch (index) { - case 0: - default: + if (index < 1) { return vertices[0]; - case 1: + } else if (index < 2) { return vertices[1]; - case 2: + } else if (index < 3) { return vertices[2]; - case 3: + } else { return vertices[3]; } } |
