Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fc5d81d

Browse files
author
Jonah Williams
authored
[Impeller] ensure precision matches for buggy vulkan drivers. (#54372)
This is another precision mismatch bug - WHICH IS NOT AN ERROR AT ALL BUT THE PowerVR Drivers ARE BUGGY BUGGY BUGGY Fixes flutter/flutter#152951
1 parent 206e86e commit fc5d81d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

impeller/entity/shaders/gradients/fast_gradient.vert

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ uniform FrameInfo {
1111
frame_info;
1212

1313
in vec2 position;
14-
in vec4 color;
14+
in mediump vec4 color;
1515

1616
// The geometry of the fast gradient draws is designed so that the
1717
// varying unit will perform the correct color interpolation.
18-
out vec4 v_color;
18+
out mediump vec4 v_color;
1919

2020
void main() {
2121
gl_Position = frame_info.mvp * vec4(position, 0.0, 1.0);

impeller/tools/malioc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@
793793
"stack_spill_bytes": 0,
794794
"thread_occupancy": 100,
795795
"uniform_registers_used": 20,
796-
"work_registers_used": 9
796+
"work_registers_used": 7
797797
}
798798
}
799799
}
@@ -2175,7 +2175,7 @@
21752175
"stack_spill_bytes": 0,
21762176
"thread_occupancy": 100,
21772177
"uniform_registers_used": 8,
2178-
"work_registers_used": 9
2178+
"work_registers_used": 7
21792179
}
21802180
}
21812181
},

0 commit comments

Comments
 (0)