Repository navigation
OpenGL 4.0 on Mali: wrapper-gamenative 20261120 and extra_libs 20261120 - #2481
Conversation
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.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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.
wrapper-gamenative-20261120.tzst(wrapper: emulate VK_EXT_depth_clip_enable and expose the EXT name of rasterization order attachment access for GL GameNative/mesa#66): the wrapper emulatesVK_EXT_depth_clip_enablefor OpenGL on drivers that have depth clamp but not the extension. That was the one missing requirement for OpenGL 3.2. It also reports rasterization order attachment access under its EXT name on drivers that only list the ARM name.extra_libs-20261120.tzst(zink: GL 3.3 on Mali without dualSrcBlend or packed 10/10/10/2 vertex formats GameNative/mesa#67): the guest libGL converts the packed 10/10/10/2 vertex formats a driver lacks in the vertex shader, and does dual-source blending in the fragment shader on drivers withoutdualSrcBlend. Those were the two missing requirements for OpenGL 3.3. OnlylibGL.so.1.5.0differs fromextra_libs-20261104.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:
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:
Recording
N/A. Two component archives changed. The results are in the two mesa pull requests.
Type of Change
Checklist
#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.CONTRIBUTING.md.Summary by CodeRabbit