From c1980901bab561a085d0928ac52c22bc5b22fdfb Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Tue, 6 Aug 2024 13:12:05 -0700 Subject: [PATCH 1/2] [Impeller] ensure precision matches for buggy vulkan drivers. --- impeller/entity/shaders/gradients/fast_gradient.vert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impeller/entity/shaders/gradients/fast_gradient.vert b/impeller/entity/shaders/gradients/fast_gradient.vert index 993f05ccc48fb..44f1acae66c62 100644 --- a/impeller/entity/shaders/gradients/fast_gradient.vert +++ b/impeller/entity/shaders/gradients/fast_gradient.vert @@ -11,11 +11,11 @@ uniform FrameInfo { frame_info; in vec2 position; -in vec4 color; +in mediump vec4 color; // The geometry of the fast gradient draws is designed so that the // varying unit will perform the correct color interpolation. -out vec4 v_color; +out mediump vec4 v_color; void main() { gl_Position = frame_info.mvp * vec4(position, 0.0, 1.0); From 27a5314dd0b7bd16e22888304c5e60341357686c Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Tue, 6 Aug 2024 13:43:18 -0700 Subject: [PATCH 2/2] fix malioc diff. --- impeller/tools/malioc.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impeller/tools/malioc.json b/impeller/tools/malioc.json index 65d69603b1dac..55e276afed8e8 100644 --- a/impeller/tools/malioc.json +++ b/impeller/tools/malioc.json @@ -793,7 +793,7 @@ "stack_spill_bytes": 0, "thread_occupancy": 100, "uniform_registers_used": 20, - "work_registers_used": 9 + "work_registers_used": 7 } } } @@ -2175,7 +2175,7 @@ "stack_spill_bytes": 0, "thread_occupancy": 100, "uniform_registers_used": 8, - "work_registers_used": 9 + "work_registers_used": 7 } } },