Skip to content

M3 Pro native OpenGL: multisample color resolves return blank pixels #98

Closed

Description

@chriskearney

On the J516S M3 Pro (T6030/G15S, legacy HAL), native Asahi OpenGL returns transparent black when resolving a 2x or 4x RGBA8 framebuffer into a single-sample texture. Both a red clear and a red fullscreen triangle fail all 5,000 pixels in a 100×50 image. GL reports no error and both framebuffers are complete; no GPU fault occurs.

Chrome 154 reproduces this with default antialiased WebGL. The same page with antialias:false reads [255,0,0,255]. Text rendering is a separate integer-attribute bug fixed by Mesa commit 99d5b9d16e779ad9a0879a71578da0a6536cf006.

Minimal API sequence:

glRenderbufferStorageMultisample(GL_RENDERBUFFER, 4, GL_RGBA8, 100, 50);
// Attach to the read FBO; attach an RGBA8 texture to the draw FBO.
glClearColor(1, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
glBlitFramebuffer(0, 0, 100, 50, 0, 0, 100, 50, GL_COLOR_BUFFER_BIT, GL_NEAREST);
glReadPixels(0, 0, 100, 50, GL_RGBA, GL_UNSIGNED_BYTE, pixels);

Expected: every pixel [255,0,0,255]. Actual: every pixel [0,0,0,0]. Adding a fullscreen red draw before resolve produces the same failure.

Relevant native resolve handling: agx_blit.c, BG/EOT sample handling. Reproduce and repair the sample/store/resolve path while preserving per-sample contents, exact pixel output, legacy profiles and Vulkan. Do not silently drop draws or use browser-specific fallback to label this fixed.

Tested kernel: 7.1.12-2-20261012.16-sep-ARCH; native Mesa source 99d5b9d16e779ad9a0879a71578da0a6536cf006. M1/M2, Honeykrisp and the Air HAL200 profile have not been shown to have this defect.

Confirmed pre-existing: the same four clear/draw × 2x/4x controls fail identically with released native package 26.1.4.nativepro.20261012-2, SHA256 e47a945c0752b2b323502064205eb8992520b5bebebc76a49a5c9c1560ac5973, on the same .16 boot. The glyph correction does not introduce this resolve defect.

Activity

  1. added
    bug
    priority:P2
    status:investigation
    on Oct 13, 2026
  2. chriskearney commented on Oct 13, 2026

    @chriskearney
    Author

    The fix is implemented and tested on J516S/T6030: native Mesa PR #2, source f287f282940ec0c8b0de50db2df1f98d423e84fa.

    All eight clear/draw/depth cases and 22 coverage, flush/reload, partial-rectangle and repeated-resolve checks pass. The original driver fails 18 of the expanded cases. Chrome 154 default four-sample WebGL1/WebGL2 canvases now present correctly; the single-sample control and glyph rendering still pass.

    The normal-prefix delivery package is building. Keeping this issue open until that package is verified and released. No browser fallback or antialiasing disable is needed for the correction.

  3. chriskearney commented on Oct 13, 2026

    @chriskearney
    Author

    Fixed in aurora-2026.10.13.18.

    The M3 Pro native OpenGL package release 8 resolves 2x and 4x color attachments correctly, and keeps individual samples across flushes, reloads and repeated resolves. On a J516S with the release 18 kernel:

    • All 53 multisample and integer pixel cases pass.
    • Chrome's default antialiased WebGL1 and WebGL2 canvases present correctly.
    • The desktop runs on native GL from a cold boot, and GL and Vulkan readback pass, with no omarchy-m-test regressions.

    To update, run the one-liner and reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P2status:investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions