diff options
| author | 2024-02-10 22:42:25 -0500 | |
|---|---|---|
| committer | 2024-02-10 22:42:25 -0500 | |
| commit | 999ec5739d9d788bd85f4715f0be9c2ba5f79d7a (patch) | |
| tree | ae537052a6d4c9f3ee64c311a885428916029e5e /src | |
| parent | Merge pull request #12969 from german77/bcat-interface (diff) | |
| parent | host_shaders: add vendor workaround for adreno drivers (diff) | |
| download | yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.gz yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.tar.xz yuzu-999ec5739d9d788bd85f4715f0be9c2ba5f79d7a.zip | |
Merge pull request #12978 from liamwhite/ffs-qcom
host_shaders: add vendor workaround for adreno drivers
Diffstat (limited to '')
| -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 249c9675a..c0e6e8537 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 { | |||
| 19 | // Any member of a push constant block that is declared as an | 19 | // Any member of a push constant block that is declared as an |
| 20 | // array must only be accessed with dynamically uniform indices. | 20 | // array must only be accessed with dynamically uniform indices. |
| 21 | ScreenRectVertex GetVertex(int index) { | 21 | ScreenRectVertex GetVertex(int index) { |
| 22 | switch (index) { | 22 | if (index < 1) { |
| 23 | case 0: | ||
| 24 | default: | ||
| 25 | return vertices[0]; | 23 | return vertices[0]; |
| 26 | case 1: | 24 | } else if (index < 2) { |
| 27 | return vertices[1]; | 25 | return vertices[1]; |
| 28 | case 2: | 26 | } else if (index < 3) { |
| 29 | return vertices[2]; | 27 | return vertices[2]; |
| 30 | case 3: | 28 | } else { |
| 31 | return vertices[3]; | 29 | return vertices[3]; |
| 32 | } | 30 | } |
| 33 | } | 31 | } |