summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2024-02-10 12:02:37 -0500
committerGravatar Liam2024-02-10 12:02:37 -0500
commit4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf (patch)
tree9654d6aa7e1ce6df38bb58f72caa85e1c5dab4aa /src
parentFix multiplayer player count color in dark themes | Temp fix until #12744: Ad... (diff)
downloadyuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.gz
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.tar.xz
yuzu-4eeac731ff7d0a4b2b47ef95e9b4efdfe8e277bf.zip
host_shaders: add vendor workaround for adreno drivers
Diffstat (limited to 'src')
-rw-r--r--src/video_core/host_shaders/vulkan_present.vert10
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.
21ScreenRectVertex GetVertex(int index) { 21ScreenRectVertex 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}