Repository navigation
Commit 10a4136
committed
fix(linux): let the Flutter 3.50.0 engine blit on NVIDIA
Flutter 3.50.0's Linux engine draws each frame half a window down and to
the left when it composites without glBlitFramebuffer
(flutter/flutter#195885): the UI sat in the bottom-left quarter of the
window, the rest was black, and taps missed. The engine blocklists every
NVIDIA driver for glBlitFramebuffer, so all NVIDIA proprietary drivers hit
that path, on Hyprland, GNOME and X11 alike.
At install, linux/flutter_3_50_0_fix.cmake renames that blocklist entry in
the bundle's copy of the engine (same length, matched and re-checked by
SHA-256 for 3.50.0 debug, profile and release), so NVIDIA blits like Intel
and AMD. The SDK's copy and other engine versions are left alone.
Correcting the fallback's shader offset instead, as the upstream fix for
3.50.1 does, was still off at a fractional scale (133 % on GNOME). Checked
on an RTX 5060 with driver 615.78.08, GNOME on Wayland at 133 %.
CONTRIBUTION.md says when and how to remove the patch.1 parent 5d479f0 commit 10a4136
3 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments