Skip to content

OpenGL 4.0 on Mali: wrapper-gamenative 20261120 and extra_libs 20261120 - #2481

Merged
utkarshdalal merged 1 commit into
masterfrom
opengl-4-on-mali-wrapper-and-libgl
Nov 20, 2026
Merged

utkarshdalal merged 1 commit into
masterfrom
opengl-4-on-mali-wrapper-and-libgl

Conversation

@utkarshdalal

@utkarshdalal utkarshdalal commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Description

OpenGL games on Mali only got a 3.1 context (3.2 on newer Mali drivers), so a request for a 3.2 or later context failed. This updates two graphics components so those phones reach OpenGL 4.0. The report that started this was Doom 3 on a Mali phone; that game has not been run on the new components yet.

Both archives are on the download server and in the manifest, and the legacy flavor's bundled copies are replaced. The bundled wrapper was still the 20260925 build, so the legacy flavor now also gets the 20261027 changes.

Drivers that already have these features use their own paths as before. D3D games through DXVK or vkd3d do not use the new wrapper path.

Tested on BrowserStack with a test program that requests each context version, then draws and reads pixels back (depth clamp, packed vertex formats, dual-source blending), plus the testbed's GL texture suite:

Device Driver OpenGL before OpenGL now Packed formats Dual-source blending Depth clamp GL suite
Vivo T4x 5G Mali-G615 r44p1 3.1 4.0 59/59 63/63 19/19 12/12
Galaxy A35 Mali-G68 r38p1 not run 4.0 59/59 63/63 19/19 12/12
Pixel 7 Mali-G710 r36p0 3.1 4.0 59/59 63/63 19/19 12/12
Pixel 9 Mali-G715 r48p0 3.2 4.0 59/59 63/63 19/19 12/12
Pixel 10 PowerVR DXT-48-1536 4.6 4.6 59/59 63/63 19/19 12/12
Galaxy S24 Xclipse 940 4.6 4.6 55/59 63/63 19/19 12/12
Galaxy M32 Mali-G57 r26p0 3.1 3.2 59/59 not offered - 12/12

Adreno 740 (Retroid Pocket 6), new libGL: with Turnip, OpenGL 4.6, packed formats 59/59, dual-source 63/63, depth clamp 19/19, and Balatro renders its menu and exits cleanly. With the Qualcomm system driver the version rises from 3.2 to 4.5, because that driver lacks the four SCALED packed formats. On that driver every draw whose vertex shader has two or more inputs reads wrong values, with the shipped libGL too (same values in both), so its failures there are not from this change.

D3D regression check: the testbed's D3D11 and D3D12 suite (DXVK and vkd3d-proton, five configurations) ran with both archives on the Galaxy A35, Pixel 7, Vivo T4x and Pixel 10. No new failure against the results recorded for the current wrapper; the table is in GameNative/mesa#66.

Not covered yet:

  • On the Mali, PowerVR and Xclipse devices only the test programs ran, no game.
  • Galaxy S24: four packed-format cases fail in one buffer layout on the driver's own format. The current archives fail the same four, so this is not from this change.

Recording

N/A. Two component archives changed. The results are in the two mesa pull requests.

Type of Change

  • Bug fix
  • Performance / stability improvement
  • Compatibility improvements
  • Other (requires prior approval)

Checklist

  • If I have access to #code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.
  • This change aligns with the current project scope (core functionality, stability, or performance). If not, it has been explicitly approved beforehand.
  • I have attached a recording of the change.
  • I have read and agree to the contribution guidelines in CONTRIBUTING.md.

Summary by CodeRabbit

  • Updates
    • Updated download links for graphics driver components to newer versions.

The wrapper emulates VK_EXT_depth_clip_enable for OpenGL and reports the EXT name of rasterization order attachment access. The guest libGL converts packed 10/10/10/2 vertex formats the driver lacks and does dual-source blending in the shader on drivers without dualSrcBlend. The legacy flavor's bundled copies of both archives are replaced.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The graphics driver download manifest now uses the 20261120 date suffix for the wrapper-gamenative and extra_libs filenames and URLs.

Changes: Graphics driver package references

Layer / File(s) Summary
Update package date suffixes
app/src/main/assets/graphics_driver_download.json
The wrapper-gamenative and extra_libs filename and URL entries now use the 20261120 date suffix.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Feature

Possibly related PRs

Suggested reviewers: joshuatam

Merge Risk: Minimal · up to e9018

The manifest now points to the new wrapper and extra_libs archives, and both are downloadable from the primary host. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: it updates the wrapper-gamenative and extra_libs graphics archives to version 20261120 to enable OpenGL 4.0 on Mali devices. The raw summary confirms the archive date …
Description check Passed The description follows the template structure. It has the Description, Recording, Type of Change, and Checklist sections. It explains what changed and why, lists the tested devices and results, and s…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: it updates the wrapper-gamenative and extra_libs graphics archives to version 20261120 to enable OpenGL 4.0 on Mali devices. The raw summary confirms the archive date suffix change. The title is specific and matches the changeset, though it names versions rather than the functional fix in detail.

Full details: Description check

Explanation

The description follows the template structure. It has the Description, Recording, Type of Change, and Checklist sections. It explains what changed and why, lists the tested devices and results, and states the open items. The Recording section says N/A with a reason, and the recording checkbox is unchecked. The Type of Change selects Bug fix and Compatibility improvements. The Checklist is filled in, with the recording item left unchecked. The description is thorough and mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 88cee5e2-fbf1-48c3-9912-2a9d727d869a
Commits

Reviewing files that changed from the base of the PR and between 387889a and e9018d2.

Files selected for processing: 3

  • app/src/legacy/assets/graphics_driver/extra_libs.tzst
  • app/src/legacy/assets/graphics_driver/wrapper-gamenative.tzst
  • app/src/main/assets/graphics_driver_download.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@utkarshdalal
utkarshdalal marked this pull request as ready for review November 20, 2026 12:39
@utkarshdalal
utkarshdalal merged commit b3b1d6f into master Nov 20, 2026
4 checks passed
@utkarshdalal
utkarshdalal deleted the opengl-4-on-mali-wrapper-and-libgl branch November 20, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant