fix(gl): Get running on Adreno 308 (#11467) 28e95e51e7

Adreno 308 had a few issues:

  * Crash from drawing too many instances, which we work around by
    breaking them up with glFlush.

  * Compiler failure from the compiler declaring a 3.1 bulitin in ESSL
    3.0, which we work around with a #define.

  * The advertised max texture size is 8192, but textures larger than
    2048 seem to not work with EXT_multisampled_render_to_texture.
    Either way, we shouldn't have any gms larger than 2048 since that's
    the bare minimum per the spec. Shrink the larger gms down to 2048.

Rive had an issue as well:

  * With EXT_multisampled_render_to_texture but not
    KHR_blend_equation_advanced, we were trying to use the same texture
    for both msaa and the dstRead. Separate these into their own
    textures.

Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
This commit is contained in:
csmartdalton
2026-01-16 06:19:00 +00:00
parent 155a726a9b
commit 9617565e7c
8 changed files with 131 additions and 34 deletions

View File

@@ -1 +1 @@
f57124001d4ee388c32a3ec0cd08e292fafc268d
28e95e51e7823ed149fa5fc323ccc9751bca5356