Galaxy Shell / docs
Docs / Decisões e planos

Plan: removing GLES from the compositor

openspec/changes/archive/2026-11-10-gles-removal-plan/design.md · Editar no GitHub ↗

Esta página ainda não tem tradução em português. O conteúdo abaixo está em inglês.

Este documento registra decisões, planejamento ou evidências de uma etapa do projeto. Não implica que todos os itens estejam implementados ou validados na versão atual.

Nesta página

Plan: removing GLES from the compositor

Doc status: history. Completed: the 11 steps of this plan are on main since 2026-11-12 (steps 1 to 5 on 2026-11-10, 6 to 10 on 2026-11-11, 11 on 2026-11-12; see the Step results). No build of the compositor has GLES; the current contract is in docs/smithay-development.md, openspec/specs/project-loading/spec.md and docs/nested-qa.md. Not verified: a physical login with the GLES-free build has not been done by the owner (answer G waived the wait for steps 1 and 2, and the coordinating session relayed the same for the later steps). Checked 2026-11-12.

Status: completed on 2026-11-12, all 11 steps on main (Step 1 to Step 11 results). Written 2026-11-10 against origin/main 561e25c9, revised the same day and re-read on 2026-11-10 against origin/main 4f3abfe0 (the default switch: 2b23323c, 91c98100, 8901d4df, 4f3abfe0), with the owner's answers to its open questions and to the points that the first revision brought back (section Owner decisions). The sections below are the plan as written and the record of each step; commands and file names in them describe the code of their date. It does not authorize restarting the compositor, host or core in use.

Scope and owner decisions

The compositor has two renderers: GlesRenderer of Smithay (with GLSL passes and, over it, the GLES to Vulkan bridge) and WgpuRenderer of native/wgpu-renderer. The wgpu renderer drew everything of the product by phase 3 step 6 of wgpu-renderer-plan.md and is being made the default by another session. Decisions of the owner on 2026-11-10 that bind this plan:

  • The default switch is direct.
  • "Não vamos testar GLES mais, vamos se preocupar somente com o wgpu".
  • "Remover tudo do GLES" (the bridge and the GLES renderer), after a physical login with wgpu that the owner confirms.

This document is the inventory and the order of the removal. It edits no code. The phase 4 line of the renderer plan ("the GLES to Vulkan transport and the wgpu_* adapters are removed; whether GlesRenderer stays as a fallback is the owner's call") is answered by the owner's quote above. The owner's answers of the same day to the first open questions are in Owner decisions, and they add two prerequisites: a nested window on wgpu and wgpu on OpenGL.

Gate. Every step that deletes GLES code or a GLES option starts only after (a) wgpu is the default renderer on main and (b) the owner confirms a physical login with it. The prerequisite additions (nested window, wgpu on OpenGL, the API choice; steps 3 to 5) delete nothing and start once the default switch is published, before the login. For steps 1 and 2 the owner waived the wait for the login on 2026-11-10 (Owner decisions, answer G): they are published as soon as they are ready. On 2026-11-11 the owner waived it for step 6 too ("Publicar agora", answer G); (b) still gates steps 7 to 11, and the coordinating session asks again before them. Condition (b) was met for Vulkan on 2026-11-11: the owner logged in at 02:33 with the checkout at 29115e32 and answered "Funcionou"; the login log has "wgpu Vulkan renderer, implicit modifiers, self-test passed" and no recovery start. The first attempts of that night (02:16, 02:17) failed after the compositor had started, in the normal start and in the recovery start, because the dispatch folder had no electron_runtime.py (openspec/specs/project-loading/spec.md); that was not the renderer. Not covered by this login: --gpu-api gl forced (GL scanout has still never run), the recovery start, and the unlock with the password.

Inventory

All counts come from origin/main 4f3abfe0 (the first version of this plan counted 561e25c9, before the default switch), run in native/smithay unless said otherwise. "Files" are .rs files. Lines are wc -l of whole files, so they overstate the lines that are GLES; the occurrence counts are the narrower measure. Search for the term, not for the word "gles" alone: the plain word also hits comments and names such as "negligible" for egl.

Commands used:

find src -name '*.rs' | wc -l                                  # 129 files, 111,370 lines
find src -name '*.rs' ! -name '*_tests.rs' | wc -l             # 83 non-test, 46 test files
grep -rlE 'Gles[A-Z]|EGL[A-Z]' src --include=*.rs              # 57 files name Gles or EGL types
grep -rE  'Gles[A-Z]|EGL[A-Z]|egl::|gles::' src --include=*.rs # 710 lines in all: 551 outside *_tests.rs, 159 inside
grep -rcE 'cfg\(feature' src | ...                             # 262 feature gates in 33 files
find src -name '*.frag'; find effects themes -name '*.frag'    # 7 plus 9 GLSL files
cd ../wgpu-bridge/src && grep -cE 'Gles[A-Z]|EGL[A-Z]|egl::|gles::' *.rs

Totals:

Measure Plan of 2026-11-09 At 4f3abfe0
Compositor sources that name GLES types, outside *_tests.rs 32 of 69 40 of 83 (30,532 lines in those files)
Test files that name them not counted 17 of 46 (22,629 lines)
.frag files in src/ 7 7 (458 lines), each with a .wgsl twin
.frag files in effects/ and themes/ not counted 9, all with a .wgsl twin (the three close-* packs got theirs in the default switch)

The 40 grew from 32 because the wgpu_* adapters name GlesTexture, the type that the bridge hands back. Part of the 551 lines sits in inline #[cfg(test)] modules of non-test files. The first version of this plan reported "701 lines outside *_tests.rs"; that was the count of all lines (its filter did not apply), of which about 157 were in test files. The comparable figures are 710 in all, 551 and 159.

1. Choice of the renderer

File What
src/renderer_choice.rs (67 lines) Renderer::{Gles, Wgpu}, parse, startup_default(nested) (wgpu for --session and --headless in a wgpu-renderer build, GLES for the nested window and for a build without the feature), WGPU_SKIPPED_CAPABILITIES (already empty)
src/effects_backend.rs (37) Backend::{Gles, Wgpu}, resolve, enabled, name
src/main.rs (551) --renderer, --effects-backend, AGENT_NATIVE_RENDERER (read at lines 121 and 168; gles_by_default at 222, Options::parse_with at 257 to 310), the Renderer::Gles arm of the startup match (193), the nested refusal of --renderer wgpu (307), the option tests, 18 or more cfg(feature) gates
src/state.rs effects_backend, renderer fields; 10 gated fields of the wgpu plain scene
src/desktop/snapshot.rs:345,432,438 windowEffectSlots (now ["window-close"] on both renderers), effectsBackend, renderer in the snapshot

2. Backends

File GLES content Substitute today
src/drm.rs (1,077) Backend enum with a GlesRenderer arm (3 refs), EGLDisplay/EGLDevice/EGLContext (10 lines), arm Renderer::Gles at line 837 Renderer::Wgpu arms at 862 and 880 (wgpu_output::open_renderer, GBM and Vulkan)
src/headless.rs (98) GlesRenderer, GlesRenderbuffer, EGLDevice: the offscreen nested frame wgpu_output::init_headless (src/wgpu_output.rs:301)
src/winit.rs (589) Smithay's winit backend, bound to an EGL surface and GlesRenderer (13 lines); also holds NestedPipeline and NestedSurface, which headless reuses none, see "No wgpu substitute"
src/dmabuf.rs (547), src/dmabuf_tests.rs (789) EGL as the source of linux-dmabuf formats and the device wgpu_output::announce (src/wgpu_output.rs:95)
src/outputs.rs, src/synthetic_input.rs one reference each none needed

3. GLES effect elements (the GLSL path, with the types they draw)

These are the files that compile GLSL, hold GlesTexProgram/GlesPixelProgram or GlesFrame, and exist twice (once here, once as a plain_* or wgpu_* file).

GLES file Lines wgpu counterpart
src/window_finish.rs + window_finish.frag (GLES half and .frag removed at step 7) 944 wgpu_finish.rs, window_finish.wgsl
src/glass.rs + glass.frag (GLES pipeline and .frag removed at step 7) 1,248 plain_glass.rs, wgpu_glass.rs, glass.wgsl
src/glass_mask.rs + glass_mask.frag + glass_mask_final.frag (GLES pipeline and both .frag removed at step 7) 1,077 wgpu_mask.rs, wgpu_mask_glass.rs, the .wgsl pair
src/canvas_warp.rs + canvas_warp.frag (GLES pipeline and .frag removed at step 7) 1,415 plain_warp.rs, wgpu_warp.rs, canvas_warp.wgsl
src/black_hole.rs + black_hole.frag (GLES flights and .frag removed at step 7) 720 plain_black_hole.rs, wgpu_effects.rs, black_hole.wgsl
src/grabs.rs (outline pass, outline.frag; both removed at step 7) 1,752 wgpu_outline.rs, outline.wgsl
src/workspace_depth.rs, workspace_theme.rs, workspace_web.rs 731, 301, 462 plain_depth.rs, plain_theme.rs, plain_workspace.rs, wgpu_workspace.rs
src/effect_pipeline.rs (F9 and theme passes, 80 refs, the densest file; the GLES passes removed at step 7, a stub stays) 2,279 plain_theme.rs, wgpu_theme_effects.rs
src/scene_passes.rs (GlesFrame, GlesTexProgram) 362 wgpu_scene.rs
src/scene.rs (58 refs, 35 GlesRenderer) 2,677 wgpu_scene.rs (801); most of scene.rs is already generic and stays
src/sharp_zoom.rs (DownscaleCache) 904 generic over the texture; since the switch the plain scene has its own WgpuTexture cache (SharpZoom::plain, drawn in wgpu_scene.rs, parity test wgpu_renderer_sharp_zoom_tests.rs), so only the GlesTexture side goes
src/thumbnail_motion.rs, src/workspace_preview.rs, src/overview_planes.rs 460, 465, 547 generic parts stay; wgpu_output::offscreen_work drives the wgpu side
src/themes.rs, src/theme_requests.rs 1,258, 240 no GLES types; they read GLSL and enforce the "GLSL required" contract (see section 5)

(The inventory above counts 4f3abfe0. Step 7 removed the GLES halves of the rows marked above and the seven .frag of src/; scene.rs, scene_passes.rs, workspace_depth.rs, workspace_theme.rs and sharp_zoom.rs lost their GLES passes and keep the generic parts and a reduced GLES scene, see Step 7 result.)

Together the files of this table that become wgpu-only or disappear are about 12,000 lines (the gles elements sum of the 15 core files plus headless.rs and winit.rs: 12,027 lines, of which the GLES share is smaller because the files also hold generic logic).

3b. Capture and screenshots

src/capture.rs (911) is already generic through CaptureRenderer, with an impl for GlesRenderer (lines 42 to 52) and one for WgpuRenderer (54 to 70); the GLES impl and 13 test lines go. src/screenshot.rs (631) has renderbuffer_side (raw gles::ffi calls, line 53), process_window_capture(GlesRenderer) (365) and process_window_capture_wgpu (398): the first two go, and the wgpu one stays as the only one. The wgpu capture has no rounded corners in the window capture image (renderer plan, phase 2), a known difference that becomes the only behavior.

4. The bridge and its adapters

native/wgpu-bridge is 5,287 lines of Rust plus 17 .wgsl files. It exports GPU buffers through GLES for the GL-bound compositor and reads textures back as GlesTexture. Files that name Gles or EGL types (count of lines): surface.rs 35 (475 lines), output.rs 18 (336), theme_effect.rs 9 (613), context.rs 8 (156), procedural.rs 8, mask_glass.rs 7 (424), workspace.rs 6, input.rs 6, workspace_pair.rs 6, outline.rs 5, workspace_programs.rs 2: 11 files, 3,062 lines. The others (transport.rs 745, dma_sync.rs, effect.rs, finish.rs, format.rs, gaussian.rs, glass.rs, gpu_timing.rs, mask.rs, warp.rs) never name a Gles type; transport.rs and dma_sync.rs mention EGL SYNC_FD only in comments. Its Cargo manifest depends on smithay with renderer_gl.

Callers in the compositor (src/wgpu_*.rs, 3,162 lines in 9 files):

Adapter Called from
wgpu_outline.rs grabs.rs, main.rs
wgpu_mask.rs, wgpu_mask_glass.rs glass_mask.rs, main.rs
wgpu_glass.rs glass.rs, main.rs
wgpu_warp.rs canvas_warp.rs, main.rs
wgpu_finish.rs state.rs, workspace_preview.rs, screenshot.rs, scene.rs, wgpu_theme_effects.rs
wgpu_workspace.rs workspace_depth.rs, scene.rs
wgpu_effects.rs black_hole.rs
wgpu_theme_effects.rs effect_pipeline.rs

All of them are reached only from GLES scene code, so they go with it. Not everything in the bridge is GLES. glass::Params and the shared WGSL are used by the plain scene (src/glass.rs:477, src/workspace_theme.rs:283 include workspace.wgsl and workspace-shadow.wgsl from native/wgpu-bridge/src). Those, plus effect.rs, finish.rs, gaussian.rs, gpu_timing.rs and format.rs, are the survivors: move them into native/wgpu-renderer before deleting the rest (Owner decisions, answer 7: "Mover e apagar").

native/wgpu-renderer itself names no Smithay GLES type. Its wgpu dependency enables the gles backend of wgpu (a different thing: wgpu's own OpenGL backend); only tests use it (wgpu_renderer_tests.rs:804, G1 of the plan).

5. GLSL packs, themes and create_theme

Packs of the repository (none is GLSL only any more):

  • native/smithay/effects/black-hole-close, close-dissolve, close-flip: effect.css, effect.frag and, since the default switch (2b23323c), effect.wgsl (the window-close WGSL ABI v1 of themes.md, drawn by src/plain_close.rs, 227 lines). The window-close slot draws on both renderers and windowEffectSlots is ["window-close"] on both. black_hole_tests.rs loads the packs. black-hole-close also has a WGSL path through the black hole element.
  • elastic has both. The Studio theme (themes/studio) has WGSL twins for effect, shadow, wave, elastic and black-flame.

Contract at 4f3abfe0 (themes.md, sections Manifest, Optional WGSL pass, the window-close slot and Window-close WGSL ABI v1): effect.frag is still required and effect.wgsl optional on disk, but under the default renderer a theme whose enabled pass (F9, workspace transition or window-close) has only GLSL is refused by check, select and reload ("has only GLSL, which --renderer wgpu cannot compile: add ... or use --renderer gles"), and a disabled window-close pass without WGSL is skipped. That is the owner's "Só WGSL", already enforced on the wgpu side; create_theme (web-shell/core/theme-create.js, lines 79, 115, 214, 276 to 281, 321) takes fragment as GLSL ES, writes effect.frag and workspace-transition/*.frag, and its allowlist regex accepts only effect.(css|frag), so it cannot write WGSL at all. The core reader web-shell/core/themes.js (lines 287 to 288, 338, 368) lists settings.json, effect.frag, shadow.frag.

After removal a GLSL pack can never draw. What is left to do is the writing side and the wording, not the refusal:

  • A theme written by create_theme is GLSL only (it cannot write WGSL), so every theme it makes already stops loading under the default renderer. Step 1 makes it write WGSL.
  • The shipped packs (close-*, Studio, elastic) have their WGSL; their .frag stay as the GLES reference until step 7 (they stayed after it, validated and drawn by nothing; see Step 7 result).
  • Decision: WGSL only (Owner decisions, answer 2); step 1 of the plan.

6. Features, scripts, protocol

  • native/smithay/Cargo.toml: features wgpu-effects (the bridge), wgpu-renderer, session. default = []. smithay depends on backend_winit, which enables backend_egl and renderer_gl (Smithay 0.7.0 Cargo.toml: backend_winit = [winit, backend_egl, wayland-client, wayland-cursor, wayland-egl, renderer_gl]). Dropping backend_winit is what removes smithay::backend::renderer::gles from the binary; the bridge's own renderer_gl dependency must go in the same step. gl_generator leaves the build with it.
  • scripts/prepare-project.py: WGPU_FEATURES = ['session','wgpu-effects','wgpu-renderer'] (line 255), FALLBACK_FEATURES = ['session','wgpu-effects'] (258), the retry without wgpu-renderer (lines 272 to 286), --wgpu-effects kept for old callers (344, 356), the source list that hashes native/wgpu-bridge/src and native/wgpu-renderer/src (23, 27). openspec/specs/project-loading/spec.md lines 171 to 181 describe the same.
  • scripts/nested-qa.py: --effects-backend (942), --renderer (945), the refusal at 424 to 431 ("the --visible window is GLES only", and --renderer wgpu with --effects-backend), the run record fields effectsBackend and renderer (458), the --renderer argument passing (507), rendererActive (473, 523), --visible and --nested (409 to 523). Tests: scripts/test/test_nested_qa.py, test_project_session.py:83, test_build_release.py, test_shared_build_cache.py. docs/nested-qa.md lines 207 to 212 and the start --visible text.
  • scripts/register-smithay-session.sh:18 to 22 and the old agent-native-smithay-wgpu-gdm wrapper: it greps AGENT_NATIVE_RENDERER=wgpu to remove a registration that the owner dropped on 2026-11-09. No other script in scripts/ mentions --renderer or --effects-backend (grep of scripts/*.py, *.sh, agent-native-*).
  • Protocol: protocol/control.json has no entry for renderer, effectsBackend or any GLES-specific command or capability (the grep of gles|wgpu|renderer|effectsBackend returned nothing). The two values are top-level keys of the snapshot (snapshot.rs:432, 438), outside the manifest. The one capability that depended on the renderer, windowEffectSlots, is ["window-close"] on both since the switch (snapshot.rs:345); dmabuf still depends on the backend. The recovery start records a field rendererAsked ("gles" for a recovery) in project-session.json (scripts/project-session.py:53) and in supervisor-smithay-recovery.json (scripts/smithay-session.py:249 to 258); the core passes these files through system_context.supervisors without reading the field, and tests read it (test_project_session.py:111, test_smithay_session.py:254). Readers in web-shell/core, web-shell/host and web-shell/ui-src: none (grep). The only reader is scripts/nested-qa.py (state --full) and its docs and tests.
  • Environment: AGENT_NATIVE_RENDERER is read only by main.rs (and the GDM wrapper that a past install may still hold). The default switch adds a recovery variable and an escape file on top of it (section State after the default switch).

7. Parity tests (deleted by decision, see Tests after the parity is deleted)

45 test files; 16 name a GLES type. 140 #[ignore] tests need a GPU (--ignored native_wgpu_). About 67 test functions have gles in the name; the parity suites are:

Suite (file) Lines Compares
wgpu_renderer_tests.rs 1,135 solids, memory formats, crop, transforms, alpha, damage, frame API; and wgpu's GL backend against GLES (G1)
wgpu_renderer_dma_tests.rs, wgpu_renderer_shm_tests.rs, wgpu_dmabuf_tests.rs, dmabuf_tests.rs 1,282, 250, 594, 789 dma-buf and shm import, client format lists, bind
wgpu_renderer_finish_tests.rs, wgpu_renderer_glass_tests.rs, wgpu_renderer_warp_tests.rs, wgpu_renderer_black_hole_tests.rs, wgpu_renderer_workspace_tests.rs 493, 980, 671, 642, 1,260 the plain scene against the GLES scene, step by step
wgpu_scene_tests.rs 772 the plain scene against the GLES scene (presentation clips, glass, workspace switch)
wgpu_effects_tests.rs 4,503 each bridge pass against its GLSL pass (outline, warp, glass, mask, finish, workspace cards, black hole)
wgpu_theme_effects_tests.rs 668 the Studio F9 passes against GLSL; the GLSL-only pack falls back to GLES
glass_mask_tests.rs, glass_mask_gpu_tests.rs, glass_mask_scene_tests.rs 1,248, 364, ~300 the GLES glass mask (analytic reference, scene)

Total about 16,100 lines. The non-parity tests that only use GlesRenderer as a harness (for example session_lock_tests.rs, 22 lines, 6,216 lines in the file; window_grab_tests.rs; sharp_zoom_tests.rs; workspace_preview_tests.rs) are a separate group: they build a compositor, which already runs without a GPU, and only a few lines need a wgpu or a no-render harness.

8. No wgpu substitute today

With the owner's answers (see Owner decisions) the first two items below are no longer "lost features" but prerequisites of the removal; the rest are accepted losses or open.

  • The nested window. --nested and scripts/nested-qa.py start --visible open Smithay's winit window, which is EGL plus GlesRenderer only. There is no wgpu window backend. Prerequisite P1.
  • wgpu on OpenGL. The compositor uses the Vulkan device only. The dma-buf path of wgpu's GL backend (phase 2b) was never started. Prerequisite P2. Until it lands, a machine without a usable Vulkan driver, and a Vulkan self-test failure, have no wgpu path.
  • GLSL themes and the window-close slot (section 5): decided, WGSL only.
  • F9 thumbnails (skipped by wgpu; no product view opens F9), and the rounded corners of window capture (renderer plan, phase 3 step 6). The sharp zoom downscale cache draws in the plain scene since 2b23323c.
  • Recovery of a GPU or driver failure (Recovery section).

State after the default switch (origin/main 4f3abfe0)

The default switch is on main as 2b23323c, 91c98100, 8901d4df and 4f3abfe0. This plan was first inventoried on 561e25c9 and re-read against 4f3abfe0. What the switch changed that this plan depends on:

  • wgpu is the default of --session and --headless in a build with wgpu-renderer; the nested window and a build without the feature composite with GLES. --renderer gles and AGENT_NATIVE_RENDERER=gles select GLES until it is removed (renderer_choice.rs, main.rs) (until step 6, 2026-11-11: both are gone, and a build without the feature is the only GLES left).
  • The recovery start sets AGENT_NATIVE_RENDERER=gles (scripts/project-session.py:95, scripts/smithay-session.py:135) and records rendererAsked: "gles" (see section 6) (until step 6: it now also exports AGENT_NATIVE_GPU_API=gl and records gpuApiAsked: "gl"; the GLES variable stays for the registered recovery release, see Step 6 result).
  • (Until step 6.) The escape file ~/.config/agent-native-os/renderer-gles keeps GLES on the normal login. It is an entry of ROLLBACK_FILES (smithay-session.py:93), beside no-dmabuf: a file under the config directory becomes a compositor flag, and an older known-good binary that lacks the flag ignores it.
  • nested-qa.py runs headless with the default renderer, reports rendererActive and keeps --visible GLES only (lines 424 to 431, 507, 523). Since step 3, --visible opens the wgpu window.
  • --effects-backend alone keeps GLES composition, the only one where its passes draw (main.rs:153 to 158, 303).
  • The three close-* packs have effect.wgsl, the plain scene draws the window-close slot (plain_close.rs), and plain_theme.rs (495 lines) and the sharp zoom cache are in the plain scene.

All of the recovery variable, the escape file, rendererAsked and the --renderer family have to change meaning or leave in the same step as the removal of the options (step 6 below).

Owner decisions (2026-11-10)

Quoted labels are the options the owner marked; the numbers follow the open questions of the first version of this plan.

# Question Answer Effect on the plan
1 Nested window and nested-qa --visible "Portar para wgpu" Not a removal: a window backend on the wgpu renderer becomes prerequisite P1
2 GLSL themes and create_theme "Só WGSL" A GLSL-only theme is refused with a clear message; create_theme requires WGSL (step 1)
3 A machine without Vulkan "Ligar o wgpu sobre OpenGL" Phase 2b of the renderer plan is prerequisite P2; the earlier recommendation to drop wgpu's GL backend is reversed
4 Recovery release "Recuperação também wgpu" The recovery is the last good wgpu release, not a frozen GLES copy
5 References of the parity tests "Apagar a paridade" No frozen images; the old step 0 is gone
6 --renderer, --effects-backend, AGENT_NATIVE_RENDERER "Remover de vez" No accept-and-ignore period; the escape file and the recovery variable change in the same step
7 Crate of the bridge "Mover e apagar" What survives goes into native/wgpu-renderer; native/wgpu-bridge is deleted
8 When to delete After a physical login with wgpu, confirmed by the owner (decided before) Gate of every removal step, except steps 1, 2 and 6 (answer G)

Answers to the points that the first revision brought back (the owner, then the coordinating session where marked):

# Point Answer Effect on the plan
A A selector for the GPU API "Seletor --gpu-api" --gpu-api auto|vulkan|gl, with an environment variable and an escape file; auto tries Vulkan and falls to OpenGL; the recovery asks for gl; the file replaces renderer-gles. Step 5 and step 6
B The recovery until step 6 As recommended (coordination decision, consistent with the owner's answers) The GLES request of the default switch stays until the step that removes the options
C A reference for the OpenGL path "Comparar Vulkan com GL" A small set of GPU tests draws the same scenes on both wgpu APIs and compares them; it is not parity with GLES. Step 4 and Tests after the parity is deleted
D When steps 3, 4 and 5 may start After the default switch is published, before the physical login (owner's reading as relayed) The login gates only the steps that delete, and it must cover Vulkan and GL forced
E The window-close slot and the three close-* packs Resolved: the session of the default switch ports the three packs to WGSL in this delivery (a separate commit after 2b23323c) Done on main at 4f3abfe0: the packs have effect.wgsl. Step 1 needs no work on them
F A window on a parent without dmabuf No window in that case, with a clear message; headless and capture are the alternative (coordination decision) P1 risk 1 and step 3
G When steps 1 and 2 are published "Assim que prontas" (the coordinating session had offered "Depois do login"). The owner knows that the session in use still runs the compositor from before the default switch and that the recovery release 20261110-6566fa54a959 keeps the whole of GLES Steps 1 and 2 do not wait for the physical login with wgpu. Step 6: asked again on 2026-11-11, the owner answered "Publicar agora", knowing that it removes the way back to GLES at a normal login before any login with wgpu, and that gpu-api-gl and the recovery release stay. The login still gates steps 7 to 11
H The recovery start of step 6 (coordination decision of 2026-11-11, not the owner's) The recovery start exports both AGENT_NATIVE_GPU_API=gl and AGENT_NATIVE_RENDERER=gles The owner has not yet done a physical login with the default wgpu renderer, and the registered recovery release releases/20261110-6566fa54a959 still has GLES and uses it only with AGENT_NATIVE_RENDERER=gles. A compositor of step 6 or later ignores that variable silently and takes the GPU API; an older release with GLES takes the first and ignores the second. The GLES export is removed only when the registered recovery release has no GLES. Narrows answer B: the GLES request stays, beside the new one Status of the export: kept (a test of scripts/test/test_smithay_session.py compares this sentence with recovery_environment, so the export cannot go without this row). Accepted risk, from the owner's answer 4 ("Recuperação também wgpu"): once scripts/install.sh renews the recovery release from a commit of step 6 or later, that release has no reachable GLES, the GLES variable does nothing for it, and the recovery depends on wgpu on OpenGL with no further rung; only an older release kept on disk or another shell on GDM is left below it. Checklist of the physical login, before install.sh renews the recovery: a login on the default API, a login with the file gpu-api-gl (OpenGL scanout, never run), and a recovery start seen on the screen

Prerequisites that the removal depends on

Two additions come before every removal that needs them (a third, the API choice, belongs to P2). They remove nothing, so they start once the default switch is published and run in parallel (different files), before the owner's login.

P1: a window backend for the nested run on the wgpu renderer

What Smithay 0.7.0 allows. The only nested window it ships is smithay::backend::winit, and it cannot carry another renderer: init, init_from_attributes and init_from_attributes_with_gl_attr are bounded by R: From<GlesRenderer> + Bind<EGLSurface>, build an EGLDisplay, an EGLContext and an EGLSurface on the window and create the GlesRenderer themselves (src/backend/winit/mod.rs, lines 63 to 182 of the crate). The module is gated by the backend_winit feature, which also enables renderer_gl, so merely keeping the feature keeps Smithay's GLES module in the binary. Its input conversion (winit/input.rs, 414 lines) lives in the same gated module.

Options:

  • A. Own window on the winit crate plus a wgpu::Surface (recommended). Add winit 0.30.13 as a direct dependency (the same version Smithay already locks), create the window and the wgpu::Surface from its raw handles, and present the output texture the compositor already draws offscreen in headless mode (wgpu_output::init_headless) by a copy into the swapchain image on each frame. The compositor does not need to know whether the surface is Vulkan or GL: wgpu picks that. Input uses the existing typed path of src/synthetic_input.rs (457 lines, Compositor::test_input, which NestedPipeline::new enables), fed with translated winit events, so no new InputBackend implementation is needed. Size: a new src/wgpu_window.rs of roughly 700 to 1,000 lines (window and event loop in calloop, resize and scale factor, close, key and pointer translation, present, frame pacing), plus NestedPipeline and NestedSurface moving out of winit.rs (589 lines, deleted), plus nested-qa.py (--visible, the second monitor move, the refusal at lines 425 to 427). Estimate, not measured.
  • B. Wayland client directly (wayland-client, already a dev-dependency, plus xdg-shell and a seat with xkb). More code than A for the same window; no advantage here. Not recommended.
  • C. No window; present through the nested compositor's own output. Not a window; excluded by the owner's answer.

Risks of A:

  1. The wgpu device must be the one that renders (WgpuRenderer::for_render_node) and must support presenting to the surface; check surface.get_capabilities(adapter) and refuse with a clear message. Decision F: if the parent offers no presentable surface (no linux-dmabuf on a Vulkan parent), the run opens no window and says why in a clear message; the headless run and capture are the alternative, and there is no shared-memory present path.
  2. winit 0.30 Window and wgpu 30 create_surface need raw-window-handle 0.6, which both already use (present in the registry); the X11 parent works through the same handle type, the GL backend needs libwayland-egl. Not verified here.
  3. The window run is the one QA path that the owner watches (and asked to move to the second monitor on 2026-11-01); its send_to_output step must be kept or the owner's request is dropped.
  4. A frame copy into the swapchain adds a blit to a path that has none today; acceptable for a QA window, but never in the product path.
  5. Verification is visual and needs a parent display, so it needs the user or a headless parent; a synthetic check can only test the compile gate, the offscreen frame and that the window opens and closes in the nested session.

Doing P1 is what lets winit.rs, the GLES headless.rs arm and --renderer be deleted, because the nested window is the last user of the GLES backend selection.

P2: wgpu on OpenGL (phase 2b)

What it is: wgpu-renderer-plan.md, "Phase 2b, the GL backend dma-buf path". On a device without Vulkan, or one whose self-test fails, WgpuRenderer opens wgpu's OpenGL backend on an EGL context, imports client dma-bufs as EGLImages wrapped with texture_from_raw, renders into EGLImage-backed renderbuffers (the GBM scanout buffers), and fences with EGL_ANDROID_native_fence_sync. Probe G1 passed on this machine (OpenGL ES 3.2, radeonsi, new_external, about 6 ms) and the GL backend already runs the plain renderer cases of wgpu_renderer_tests.rs (case G1, native_wgpu_renderer_gl_backend_matches_gles); the dma-buf import, bind and fence were never written. dma.rs of the Vulkan path is 1,363 lines and selftest.rs 651; a GL twin is the same order of size (assume 1,500 to 2,000 lines plus tests; estimate). The Vulkan device of this machine (RADV on an RX 550, implicit modifiers) lets a forced GL run be tested here; a machine with no Vulkan at all cannot be tested here.

What of EGL and GL stays in the binary:

  • Stays: Smithay backend_egl (EGLDisplay, EGLDevice, EGLContext, create_image_from_dmabuf, format queries and fence helpers), without renderer_gl; wgpu's gles feature with wgpu-hal's GL backend and its glow and khronos-egl dependencies (they are already in both lockfiles); the runtime libEGL and the driver's GLES. gl_generator stays because backend_egl uses it. dmabuf.rs keeps its EGL role as a format source, trimmed.
  • Goes: smithay::backend::renderer::gles (GlesRenderer, GlesTexture, GlesFrame, GlesTexProgram, GlesPixelProgram, GlesRenderbuffer), the renderer_gl feature, the bridge (and its GLES to Vulkan transport), every .frag and the GLSL compile code of the compositor (wgpu-hal's GL backend still translates WGSL to GLSL internally; that GLSL is generated, not authored), the winit EGL surface.
  • Likely simplification, unverified: once no Smithay GLES renderer shares the EGL context, the state reset boundary of probe G4 (Smithay and wgpu on one context) should not be needed.

The choice between Vulkan and GL: P2 gives WgpuRenderer a startup choice, auto by default (Vulkan, and GL only when no Vulkan device exists or the Vulkan self-test fails, as the plan's phase 2b says), and a typed selector that the recovery needs (step 5 below). Decision A: --gpu-api auto|vulkan|gl, with an environment variable AGENT_NATIVE_GPU_API and an escape file ~/.config/agent-native-os/gpu-api-gl in the ROLLBACK_FILES pattern. It selects the GPU API, not the renderer, so it does not reuse a name that answer 6 removed; the file replaces renderer-gles, and the recovery asks for gl.

Risks: the GL backend needs every call on a thread where its context is current (wgpu-renderer README); fence and sync semantics differ from SYNC_FD (probe L8 noted that the GL backend needs its context current to poll); the bounds were measured per driver (radeonsi gave its own); no performance number exists for it; the physical scanout path on GL (GBM buffer to EGLImage to renderbuffer, then page flip) has never run.

Plan

Principle: do the additions first (they remove nothing and start once the default switch is published), then the removals that need nothing new, then the removals that need P1 and P2, and the Cargo and docs last. Each step is one commit or a short series, published directly to main by the publishing session, one at a time as AGENTS.md says. The rollback of every step is git revert of its commits; none touches the session in use, the installed routing or the profile. The owner's physical login (decision 8, which must cover Vulkan and GL forced) gates every step that deletes GLES code or a GLES option: steps 1 and 2 are the ones that do not wait for P1 and P2, and steps 3 to 5 delete nothing and start after the default switch is published, before the login (decision D).

 after the switch is published, in parallel
                       3 nested window (P1)    4 GL dma-buf (P2a) -> 5 API choice (P2b)
 after the login       1 WGSL-only themes      2 bridge and --effects-backend
 after 3 and 5         6 recovery + options    7 GLES elements   8 GLES backends   9 tests   10 Cargo   11 docs

Gates for every step (from AGENTS.md, in a worktree, with the preparer):

python3 scripts/prepare-project.py --root "$PWD" --dependencies-only
( cd web-shell && npm run format:check && npm run check && npm test )
python3 -m unittest discover -s scripts/test         # without AGENT_NATIVE_* and display variables
python3 scripts/prepare-project.py --root "$PWD" --cargo fmt --check
python3 scripts/prepare-project.py --root "$PWD" --cargo test --locked --features <current>
python3 scripts/prepare-project.py --root "$PWD" --cargo clippy --locked --features <current> --all-targets -- -D warnings
python3 scripts/prepare-project.py --root "$PWD" --cargo check --locked --features <current>,wgpu-renderer --tests

(History: the last line is the gate of steps 1 to 10. Step 11 removed the wgpu-renderer feature and replaced the line with --cargo clippy --locked --all-targets -- -D warnings, the build without session; AGENTS.md has the current gates.)

<current> is the feature set of that step. GPU tests run with -- --ignored native_wgpu_ on the render node. Nested QA is scripts/nested-qa.py start (headless) and, after step 3, start --visible on the wgpu window.

Steps that do not wait for P1 and P2 (after the owner's login)

Step 1: WGSL-only themes and create_theme.

  • Files: web-shell/core/theme-create.js (the fragment field, lines 79, 115, 214, 276 to 281, the allowlist regex at 321), web-shell/core/themes.js (the effect.frag and shadow.frag reads at 338 and 368), native/smithay/src/themes.rs, effects.rs, openspec/specs/themes/spec.md, docs/window-effect-slots.md.
  • State at 4f3abfe0: the refusal of a GLSL-only enabled pass already exists on the wgpu side, and the close-* packs have their WGSL (decision E), so no pack work is left. What remains: create_theme takes WGSL fields in place of fragment, refuses GLSL, and its allowlist accepts effect.wgsl and shadow.wgsl (today it cannot write WGSL, so every theme it makes is refused under the default renderer); effect.wgsl becomes the required file on disk and effect.frag stops being read; the refusal message no longer says "or use --renderer gles" (that text goes with step 6, since --renderer goes then).
  • Before: the default switch is on main (it is, at 4f3abfe0) and the owner's login. Verify: npm test (theme-create, themes), the Rust theme tests, a headless run that selects Studio with its three F9 passes and the workspace transition (scripts/smithay-effects.py select studio). Rollback: revert. User-visible: a theme that only has GLSL is refused by the clear message (as it already is under the default renderer), and create_theme output changes from GLSL to WGSL.

Step 1 result (2026-11-10). Landed as code; not run on a physical login.

  • create_theme writes WGSL. effects[] items take wgsl in place of fragment (workspaceTransition.effect and .shadow keep their names and are WGSL). build() writes effects/<id>/effect.css|effect.wgsl and workspace-transition/settings.json|effect.wgsl|shadow.wgsl, never a .frag. GLSL is refused in the core before the compositor sees it: a fragment key, or a text with #version, gl_FragColor, a //_DEFINES_ line, void main or precision mediump|highp|lowp, with a message that says create_theme takes WGSL and no longer accepts GLSL (openspec/specs/themes/spec.md); a WGSL text must also declare @vertex and @fragment (a light check, the compositor compiles for real in theme_check). The tool description gives the ABI in short. The approval card and the authority are unchanged: the tool only proposes, and the user approves in the protected host.
  • Old themes. MANAGED_FILE still accepts the .frag names so that readManagedTheme can read a theme that an older create_theme wrote, replace it, and let the checkpoint restore it byte for byte; new output never has them. Such a theme cannot be selected under the default renderer (it has no WGSL).
  • core/themes.js (the reader of import_theme_style) requires effect.wgsl for an effect and effect.wgsl plus shadow.wgsl for the workspace transition, and stops reading .frag. A GLSL-only pack fails with "Theme <id>: <path>/effect.wgsl is missing; GLSL-only packs are no longer loaded (openspec/specs/themes/spec.md)". A disabled window-close pass without WGSL is skipped, as the compositor does.
  • Compositor loaders (effects.rs, workspace_theme.rs, themes.rs). Where the step text says "effect.wgsl becomes the required file on disk and effect.frag stops being read", the result differs: effect.frag, and effect.frag plus shadow.frag of the workspace transition, are now optional on disk (Option<String>), with the same checks when present, and they are still read, as the source of --renderer gles, because the GLES scene still compiles package.fragment until step 7. A pack with neither shader file is refused naming the pack directory and effect.wgsl; a workspace pair is both files or none. The aggregate limit counts every file present.
  • Refusals. Under the default renderer an enabled pass without WGSL is refused as before and the message now names the pack and the file (Effect <id> (<path>/effect.frag) has only GLSL ... add <path>/effect.wgsl, and the same for the workspace transition with its directory); it still says "or use --renderer gles", which goes in step 6. Under GLES composition a pass with only WGSL is refused by check, select and reload (Effect <id> (<path>/effect.wgsl) has only WGSL, which --renderer gles cannot compile: add <path>/effect.frag (openspec/specs/themes/spec.md) or use the default renderer, and the workspace and window-close forms), and the current chain stays; a disabled window-close pass without GLSL is skipped there too.
  • Review fixes (the commit after step 1). The GLSL check of create_theme looks outside comments and names the marker it found (a WGSL comment such as "ported from void main" was refused before), the entry point check too; core/themes.js marks the missing WGSL error with the code THEME_MISSING_WGSL (MISSING_WGSL), and the skip of a disabled window-close pass follows the code, not the text; a test covers the size limit of workspaceTransition.effect and .shadow.
  • Not done here (later steps): the shipped .frag files, the GLES scene, the bridge, --renderer and --effects-backend are untouched.
  • Verification (2026-11-10, RX 550, Mesa 26.0.8). Gates on the commit: web format:check, check, npm test 1609 pass and 5 skipped; Python 267; fmt --check; test 926 (session) and 963 (session,wgpu-effects,wgpu-renderer); Clippy on both sets; the wgpu check; 13 GPU tests of the theme paths (the egl_theme_*, the wgpu_theme_effects_tests, the window-close and theme request tests) on one thread. Headless nested runs (media in ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-gles-steps-1-2/, local only), each with a theme folder written by the new normalizeThemeInput(...).build and installTheme (one F9 pass, the workspace pair, a palette; no .frag): on Vulkan and on --gpu-api gl, check and select accept it, wgslCompiled lists the pass, and a capture during a workspace switch shows the themed cards, blur and shadow; a GLSL-only folder is refused there with the pack and the file in the message; with --renderer gles Studio selects and draws its transition, and the WGSL-only theme is refused with the message above while Studio stays active (active-with-error). No warning or error line in the compositor logs.
  • The recovery release against a WGSL-only theme. The registered recovery releases/20261110-6566fa54a959 (GLES asked, as the recovery start does) ran nested with its own nested-qa.py: check and select of the WGSL-only theme fail with "effect.frag: No such file or directory", the effect state is error with no theme, and the shell, the windows and a capture are as without a theme. So an old release shows the plain look, as the plan expected.
  • Without proof: the approval card with a WGSL proposal in a real session (the HTTP and unit tests cover the flow; the nested runs wrote the folder through the builder, not through an agent turn); a start with a WGSL-only theme already persisted as the active theme in active-theme.json, when the login falls to --renderer gles or to the old recovery release: the nested runs covered only check and select in a running compositor, on both. By the code, not by a run, the GLES start of this tree keeps the load error and starts with no theme (EffectPipeline::new in effect_pipeline.rs: a failed load_selected sets last_error and leaves active empty); the start path of the old release was not traced; the F9 pass drawing (no product view opens F9; it compiles); a physical login.

Step 2: remove the effect bridge and --effects-backend; move the survivors.

  • Files: delete src/wgpu_{outline,mask,mask_glass,glass,warp,finish,workspace,effects,theme_effects}.rs (3,162 lines) and their GPU tests (wgpu_effects_tests.rs, wgpu_theme_effects_tests.rs, glass_mask_gpu_tests.rs, the bridge part of wgpu_dmabuf_tests.rs); strip the bridge callers in glass.rs, glass_mask.rs, canvas_warp.rs, black_hole.rs, grabs.rs, workspace_depth.rs, workspace_theme.rs, effect_pipeline.rs, scene.rs, state.rs, screenshot.rs, workspace_preview.rs, main.rs; delete src/effects_backend.rs, the --effects-backend option, the effectsBackend snapshot key and the nested-qa.py option with its run field; remove the wgpu-effects feature. Decision 7: move what survives (the WGSL of workspace.wgsl, workspace-shadow.wgsl, glass::Params, effect.rs, finish.rs, gaussian.rs, gpu_timing.rs, format.rs) into native/wgpu-renderer, then delete native/wgpu-bridge (3,062 lines in 11 files that name GLES, 5,287 lines in all).
  • Before: step 1 (the WGSL theme contract, so no pack needs the GLSL path). Note that --effects-backend alone keeps GLES composition since the switch (main.rs:303), so its removal also removes that GLES entry. Cargo: WGPU_FEATURES in prepare-project.py becomes ['session','wgpu-renderer'], FALLBACK_FEATURES goes with its retry in step 10.
  • Effect: the GLES scene stops drawing the effects that the bridge drew, so the one GLES run that is left, the --visible window, loses them until step 3; it is a QA aid and the owner said not to test GLES.
  • Verify: gates with session,wgpu-renderer; the wgpu-only tests of the renderer (below); headless nested QA with Studio, a glass window and a workspace switch. Rollback: revert (split by adapter if the review is too big: outline and mask first, then glass, warp, finish, workspace, theme effects, black hole last).

Step 2 result (2026-11-10). Landed as code; not run on a physical login. The GLES renderer and the GLES scene stay: --renderer gles still builds, starts and draws its GLSL passes, as a build without wgpu-effects did.

  • Deleted. native/wgpu-bridge (41 files, 6,215 lines, of which 296 moved); the nine adapters src/wgpu_{outline,mask,mask_glass,glass,warp,finish,workspace,effects,theme_effects}.rs (3,162 lines); wgpu_effects_tests.rs, wgpu_theme_effects_tests.rs, glass_mask_gpu_tests.rs and wgpu_dmabuf_tests.rs (6,129 lines; the last one was only a bridge test, the finish of client dma-buf windows against GLES, so the whole file went and no part of it was kept); src/effects_backend.rs; the --effects-backend option (now a usage error, no accept-and-ignore), its help text and tests; the effects_backend field of Compositor and the effectsBackend key of the snapshot (protocol/control.json never listed them); the wgpu-effects feature and the galaxy-wgpu-bridge dependency (Cargo.lock lost only that package); the 226 wgpu-effects gates in 17 files (items under the feature gone, not(feature) items kept and un-gated). What became dead went too: gpu_enabled, gpu_drawn, gles_dirty, gpu_params, maintain_gpu, retire_gpu, the retire, live and from fields of the black-hole bookkeeping, studio_wgsl, programs and compile_gpu of workspace_theme.rs, the Wgpu arms of the glass and mask pixels, the texture argument of TextureSource::new, the gpu_enabled argument of Outline::scene_elements and the bool of EffectPipeline::new. The GLES status JSON keeps its keys with the values a GLES build already reported (wgslCompiled false or empty, overviewF9.backend gles).
  • Moved. Only seven -core.wgsl files had a user in the plain scene: glass-core, mask-core, mask-glass-core, warp-core, finish-core, outline-core and black-hole-core now live in native/wgpu-renderer/src/effects/ (git mv; the include_str! paths and the comments in plain_*.rs, scene_passes.rs, the .wgsl headers and dma.rs follow).
  • Differs from the step text. The step lists workspace.wgsl, workspace-shadow.wgsl, glass::Params, effect.rs, finish.rs, gaussian.rs, gpu_timing.rs and format.rs as survivors. Measured: the two workspace files were read only by the test distributed_wgsl_pair_matches_the_compared_fixed_port, which compared them with the Studio copies (the Studio pair is the source), so the test and the files are deleted, not moved; the Rust modules and glass::Params had no caller once the adapters went (the plain scene uses no Rust item of the bridge), so they were not moved and stay in Git history. FALLBACK_FEATURES of scripts/prepare-project.py became ['session'] here instead of in step 10, because it could not keep naming a feature that no longer exists: WGPU_FEATURES = ['session', 'wgpu-renderer'], the retry without the renderer and its warning are unchanged in behavior, native/wgpu-bridge left the source digest, and the --wgpu-effects flag and the wgpu_effects parameter are gone (no script, installer or workflow passed them). nested-qa.py lost --effects-backend, its refusal and the effectsBackend run field.
  • Not foreseen by the plan: the two probes of experiments/. experiments/portability-probe and experiments/wgpu-renderer-probe depend on native/wgpu-bridge by path (their Cargo.toml and Cargo.lock; five .rs files use galaxy_wgpu_bridge), and experiments/portability-probe/benchmark-smithay.py drives --effects-backend. With the bridge gone they no longer build or run. Decision of the coordinating session, not of the owner (2026-11-10): keep both as history, delete nothing of them, add no stub of the bridge, leave their manifests and lockfiles pointing at the path that no longer exists, and say at the top of each README that they build only up to d785cce8. Checked: no Cargo workspace, no gate, no CI workflow, no hook and no entry of the source digest of scripts/prepare-project.py names them; openspec/changes/archive/2026-11-07-wgpu-benchmark/design.md, which tells how to run the benchmark, is marked history.
  • Tests. The comparisons of the bridge with GLSL went with the adapters (decision 5). The tests that compare the plain scene with the GLES scene stayed and compile on session,wgpu-renderer; the 271-line native_wgpu_workspace_theme_reload_is_atomic_and_pins_programs of effect_pipeline.rs (a bridge test) and the workspace-pair test were deleted; a test of the option parser now asserts that --effects-backend is a usage error, and so does one of nested-qa.py.
  • Coverage lost. The GPU tests deleted with the bridge covered only bridge code, but two of them have no twin left for the same behavior on the wgpu scene. native_wgpu_workspace_theme_reload_is_atomic_and_pins_programs (effect_pipeline.rs, 271 lines) proved, for the bridge under GLES composition, that a reload with a broken workspace WGSL pair keeps the running theme and that a transition in flight keeps the programs it started with. What is left: on the wgpu scene, native_wgpu_renderer_theme_requests_compile_wgsl_only covers a refused check and a refused select of a workspace pair that does not compile (runtime and selection kept), and native_wgpu_renderer_theme_requests_compile_a_window_close_pass covers a refused reload for a window-close pass; under GLES, egl_workspace_theme_reload_is_atomic_and_pins_the_current_flight still covers the GLSL pair. At the time of step 2 no remaining test covered a reload of the workspace transition on the wgpu scene, nor that a slide in flight there keeps its pipelines across a reload. Closed on 2026-11-11 by native_wgpu_renderer_workspace_theme_reload_is_atomic_and_pins_the_current_flight and its _on_gl twin (wgpu_renderer_workspace_tests.rs), which mirror the GLES test on the Vulkan and on the OpenGL renderer: a reload of a broken effect.wgsl, shadow.wgsl or settings.json is refused and keeps the theme, the settings, the persisted selection and the pixels; a good reload applies; a slide in flight keeps its settings and passes across a reload and across the transition being turned off (pixel-identical to a control flight), and the next slide takes the new theme. Both passed on the RX 550 without a change to product code. It drives the slide with hold_for_test progress, like the other slide tests, not a real swipe. The other deleted suites (wgpu_effects_tests.rs, wgpu_theme_effects_tests.rs, glass_mask_gpu_tests.rs, wgpu_dmabuf_tests.rs) compared bridge passes with GLSL and have no wgpu-scene meaning; with them went the only automated check of the shared -core.wgsl sources against the GLSL passes other than the plain scene against GLES scene tests, which stay until step 7.
  • Status keys. Checked against plain_theme.rs: the GLES status fills the same overviewF9 keys as the plain scene (backend, wgslPackages, wgslCompiled, wgpuReady, chains, drawn, fallbacks, error), with backend "gles", wgslCompiled empty and wgpuReady false, and the same wgslPackage and wgslCompiled keys of the workspace transition, the last one false.
  • Measured. 110 files changed, 226 insertions and 17,095 deletions against step 1 (git diff --numstat HEAD after git add -A -N).
  • Verification (2026-11-10 and 11, RX 550, Mesa 26.0.8). Gates on the commit: web format:check, check, npm test 1609 pass and 5 skipped; Python 268; fmt --check; test 925 (session, 69 ignored) and 959 (session,wgpu-renderer, 152 ignored); Clippy on both sets; the wgpu check; the renderer crate (fmt, Clippy, 15 tests). GPU tests on one thread, session,wgpu-renderer: native_wgpu_ 83 passed (the same 83 as before, none was behind wgpu-effects; they include the tests of the OpenGL path and the Vulkan against OpenGL scenes); egl_ 53 passed and 7 failed, the same 7 by name that fail on the commit before (56 and 7 there; the 3 fewer are the deleted egl_compare_mask_gpu_*), so they predate this step: chat_dock::egl_chat_glass_regions_blur_only_the_reported_regions, glass_mask_scene::egl_the_backdrop_of_the_glass_keeps_the_whole_application, glass_mask_scene::egl_the_mask_follows_the_alpha_and_ignores_the_regions, session_lock_tests::egl_bar_glass_saturates_the_pill_and_leaves_panels_unchanged, session_lock_tests::egl_shell_lock_shows_only_the_host_lock_panel, session_lock_tests::egl_the_wallpaper_covers_the_second_output_behind_its_windows, window_grab::egl_a_window_dragged_in_from_another_output_draws_below_the_chat. Headless nested runs of the built binary (cargoFeatures session,wgpu-renderer; media in ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-gles-steps-1-2/, s2-*, local only), the same script three times, with --gpu-api vulkan, --gpu-api gl and --renderer gles: the glass theme (bar glass and chat alpha glass on) with es2gears_wayland behind the chat, Studio selected and a capture during a workspace switch, the WGSL-only theme of the new create_theme (accepted and drawn on both APIs, refused under GLES with Studio kept), a window closed under each of close-dissolve, close-flip and black-hole-close with a capture during the effect, an output capture, and the lock by Super+L (state locked, a capture refused while locked). The snapshot has no effectsBackend key. No warning or error line in the three compositor logs. Under --renderer gles the glass, the Studio transition and the three close effects draw through their GLSL passes.
  • Without proof: a physical login on either renderer; the GLES recovery start at a login with this binary (the nested --renderer gles run is the closest check); the --visible GLES window (not opened; --nested --renderer gles is covered by the option tests only); the fallback build without wgpu-renderer on a real compile failure (unit tests of the preparer only); performance.

Prerequisites (additive, after the default switch is published)

Step 3: nested window on wgpu (P1). Files: new src/wgpu_window.rs; NestedPipeline and NestedSurface move from winit.rs to src/nested.rs; headless.rs; main.rs (--nested selects the wgpu window); Cargo.toml (winit = "=0.30.13" direct, no backend_winit use); scripts/nested-qa.py (the refusal at lines 424 to 431 goes, --visible runs on wgpu, the second-monitor move stays) and its tests; docs/nested-qa.md. Keep winit.rs until step 8 so the GLES window still exists as a fallback until this one is accepted. Verify: compile gate; a start --visible run with real clients; open, resize, scale, close, key and pointer, the second monitor placement; the offscreen frame equals the headless frame (same texture). Needs the user for the watched window. Rollback: revert; winit.rs still works.

Step 3 result (2026-11-10). Landed as an addition; nothing was deleted. The default of --nested changed after the owner saw the window (last item).

  • What exists: src/wgpu_window.rs (the window, the blit pass, the input translation, 8 unit tests and the GPU test native_wgpu_window_blit_is_upright), opened by --nested and by nested-qa.py start --visible (at first only with --renderer wgpu). Option A held with the locked versions (winit 0.30.13 as a direct optional dependency of the wgpu-renderer feature, wgpu 30.0.1, raw-window-handle 0.6.2; Cargo.lock gained one line). The Vulkan instance of wgpu-hal already enables the surface extensions and the device the swapchain one, so no device option changed.
  • What differs from the step text: NestedPipeline and NestedSurface did not move to src/nested.rs. They are the GLES pipeline and go with winit.rs in step 8; the wgpu window reuses the headless pipeline of wgpu_output.rs instead (open_gpu, build_headless, Headless::resize), so its frame is the headless frame by construction. At first --nested alone still opened the GLES window; see the last item. The renderer crate gained one accessor, WgpuRenderer::presentation, because a surface needs the wgpu::Instance and the wgpu::Adapter of the device. The window needs the Vulkan device: with the GL API of steps 4 and 5 there is no window yet.
  • Decision F as built: no parent display, no surface, or a surface with no format ends the start with no window opens: ... before the output and dma-buf globals exist (the globals of Compositor::new and the Wayland socket exist already, as for every backend), and the window is made hidden and shown only after these checks. Measured on a parent without linux-dmabuf: Mesa answers ERROR_SURFACE_LOST_KHR to the capability query and the format list is empty.
  • Measured (nested proof, the window as a client of a headless wgpu run, RX 550 with RADV): open, the frame upright with SHM and dma-buf clients, pointer, click, keys with Shift, resize by the parent, two outputs, close, and the refusal without dma-buf. The record is in nested-qa.md, Evidence, 2026-11-10.
  • Without proof: the window on the owner's desktop (the parent display in use, the second monitor placement, real devices), the release of held keys on a focus loss and the wheel (unit tests only), a scale factor other than 1, an X11 parent, a hidden window under Fifo (Mailbox was offered here), and frame pacing numbers (none were taken; the loop is a 60 Hz timer).
  • Review fixes (the commit after 81929fe6): the steps of the window pass the limits of the typed events (synthetic_input::admit: key codes 1 to 0x2ff, the three buttons, positions and scroll amounts cut to their limits) and apply_steps refuses outside the nested backends; a lost surface is made again, an outdated one configured again, never with a zero size, and 120 frames in a row that do not reach the window end the run with a message; a suboptimal image asks for a new configuration only when the size changed.
  • Known limits, not fixed: when Fifo is the only present mode that the parent offers, a hidden window can hold the loop for the time of one acquire on each frame; the keys that are already down when the window gets the keyboard are not sent again (the synthetic presses of the parent are dropped, so a Super held across the focus change is not seen); CursorLeft is not handled, so the pointer stays at its last position inside the window; the back and forward buttons of a mouse are not sent.
  • The owner's verdict (2026-11-10): the owner opened python3 scripts/nested-qa.py start --visible --renderer wgpu on the desktop in use (run c2b0727d, renderer wgpu), ended it with stop and said: "tudo certo com a nested que a gente abriu". He named no detail, so the second monitor placement, the wheel and a scale factor other than 1 stay without a record. With that, wgpu is the default of --nested in a build with wgpu-renderer (renderer_choice::Renderer::startup_default), and start --visible without --renderer opens the wgpu window. With the selector of step 5 on main, --nested --gpu-api gl and AGENT_NATIVE_GPU_API=gl with --nested are refused without --renderer too (resolved_gpu_api in main.rs, with a test), nested-qa.py start --visible --gpu-api gl is refused by the launcher, and --nested --renderer gles --gpu-api gl opens the GLES window. --nested --renderer gles and winit.rs stay as the reserve until step 8, and a build without the feature still opens the GLES window.

Step 4: wgpu on OpenGL, the dma-buf path (P2a). (Decision C: this step adds a small set of GPU tests that draw the same scenes on the Vulkan and on the GL API of wgpu and compare them within the bounds measured per driver; the scenes are a solid and textured window, a dma-buf client window, the window finish, the glass, a slide of the workspace and a capture.) Files: native/wgpu-renderer (a GL ImportDma, Bind<Dmabuf>, the EGL fence and a GL self-test next to dma.rs and selftest.rs), native/smithay/src/wgpu_output.rs (open_renderer takes the API), dmabuf.rs (EGL formats for the GL path), Cargo.toml (smithay with backend_egl as a direct feature). Verify: new wgpu-only tests that force the GL backend (the case G1 already exists), a headless nested run forced onto GL with real clients (SHM and dma-buf, the nine client formats), the self-test, a window capture. Rollback: revert; the Vulkan path is untouched.

Step 5: startup choice and the selector (P2b), decision A. Files: wgpu_output.rs, drm.rs (GL scanout through the GBM buffer, the page flip), main.rs (--gpu-api), scripts/smithay-session.py (the file gpu-api-gl and the environment variable), the capability or snapshot field that reports the API in use (read-only, like effectsBackend was), docs/smithay-development.md. auto tries Vulkan and falls to GL when no Vulkan device exists or the self-test fails; the reason is logged; vulkan and gl force an API, and a forced API that fails is an error, not a fallback. Verify: forced --gpu-api gl headless; forced vulkan on a build with GL; DRM only by compile check and the owner's login. Rollback: revert.

Step 4 result (2026-11-10, landed as code; not run at a physical login). native/wgpu-renderer has the OpenGL path next to the Vulkan one, which keeps its behavior: WgpuRenderer::for_render_node_gl(path) (new src/gl.rs, 573 lines, and src/dma_path.rs, 208 lines, the choice between the two paths), gpu_api() and DmaSupport::Egl. It opens a GBM device and a surfaceless EGL context on the render node with Smithay's backend_egl (no renderer_gl), wgpu's GL backend on it (new_external), imports a client dma-buf as an EGLImage bound to a GL texture and wrapped by texture_from_raw, binds a GBM buffer as a target through the same texture (drawn into directly, no shadow copy), and exports an EGL_ANDROID_native_fence_sync fence per frame. A software EGL device is refused. The self-test is the one of the Vulkan path with the candidates from the EGL display. Details and numbers: wgpu-renderer-plan.md, Phase 2b result. What differs from the text of the step above: dmabuf.rs and the compositor's Cargo.toml needed no change (the renderer crate owns its EGL display, and the compositor announces renderer.dmabuf_formats() as before), and open_renderer takes the API in step 5. Tests: wgpu_renderer_gl_tests.rs (10 GPU tests of the renderer on GL, against the Vulkan renderer) and wgpu_renderer_gl_scene_tests.rs (6 GPU tests, decision C: the window finish, the glass, the workspace slide, the overview planes and previews, the captures and a linux-dmabuf client window, each drawn on both APIs). On the RX 550 (radeonsi and RADV, Mesa 26.0.8) every comparison gave 0 differing bytes, so the bounds are 0 bytes with a maximum error of 1/255; this is one driver pair that shares Mesa's compiler, not evidence for another. Not covered: an EGL display that lists explicit modifiers (this one lists Invalid only), a machine without Vulkan, a display without native fences, physical scanout, performance.

Step 5 result. See the section Step 5 result below the plan.

Steps after the owner's login and steps 3 and 5

Step 6: the recovery and the removal of --renderer, AGENT_NATIVE_RENDERER and the escape file.

  • Files: main.rs, renderer_choice.rs, state.rs, desktop/snapshot.rs (windowEffectSlots, renderer), scripts/project-session.py, scripts/smithay-session.py (the recovery start and ROLLBACK_FILES), scripts/nested-qa.py, scripts/register-smithay-session.sh (the old wgpu entry cleanup), their tests.
  • What: --renderer, AGENT_NATIVE_RENDERER and the file renderer-gles are removed with no accept-and-ignore period: a stale wrapper that passes --renderer ends in a usage error and the login goes to the recovery start. The recovery start stops asking for GLES. It asks for --gpu-api gl (through the variable and the escape file gpu-api-gl of step 5, which replaces renderer-gles) so that a Vulkan failure is not repeated; an older known-good release without the option ignores the variable and runs its own default. The renderer snapshot key goes (no reader in the core).
  • Before: step 3 (no nested GLES left) and step 5 (the recovery has a GL path to ask for), (the switch is on main). Also remove the rendererAsked recording of project-session.py and smithay-session.py and their tests, or change it to record the API asked (gpu-api), since it names the renderer; nothing in the core reads it.
  • Verify: Python tests of the recovery start and of the options; a nested run of the recovery path on a copy of the profile; grep -rn 'renderer-gles\|AGENT_NATIVE_RENDERER' scripts docs native lists only history. Rollback: revert.

Step 6 result (2026-11-11). Landed as code, at the request of the coordinating session (which relayed the owner's "Assim que prontas" for the removals); not run on a physical login. The GLES renderer, the GLES scene and the GLES backends stay compiled in both feature sets.

  • Removed. The --renderer option (a usage error for every value and mode, like --effects-backend; the usage line and the --help text no longer contain the string, which the installed dispatcher greps), Renderer::parse, gles_by_default and its test, the session_renderer parameter of Options::parse_with (now only Options::parse), and every read of AGENT_NATIVE_RENDERER in the compositor: the variable is ignored silently (no error, no warning, no log line). The renderer key of the snapshot (no reader in web-shell/core, web-shell/host, vendor/interface, web-shell/ui-src or protocol/; gpuApi, null under GLES composition, tells the renderer now). The renderer-gles entry of ROLLBACK_FILES: a file that is left over is inert on purpose. It adds no flag, so the login starts as without it, on the wgpu renderer with the default API (Vulkan here); it is not mapped to --gpu-api gl, because the owner's answer 6 is "Remover de vez". Its replacement is the file gpu-api-gl, and one stderr line says so ("rollback file renderer-gles is no longer supported and does nothing; its replacement is the file gpu-api-gl, which keeps the wgpu renderer on OpenGL"). The file does not exist on the owner's machine (checked by the coordinating session). --renderer and rendererActive of nested-qa.py (start prints and records gpuApi, what the compositor reports, in place of renderer). The recorded field rendererAsked became gpuApiAsked ("gl" for a recovery start, null otherwise) in supervisor-smithay-recovery.json and project-session.json; the core passes both files through system_context.supervisors without reading the field.
  • Messages. The words "or use --renderer gles" are gone, and no message tells the user to pass --renderer. The wgpu side says the pack has only GLSL, "which the wgpu renderer cannot compile: add <files> (openspec/specs/themes/spec.md)"; the GLES side says the pack has only WGSL, "which GLES composition (a build without the wgpu renderer) cannot compile: add <file(s)> (openspec/specs/themes/spec.md)". The pack path and the file names stay. No web-shell test or doc quoted them.
  • The renderer of a run is fixed by the build. Renderer::startup_default(): wgpu in a build with wgpu-renderer, GLES in a build without it (the fallback build of scripts/prepare-project.py). Renderer, name, set_renderer, WGPU_SKIPPED_CAPABILITIES and the renderer field of the state stay, since the plain-scene tests still switch a harness between the GLES and the wgpu scene. --gpu-api rules are unchanged (resolved_gpu_api): the nested wgpu window is Vulkan only, so --nested --gpu-api gl (or the variable with gl) is refused in a build with the feature; in a build without it --nested opens the GLES window and the API does nothing. The cases that existed only for --nested --renderer gles are gone.
  • Differs from the step text. The step says the recovery start stops asking for GLES. It does not yet. Decision H (a decision of the coordinating session of 2026-11-11, not of the owner): the recovery start exports both AGENT_NATIVE_GPU_API=gl and AGENT_NATIVE_RENDERER=gles. The owner has not yet done a physical login with the default wgpu renderer, and the registered recovery release (releases/20261110-6566fa54a959) still has GLES and uses it only when it gets AGENT_NATIVE_RENDERER=gles. A compositor of this step or later ignores that variable and takes AGENT_NATIVE_GPU_API=gl, so a Vulkan failure is not repeated; an older recovery release with GLES takes the first and ignores the second. Without the GLES variable a wgpu failure on this machine would take down the login and the recovery together before the owner has seen wgpu on a screen. The AGENT_NATIVE_RENDERER=gles export is removed only when the registered recovery release no longer has GLES. scripts/project-session.py keeps its own copy of the two exports, since the dispatcher must not depend on the supervisor module; both are tested. The step also lists register-smithay-session.sh: its cleanup of the old wgpu wrapper (grep for AGENT_NATIVE_RENDERER=wgpu) is kept, since a machine may still have the wrapper, and its comment was already true. scripts/prepare-project.py and its test only had a warning that named --renderer wgpu, now "the wgpu renderer is unavailable".
  • GLES is reachable only in a build without wgpu-renderer. In a build with the feature the GLES arms of main.rs, drm.rs and headless.rs and the GLES window of winit.rs cannot run any more, and in a build without it they are the only path. So the GLES nested window of winit.rs is not dead (a build without the feature opens it), and nothing was deleted from the backends: they stay until step 8, and the GLES scene and elements until step 7. Compiler and Clippy raised nothing as dead, and no #[allow(dead_code)] was added.
  • Tests. Rust: the_removed_renderer_option_is_a_usage_error (every value and mode, USAGE and the help text name neither --renderer nor AGENT_NATIVE_RENDERER), the_renderer_variable_of_older_recovery_starts_is_not_read (AGENT_NATIVE_RENDERER set to four values leaves the parsed options identical, and no source file reads it through var or var_os), the_renderer_is_fixed_by_the_build, a snapshot assertion that renderer is gone, and the theme message assertions (they also assert the absence of --renderer). Deleted: the_renderer_is_wgpu_when_built_unless_gles_is_asked and a_build_without_the_renderer_warns_only_when_nothing_chose_gles (they compared --renderer and the variable; the build-default rule is covered by the new test, and the build without the feature now always warns), and the --nested --renderer ... cases of the GPU API test. Python: ROLLBACK_FILES without renderer-gles, the one-line notice for a stale file (alone and with no-dmabuf), recovery_environment and the recovery of both scripts exporting both variables and recording gpuApiAsked, nested-qa refusing --renderer and starting the compositor without it. Deleted: the nested-qa tests that passed --renderer to the compositor and the --visible --renderer gles --gpu-api gl case.
  • Measured diff. 58 files changed, 411 insertions and 439 deletions (git diff --stat HEAD, before this paragraph was written); a net reduction, almost all of it in comments, option parsing, two replaced tests and docs.
  • Verification (2026-11-11, RX 550, Mesa 26.0.8). Gates on the commit: web format:check, check, npm test 1609 pass and 5 skipped; Python 268; fmt --check; test 926 (session, 69 ignored) and 960 (session,wgpu-renderer, 154 ignored); Clippy on both sets; the wgpu check. GPU tests on one thread, session,wgpu-renderer: native_wgpu_ 85 passed (they include the OpenGL path and the two reload tests); egl_ 53 passed and 7 failed, the same 7 names as in the Step 2 result. The built binary (cargoFeatures session,wgpu-renderer) answers --headless --renderer gles with the usage line and exit status 1, and its --help has no --renderer. Headless nested runs (media s6-* in ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-gles-steps-1-2/, local only), the script of step 2 with --gpu-api vulkan and with --gpu-api gl: the glass theme, the Studio transition, the WGSL-only theme of create_theme, the three close packs, a capture and the lock; the snapshot has no renderer key; no warning or error line in the compositor logs.
  • The recovery environment in nested. A copy of the root whose compositor binary is a wrapper that exports AGENT_NATIVE_GPU_API=gl and AGENT_NATIVE_RENDERER=gles, as the recovery start does, then runs the real binary (nested-qa itself strips every AGENT_NATIVE_* variable), each on a private profile. (1) The binary of this step, with no --gpu-api option: it starts on OpenGL ("wgpu OpenGL renderer, EGL images, self-test passed", gpuApi "gl", no fallback reason), draws the shell and a dma-buf client, and its log has no line about AGENT_NATIVE_RENDERER and no warning. (2) The registered recovery release releases/20261110-6566fa54a959: it starts, draws the shell and the client and logs no warning, on its wgpu Vulkan renderer. That is not the path of a recovery login: that release reads AGENT_NATIVE_RENDERER only with --session (its main.rs, (None, Some(value)) if session), which a nested run cannot use, and it does not know AGENT_NATIVE_GPU_API. So the nested run proves that the two variables do not break the old release; that it composites with GLES at a recovery login rests on its code and its own option test, and its GLES path itself ran nested with --renderer gles in the proof of step 1.
  • Review fixes (the commit after step 6). The docs say that a left-over renderer-gles is inert on purpose and name gpu-api-gl as its replacement, and the notice names it too; row H records the accepted risk of a renewed recovery release and the checklist of the physical login, and a Python test ties the row to the export; the Rust test of the variable no longer sets the process environment (a race with parallel tests, and the parser takes no environment) and its source scan now refuses the name anywhere outside a comment, also through a constant; openspec/changes/wgpu-renderer-plan/design.md, Rollback, gives the current way back. The false sentence of AGENTS.md (the gate line that names --renderer wgpu) is not edited by this session: it is quoted for the owner or the coordinating session.
  • Without proof: a physical login, and a recovery start at a login with either binary (the dispatcher and the supervisor are covered by their Python tests only); the old release taking AGENT_NATIVE_RENDERER=gles under --session; a build without wgpu-renderer run as a compositor (its tests and Clippy pass; the fallback build was not started, so the GLES window and the GLES headless run of that build did not run after this step); the stale renderer-gles notice at a real login; the installed dispatch copy, which changes only after scripts/install.sh, not run.

Step 7: remove the GLES effect elements and the GLES scene. Files: the GLES drawing in window_finish.rs, glass.rs, glass_mask.rs, canvas_warp.rs, black_hole.rs, grabs.rs, effect_pipeline.rs, scene_passes.rs, scene.rs, workspace_depth.rs, workspace_theme.rs, workspace_web.rs; the seven .frag; the nine .frag of effects/ and themes/ (WGSL twins stay; step 1 decided the packs). The generic code stays (it serves the plain scene). One commit per element, in the renderer-plan order, and each deletes the GLES parity tests that compared that element (decision 5): window finish and outline, glass and mask, canvas warp, black hole, workspace cards and depth, theme and F9 pipeline, scene passes. Verify: gates per commit; headless QA once per drawing commit. Rollback: revert the element's commit.

Step 7 result (2026-11-11). Built as code on top of origin/main 7abb6b18 in seven commits, at the request of the coordinating session; not published, not run on a physical login. The GLES backends (drm.rs, winit.rs, the headless GLES arm), the GLES test harness, Cargo and the preparer are untouched (steps 8 to 10). Measured against 7abb6b18: 67 files changed, 1,144 insertions and 9,743 deletions (git diff --shortstat 7abb6b18 HEAD).

  • Deleted, by commit (shortstat of each commit; the order is below):
    1. 3c6305d7, the GLES glass and mask: 22 files, 326 insertions and 3,862 deletions. GlassPipeline, GlassElement, GlassMaskPipeline and GlassMaskElement with glass.frag, glass_mask.frag and glass_mask_final.frag, the fields state.glass and state.glass_mask, the SceneElement variants Glass, GlassMask and ClippedGlass, apply_glass of the GLES scene, and the egl_ tests and helpers that drove them. The material, the limits, the geometry and the budget math (glass.rs, glass_mask.rs) and the lease of chat_alpha_glass stay, because the plain scene and the core protocol use them.
    2. cb7cf186, the GLES canvas lens: 5 files, 29 insertions and 672 deletions. The GLES warp group pipeline, canvas_warp.frag, the variant Warp, the lens branch of the GLES scene and the two shader egl_ tests. The CPU Lens math, the setting, its lease, the snapshot and the input maps stay.
    3. 868fe3d4, the GLES depth cards: 10 files, 274 insertions and 792 deletions. DepthPipeline, depth_transition_elements, the variant DepthShadow, state.workspace_depth and their egl_ tests. The card geometry stays for plain_depth.rs and plain_workspace.rs.
    4. 5c2d6b04, the GLES black hole close and the window-close pass: 13 files, 40 insertions and 1,028 deletions. black_hole::elements, its program and black_hole.frag, the GLES views of the bookkeeping, set_close and close_runtime, WindowClose::uniforms, the variant DepthCard, the ClosingPasses stub and the nine egl_ tests of black_hole_tests.rs. The sink lease, the bookkeeping, the timing and the counts stay (plain_black_hole.rs, plain_close.rs, the wallpaper sink protocol).
    5. 3503e0fc, the GLES theme passes and F9: 10 files, 188 insertions and 1,996 deletions. The GLES theme pipeline of effect_pipeline.rs (GLSL programs, textures, the multipass chain, F9 thumbnails), CompiledEffect, WindowClose::compile, Package::gles_source, the GLSL compile and Runtime of workspace_theme.rs, the F9 branch of the GLES scene and Compositor::effect_target. EffectPipeline stays as a stub with the same new and sync_request; in the fallback build theme_check, theme_select and theme_reload answer FALLBACK_THEME_ERROR (theme_requests::UnavailableOperations), the start reads no persisted selection and compiles nothing, so it never fails over a theme and the selection stays on disk. New test fallback_theme_tests.rs (no GPU).
    6. 3f9475fc, the GLES finish, outline and scene passes: 21 files, 161 insertions and 1,387 deletions. window_finish.frag with its program and RenderElement impl, the rounded drag outline (outline.frag, PixelShaderElement, Outline::scene_elements), the variants Finished, EffectFinished, Cached and RoundedOutline, the GLES arms of scene_passes.rs and the GlesRenderer stubs of GlassPasses, WarpPasses, DepthPasses and CachePasses. The opening clock (mapped, reveal) stays.
    7. 0a386820, the fallback build reports no effects and says so: 11 files, 139 insertions and 19 deletions (below). Together the seven .frag files of native/smithay/src/ are gone (glass.frag, glass_mask.frag, glass_mask_final.frag, canvas_warp.frag, black_hole.frag, outline.frag, window_finish.frag).
  • The reduced scene that stays. A build without the wgpu-renderer feature (the fallback build of the preparer, features session) keeps a reduced GLES scene: the wallpaper, application windows as plain surfaces, popups, dialogs, the cursor, the band stacking, extra outputs, the dragged-in guest, the Grid drag outline as five square solid pieces, the lock content, a flat workspace slide with its web planes, the overview planes, the previews, the window capture and the sharp zoom cache without the area filter. It does not draw rounded corners, rim, reveal, the area filter, any glass, the canvas lens, the black hole or window-close flights, depth cards, theme passes or F9. In that build the snapshot reports false the capabilities alphaGlass, panelBackdropBlur, barBackdropBlur, barMaterial, chatBackdropBlur, chatBubbleGlass, panelAlphaGlass, outputBarGlass, canvasWarp and wallpaperSink (GLES_UNDRAWN_CAPABILITIES in renderer_choice.rs) and an empty windowEffectSlots; the start writes one stderr line, renderer_choice::fallback_notice ("agent-native-compositor: this is the fallback build (without the wgpu-renderer feature): it draws windows, the wallpaper and the workspace slide with no visual effects (no glass, rounded corners, lens, close effects or themes)"), in place of the old warning "this build has no wgpu-renderer feature"; and theme_check, theme_select and theme_reload answer FALLBACK_THEME_ERROR ("This is the fallback build of the compositor, without visual effects (built without the wgpu-renderer feature): it draws no theme, so it cannot check, select or reload one. The selected theme stays on disk for the full build."), the persisted selection stays on disk untouched, and list, inspect and disable still work. The web core and host were not changed: they already skip a capability that is not true (web-shell/core/control-lease.js, smithay.js, server.js, page-routes.js, window-declarations.js).
  • Differs from the step text.
    • The order. The step text said one commit per element in the renderer-plan order (window finish and outline first, scene passes last). That order did not work: window_finish::Finished was the hub that the glass, the lens, the depth cards and the close drew through, and EffectPipeline was a producer of those elements. The order used was glass and mask, lens, depth cards, black hole and window-close, theme passes and F9, finish, outline and scene passes, then the capabilities commit.
    • The scene is reduced, not deleted. The step text said to delete "the GLES scene". The fallback build still needs a compositor that starts and shows windows (project-loading.md, Build features and the fallback), and drm.rs, winit.rs and the harnesses still call the GLES scene, so the part of it that draws plain windows stays until step 8.
    • The .frag files and their loaders stay. The nine shipped GLSL files (native/smithay/effects/{black-hole-close,close-dissolve,close-flip,elastic}/effect.frag, native/smithay/themes/studio/effects/{black-flame,elastic,wave,workspace}/effect.frag and .../workspace/shadow.frag) are not deleted, although no product code reads them to draw. The loaders still read and validate an optional .frag (Package.fragment, effects.rs, workspace_theme.rs, the 512 KiB aggregate of themes.rs), and four tests copy a shipped pack and strip its WGSL to build a GLSL-only pack. Deleting the files means deleting that loader code and those tests, which is a contract change for old packs and stays for step 8 or later.
    • A capabilities commit. The step text had none. Without it the fallback build kept reporting capabilities that its scene no longer drew, so the core would send leases and reports that never take effect.
  • Coordination decisions (of the coordinating session, not the owner's). (1) The fallback build keeps the reduced GLES scene and is not silent: the stderr line and the theme error say what it does not draw. (2) The capabilities are false in the fallback build and no new core logic was written, because the core and host already skip a capability that is not true. (3) All mirrors M1 to M11 were written first, and the 28 native_wgpu_* tests that had a GLES reference were converted, in batch 1 (below).
  • Tests. Every deleted egl_ test had a wgpu mirror by name, or was a benchmark or a measurement, or a pure F9 test. The mirrors of batch 1 are in the table below; three more were written during the removals (native_wgpu_glass_blurs_backdrop_keeps_controls_sharp_and_budgets_the_targets, native_wgpu_depth_blurs_only_moving_cards_and_lands_pixel_sharp and native_wgpu_the_outline_of_a_visual_style_is_rounded_in_the_accent, each with an _on_gl twin), listed under Step 7 batch 1. Two tests were deleted without a drawing mirror, as F9: egl_theme_pipeline_order_isolation_identity_and_atomic_reload and egl_theme_check_reports_compile_errors_and_a_broken_select_keeps_the_old_chain (the wgpu scene draws no F9; the request side is covered by native_wgpu_renderer_theme_requests_compile_wgsl_only, native_wgpu_renderer_theme_requests_compile_a_window_close_pass and native_wgpu_renderer_workspace_theme_reload_is_atomic_and_pins_the_current_flight). egl_a_relocated_pass_keeps_the_whole_window went as parity covered by the M5 backdrop test and the M8 left and top test; the reset of PASS_SHIFT has no direct test, an accepted gap (a coordination decision). New tests: fallback_theme_tests.rs (no GPU; the theme refusal and the fallback snapshot), the fallback notice and the capability list in renderer_choice.rs, and the snapshot test of wgpu_scene_tests.rs, which now covers both renderers. Six tests about glass, lens and bar material now select the wgpu renderer.
  • The egl_ tests that remain (found with grep -rn "fn egl_" native/smithay/src; they run on the reduced scene until step 8): workspace_preview::egl_offscreen_composition_preserves_layer_order_and_row_orientation; workspace_web::egl_web_pixels_follow_their_workspace_and_preserve_transparency; scene::egl_slide_composes_real_layers_with_viewport_clipping_and_fixed_chrome; thumbnail_motion::egl_live_thumbnail_motion_lands_without_ghosts_or_resizing_client_content; window_grab_tests::egl_a_window_dragged_in_from_another_output_draws_below_the_chat and egl_the_dialog_of_a_dragged_in_window_draws_above_it; and six in session_lock_tests.rs (egl_a_window_on_the_second_output_draws_in_its_local_coordinates, egl_each_of_three_outputs_draws_only_its_own_windows_in_local_coordinates, egl_the_wallpaper_covers_the_second_output_behind_its_windows, egl_locked_scene_shows_only_the_lock_surface, egl_shell_lock_shows_only_the_host_lock_panel, egl_every_output_shows_its_lock_surface_or_black_and_never_the_desktop). Eleven in all. Four ignored GLES tests fail before and after this step (not caused by it): egl_shell_lock_shows_only_the_host_lock_panel, egl_the_wallpaper_covers_the_second_output_behind_its_windows, egl_a_window_dragged_in_from_another_output_draws_below_the_chat and the_scene_of_the_extra_output_draws_its_canvas_windows. Their batch 1 mirrors (M1, M2, M3) are the working check of those behaviors.
  • What steps 8 to 10 inherit.
    • The reduced GLES scene, about 490 lines of scene.rs that name GLES types (the count of the coordinating session, not re-measured here), the stub EffectPipeline, the variant SceneElement::EffectRaw, the sharp zoom cache API, the GLES-typed Compositor::process_*, and the generic program slot of window_finish::Finished.
    • The backends and their harnesses (drm.rs, winit.rs, the headless GLES arm, the GLES test harness), Cargo and the preparer.
    • The nine shipped .frag files with the loader code that still validates them (Package.fragment, effects.rs, workspace_theme.rs, the aggregate of themes.rs) and the four tests that copy a shipped pack and strip its WGSL.
    • Dead code in the fallback build, which carries #[cfg_attr(not(feature = "wgpu-renderer"), allow(dead_code))] (some items an allow(dead_code) with a reason); the attributes go at step 10, when wgpu-renderer stops being a feature.
    • After step 8 a session-only build has no renderer at all, so the retry without wgpu-renderer in scripts/prepare-project.py (and the paragraph "Build features and the fallback" of project-loading.md) should go at step 8, not at step 10: a build that fell back would have no compositor to start.
  • Verification (2026-11-11, RX 550, Mesa 26.0.8), on 0a386820 over origin/main 7abb6b18. fmt --check; Clippy on both feature sets; the wgpu check; test 1001 passed and 175 ignored (session,wgpu-renderer), 959 passed and 22 ignored (session). The web and Python suites were not run: no file of theirs changed. GPU tests on one thread, session,wgpu-renderer: native_wgpu_ 152 passed and 1 failed in the whole run, native_wgpu_chat_glass_backdrop_keeps_the_whole_application_on_gl (the glass read 16 16 16 where it should read the white application, on OpenGL only). That failure is intermittent and was not attributed: it failed once more in 3 runs of the pair with its Vulkan twin, then passed 12 of 12 alone, 20 of 20 as the pair and 6 of 6 runs of the whole wgpu_scene::gpu module, with the same counts on ee6f052d (batch 1, before the removals), where it never failed in these runs or in the batch 1 suite runs. The remaining egl_ tests, in both builds: 10 passed and 3 failed, the three named above; the_scene_of_the_extra_output_draws_its_canvas_windows fails as before. Headless nested runs of the built binary (session,wgpu-renderer; media s7-vulkan-* and s7-gl-* in ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-gles-steps-1-2/, local only), the script of step 2 with --gpu-api vulkan and with --gpu-api gl: the glass theme (bar glass and chat alpha glass reported and drawn, rounded corners), Studio selected and a capture during a workspace switch, the WGSL-only theme of create_theme, a window closed under close-dissolve, close-flip and black-hole-close with a capture during the effect, an output capture and the lock by Super+L (state locked, a capture refused while locked). No warning or error line in the two compositor logs.
  • Without proof. The fallback build was only compiled, tested and run with --help: no start of it was made, so the stderr line, the reduced scene on a screen, the false capabilities against a live core and host, and a start with a persisted theme selection are proven only by unit tests and by reading the code (the nested QA script builds the wgpu binary, and no session was started outside it). A physical login on either build. The cause of the intermittent OpenGL failure above, and whether it is the test or the OpenGL path of the renderer. Any absolute look (colour, blur and material of the glass, card depth and shadow, finish radius): no reference is left, by decision 5. No independent adversarial review ran before the report; the session read the commit scopes and the subagent reports, not every deleted line.

Step 8: remove the GLES backends and captures. Files: drm.rs (the GLES arm and its EGL types), headless.rs (the GLES arm), winit.rs (deleted), capture.rs (the GlesRenderer impl), screenshot.rs (process_window_capture on GLES, renderbuffer_side), dmabuf.rs (the GLES arm; EGL stays as a format source), outputs.rs, synthetic_input.rs, main.rs. Verify: --cargo check --locked --features session,wgpu-renderer --tests; headless run with two outputs and a window capture; the DRM path only through the compile check and the owner's login. Rollback: revert.

Step 8 result (2026-11-11). Built as code on top of origin/main 6550e8a8 and rebased onto 45ac3e69 (the gates were run again after the rebase, with the review fixes: test 998 and 178, 954 and 1, Clippy on both, the wgpu check, Python 274, web format:check, check, npm test 1623 and 5 skipped, docs-governance), at the request of the coordinating session; not published, not run on a physical login. Measured against 6550e8a8: 65 files changed, 1,206 insertions and 3,970 deletions before the docs commit (git diff --shortstat). It also does three things that the step text above left to other steps: the reduced GLES scene of step 7 goes here, the preparer's retry goes here (the Step 7 result said it should), and the nine shipped .frag files with the loader code that read them go here.

  • Commits, in order.
    1. c65e65a4, tests only, 1,223 insertions: wgpu mirrors, each with an _on_gl twin, of the GLES tests that still drew product code: native_wgpu_web_pixels_follow_their_workspace_and_preserve_transparency (workspace_web.rs), native_wgpu_offscreen_composition_preserves_layer_order_and_row_orientation (workspace_preview.rs), native_wgpu_slide_composes_real_layers_with_viewport_clipping_and_fixed_chrome (scene.rs), native_wgpu_live_thumbnail_motion_lands_without_ghosts_or_resizing_client_content (thumbnail_motion.rs), native_wgpu_framebuffer_readback (capture.rs), native_wgpu_real_electron_frames_reach_the_screen_through_dmabuf (dmabuf_tests.rs, one interleaved round where the GLES test ran three), native_wgpu_the_scene_of_the_extra_output_draws_its_canvas_windows (output_canvas_tests.rs), native_wgpu_a_plane_draws_its_workspace_behind_the_shell_window_inside_its_card, native_wgpu_an_unchanged_or_empty_workspace_renders_and_writes_nothing, native_wgpu_a_workspace_on_an_extra_output_draws_in_local_coordinates_with_its_output_chat and native_wgpu_a_buffer_at_the_zoom_draws_one_to_one. 22 GPU tests, 3 of 3 runs green. below_zoom_0_35_a_canvas_window_draws_from_its_cached_texture was already covered by native_wgpu_renderer_sharp_zoom_cache_draws_the_filtered_windows, and the GLES far-view test by M11.
    2. fc529fbd: the tests that drew through the GLES scene or the Gl harness of session_lock_tests.rs (the 12 egl_ tests and 9 tests without the prefix), each deleted only after its mirror was found by name (M1 to M11 of batch 1, or item 1); and the 46 per-item #[cfg_attr(not(feature = "wgpu-renderer"), allow(dead_code))] of step 7 became one crate attribute in main.rs (dead_code, unused_imports, unused_variables), which goes at step 10.
    3. 50b36815: winit.rs, headless.rs, effect_pipeline.rs, renderer_choice.rs and fallback_theme_tests.rs deleted; the GLES arm of drm.rs (with its EGL types; mod drm now needs both session and wgpu-renderer), the GLES half of scene.rs (elements, secondary_elements, SceneElement), the GLES captures (CaptureRenderer for GlesRenderer, renderbuffer_side and the GLES process_window_capture of screenshot.rs), the GLES-typed Compositor::process_*, PlaneRenderer for GlesRenderer, the GLES preview, the GlesTexture default parameters of WebPlanes and DownscaleCache, OverviewPlanes.textures, state.workspace_web, SharpZoom.cache, and the program slot of window_finish::Finished (now Finished<E>). The helpers the wgpu backends shared with the deleted files moved to src/nested.rs.
    4. 69d73383: the nine shipped .frag deleted, and effect.frag and shadow.frag are no longer read, validated or counted in the 512 KiB aggregate (Package.fragment and the GLSL field of workspace_theme::Loaded are gone). A pack without effect.wgsl, or a workspace transition without both WGSL files, is refused with the pack directory and effect.wgsl in the message. Fifteen GPU tests of wgpu_renderer_black_hole_tests.rs copied the shipped .frag; they copy effect.css and effect.wgsl now, and the two theme request tests build their GLSL-only fixture with a written .frag.
    5. 4c89f437: scripts/prepare-project.py builds only session,wgpu-renderer (FALLBACK_FEATURES, build_with_fallback and the cargoFeaturesWanted stamp key are gone). A compile error of the renderer ends the preparation and the dispatcher runs the recovery release; a stamp of an older fallback build is rebuilt. Python tests replaced.
    6. 6830cfdf, a review fix: commit 4 had made a disabled window-close pass without effect.wgsl refuse the whole theme. The core skips such a pass (web-shell/core/themes.js, MISSING_WGSL) and the compositor did before step 8, so themes::load_theme skips it again; enabled, it is refused. A unit test covers both. Unlike before step 8 the skipped pass is not listed by inspect, as the core does not list it.
  • A build without wgpu-renderer has no renderer. It compiles, and its test and Clippy gates stay until step 10, but --headless, --nested and --session end before any socket, global or backend with one stderr line, "agent-native-compositor: this build has no renderer (built without the wgpu-renderer feature); build with --features session,wgpu-renderer", and exit status 1; --help and the usage errors work. That build runs 952 tests (it ran 959 at step 7; three sharp zoom tests now need the feature and the fallback theme tests are gone).
  • The snapshot. windowEffectSlots is always ["window-close"] and no capability is forced false (WGPU_SKIPPED_CAPABILITIES was empty and went with renderer_choice.rs). The snapshot of a session,wgpu-renderer build is unchanged. The low finding of the review of step 7, that visualStyle stayed true in the fallback build, is moot: that build no longer starts.
  • Left for step 9. The renderer-level comparisons of wgpu_renderer_tests.rs, wgpu_renderer_dma_tests.rs and wgpu_renderer_shm_tests.rs, which build their own GlesRenderer, and crate::dmabuf::announce and hardware_device on GlesRenderer, kept under cfg(all(test, feature = "wgpu-renderer")) only for wgpu_renderer_shm_tests.rs. No fn egl_ test is left; GlesRenderer, GlesTexture or gles:: appear only in those four files and in one comment of wgpu_window.rs.
  • Left for step 10. Cargo.toml (backend_winit and renderer_gl of smithay, the wgpu-renderer feature) and the crate attribute of commit 2. Dead code that the loader change left in plain_theme.rs: the GLSL messages of glsl_only, the None arms of effect_wgsl and compile, and the wgsl: Option fields of Package and workspace_theme::Loaded that are now always Some.
  • Verification (2026-11-11, RX 550, Mesa 26.0.8). On 4c89f437: fmt --check, Clippy on both sets, the wgpu check, test 996 passed and 176 ignored (session,wgpu-renderer) and 951 and 1 (session), Python 268, web format:check. On 6830cfdf: the same Rust gates, test 997 and 176, 952 and 1, and the two theme request GPU tests. GPU suite on one thread: 175 of 175 native_wgpu_ passed on 69d73383 (run by the subagent that wrote the removal), and 175 of 175 again on 6830cfdf (run by the session itself; native_wgpu_chat_glass_backdrop_keeps_the_whole_application_on_gl, the intermittent failure of step 7, passed in both runs). The release binary (session,wgpu-renderer) built by the preparer; headless nested runs (media s8-vulkan-* and s8-gl-* in ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-gles-steps-1-2/, local only), the script of step 2 with --gpu-api vulkan and --gpu-api gl: the glass theme (bar glass and chat alpha glass), Studio and a capture during a workspace switch, the WGSL-only theme of create_theme, the three close packs (now without .frag) with a capture during the effect, an output capture and the lock (a capture refused while locked). No warning or error line in either compositor log; the captures were looked at.
  • Without proof. The DRM path: only the compile gate and its tests; no physical login. The no-renderer line was seen with --headless, not at a login. A login where the preparer's build fails, which now goes to the recovery release (Python tests only). The sharp zoom, extra output and Electron mirrors ran only in the GPU suites, not in nested QA. No independent adversarial review ran before the report.
  • Review fixes (2026-11-11, after an independent review that found no HIGH). b96b4655: the current docs that cited deleted egl_ tests point at their wgpu mirrors (openspec/specs/lock-screen/spec.md, docs/smithay-development.md, docs/capture-tty4.md, openspec/specs/project-loading/spec.md, the others already had notes), openspec/specs/themes/spec.md says that a GLSL-only pack is refused and that drawn.gles is a dead key that is always 0, openspec/specs/screenshots/spec.md names max_texture_dimension_2d, and the recovery warning below. 95dcfd62: native_wgpu_renderer_shell_lock_draws_only_the_host_lock_panel and its _on_gl twin, a pixel mirror of the deleted egl_shell_lock_shows_only_the_host_lock_panel (the whole primary frame is the lock panel, with no wallpaper, application or chat colour; the second output is all black; the application returns after the unlock), 3 of 3 runs green on each API. e6d9d5a3: the unreachable GLSL-only refusals of plain_theme.rs (glsl_only, effect_wgsl and its test module); the two remaining unwraps say "has no WGSL". The wgsl fields of effects::Package and workspace_theme::Loaded stay Option, because many tests build them with None. a82471cc: comments of scripts/nested-qa.py, scripts/prepare-project.py, native/smithay/Cargo.toml and src/nested.rs say that a build without wgpu-renderer exits.
  • The pixel proof of the lock is narrower (an accepted gap). With the GLES pixel tests gone, three lock cases are checked only by element lists, with no pixel test: a hot-plugged output stays black until its lock surface commits (an_output_hot_plugged_while_locked_shows_nothing_until_its_lock_surface_commits), every output stays black when the lock client dies (every_plain_output_shows_its_lock_surface_or_nothing_and_never_the_desktop), and a lock surface of a foreign process title shows plain black. The shell lock and the protocol lock have pixel tests. Recorded in openspec/specs/lock-screen/spec.md, section Narrower pixel proof since step 8.
  • The recovery release (finding L6). scripts/install.sh without --fallback-root runs scripts/configure-project.py, which builds a release of the current commit with scripts/build-release.py, writes it as fallbackRoot in project.json and prunes the older releases except the registered recovery and the running root. A release of this tree has no GLES, so it would become the registered recovery in place of releases/20261110-6566fa54a959 (identity.cargoFeatures session,wgpu-effects,wgpu-renderer, commit 6566fa54), the only way back with GLES, which decision H depends on. The first renewal keeps the old release on disk (the recovery registered before the change is in the kept list of the cleanup), but it is no longer the registered recovery, and a later renewal can prune it. No code guard was added: no field of a release manifest says whether it has GLES (a release with session,wgpu-renderer from before step 8 has it too), so a guard would need the ancestry of a fixed commit. openspec/specs/project-loading/spec.md and docs/immutable-base.md say instead: do not renew the recovery or run install.sh until the owner confirms a physical login with the wgpu renderer.
  • Left for step 10 (findings L4 and L5). L4: a build with wgpu-renderer and without session, run with --session, starts without a backend (main.rs, the --session branch under cfg(feature = "session")); step 10 should refuse it with compile_error! or a start error. L5: the crate-wide allow(dead_code, unused_imports, unused_variables) of the build without wgpu-renderer, and the session-only gate, which tests a binary that cannot start; both go when the feature becomes the only build.

Step 9: remove the remaining GLES test harness. The tests that only use GlesRenderer as a harness (session_lock_tests.rs, window_grab_tests.rs, sharp_zoom_tests.rs, workspace_preview_tests.rs, glass_mask_tests.rs where it is not analytic) move to the headless wgpu or to no GPU. Verify: gates; the count of #[ignore] GPU tests (140 today) is recorded in the commit. Rollback: revert.

Step 9 result (2026-11-11). Published as two commits on top of a11f3ca5: e0151bab (the tests and the two GLES helpers of dmabuf.rs; the figures below are of this commit) and d21aaae4 (this result and a note in openspec/changes/wgpu-renderer-plan/design.md). The test files that the step text names (session_lock_tests.rs, window_grab_tests.rs, sharp_zoom_tests.rs, workspace_preview_tests.rs, glass_mask_tests.rs) had already lost their GLES harness at step 8, so this step was the renderer-level comparisons that step 8 left: the *_matches_gles tests of wgpu_renderer_tests.rs, wgpu_renderer_dma_tests.rs and wgpu_renderer_shm_tests.rs, and the test-only dmabuf::announce and hardware_device on GlesRenderer. Measured: 6 files changed, 892 insertions and 471 deletions. No product code changed.

  • Decision per test (every name starts with native_wgpu_renderer_). Of 18 tests that compared with GLES, 16 became GLES-free checks and 2 were deleted as covered:
    • analytic: solids_have_the_analytic_colors (was solids_match_gles), memory_formats_hold_the_written_texels, crop_samples_the_exact_rectangle, element_alpha_is_the_analytic_blend (within 1/255), frame_api_draws_only_its_damage, shm_import_holds_the_painted_pixels, dmabuf_surface_tree_shows_the_client_buffer (Vulkan; the Vulkan against GL twin already existed), dma_client_formats_are_the_expected_set_and_sample_as_written (the eight fourccs of DMA_FORMATS; the set is asserted only on an adapter named RX 550, elsewhere it is printed; 10-bit formats within 1/255), dma_large_buffers_hold_what_was_drawn, dma_bind_through_copy_leaves_the_expected_pixels;
    • symmetry: buffer_transforms_move_every_texel (8 transforms by 4 formats against a CPU transform, to the byte) and output_transforms_are_symmetric (0 bytes; the test inverts the flipped transforms itself, because Smithay's Transform::invert swaps Flipped90 and Flipped270, which as point maps are their own inverse);
    • self-consistency: damaged_frames_equal_whole_frames, dma_path_draws_the_plain_scenes_like_the_plain_renderer, dma_bind_later_frames_match_the_offscreen_frames (all 0 bytes);
    • Vulkan against the GL API of wgpu (decision C): dma_bind_scenes_match_between_vulkan_and_gl (0 bytes, and the same renderer offscreen for Argb8888 and Xrgb8888);
    • deleted as covered: gl_backend_matches_gles (gl_plain_cases_match_vulkan draws every case and the frame API on both APIs) and dma_waits_for_a_foreign_fence (gl_waits_for_a_foreign_fence covers both directions);
    • new, with no old counterpart: rgba_storage_draws_like_bgra_storage, declared_opaque_regions_are_written_without_blending, a_frame_draws_the_same_twice (the determinism mitigation of Tests after the parity is deleted);
    • kept by name, without the GLES reference: dma_resamples_a_rewritten_client_buffer (against a fresh renderer), dma_recovers_after_a_failed_submission (the GL wgpu renderer is the foreign fence producer and the reference) and dma_bind_seeds_the_shadow_from_the_buffer (the GL wgpu renderer fills in place of GLES).
  • What is left. grep -rnE 'GlesRenderer|GlesTexture|renderer::gles|gles::' native/smithay/src finds nothing; nothing in src imports smithay::backend::renderer::gles, glow or backend::winit, so step 10 can drop renderer_gl and backend_winit from smithay. src still needs backend_egl (EGLDevice in nested.rs, the EGL display of the GL tests), which those two features pulled in until now, so step 10 must name it directly. The winit crate stays, for wgpu_window.rs.
  • The gaps. The mitigations of Tests after the parity is deleted that this step adds: the determinism check, the transform symmetry checks and more Vulkan against GL pixels. Gaps 1 (colour, blur, glass material, card depth, finish radius, F9), 3 (a driver change) and 5 (the GL path beyond the scenes of decision C) stay open; gap 2 (formats and transforms) and gap 4 (the client dma-buf formats, now a fixed set on this device) are narrower.
  • Verification (2026-11-11, RX 550, RADV and radeonsi, Mesa 26.0.8). fmt --check; Clippy on both feature sets; the wgpu check; test 998 passed and 179 ignored (session,wgpu-renderer), 954 and 1 (session). #[ignore] tests (grep -rc, summed): 178 before, 179 after. The 22 new and converted GPU tests 3 rounds of 22 of 22 on one thread; the whole native_wgpu_ suite once, 178 of 178. Not run: nested QA (no product code changed), a physical login.

Step 10: Cargo, preparer and scripts. native/smithay/Cargo.toml: wgpu-renderer becomes a normal dependency and the 262 cfg(feature = "wgpu-...") gates go; smithay loses backend_winit and renderer_gl and gains backend_egl directly; scripts/prepare-project.py (WGPU_FEATURES and FALLBACK_FEATURES collapse to ['session'], the retry without wgpu-renderer is dropped, --wgpu-effects goes); scripts/build-release.py (cargoFeatures); tests. Check: cargo tree -i shows no smithay GLES module (renderer_gl absent), strings of the binary has no GlesRenderer symbol, and EGL is present only through backend_egl and wgpu-hal. Verify: a full preparation on a clean worktree, build-release.py and --verify, a headless run from the packaged runtime. Risk: the retry that kept the login build alive when wgpu-renderer failed to compile is gone, so a compile error blocks the login build; prove the login build on a clean worktree first. Rollback: revert.

Step 10 result (2026-11-11). Built as code on top of origin/main d21aaae4, at the request of the coordinating session, and published on main rebased on top of 50fc4c68 as two commits: 8e106812, the code, scripts and tests (49 files, 152 insertions and 270 deletions), then 5b08df82, this result and the current docs. The clean worktree, the release and the headless runs below are of its first version, d2c083db, which differs only by a comment of scripts/nested-qa.py.

  • Cargo. galaxy-wgpu-renderer and winit are normal dependencies. smithay drops backend_winit, which pulled in renderer_gl and wayland-egl, and names backend_egl and backend_gbm directly. Cargo.lock loses wayland-egl and the winit, wayland-client and wayland-cursor edges of smithay, nothing else. cargo tree -e features -i smithay, with and without session, lists no renderer_gl, renderer_glow or backend_winit; backend_egl is asked by the compositor and by galaxy-wgpu-renderer; glow comes only through galaxy-wgpu-renderer and wgpu-hal.
  • Differs from the step text. The step counted 262 cfg(feature = "wgpu-...") gates; at this step there were 118, all wgpu-renderer (the others went at steps 2 to 9), and all are gone. wgpu-renderer stays as an empty feature name, so that the gate commands of AGENTS.md (--features session,wgpu-renderer) keep working until step 11 changes them; it builds the same binary as session. --wgpu-effects and FALLBACK_FEATURES were already gone at step 2 and step 8.
  • Findings L4 and L5 of step 8. L5: the crate-wide allow(dead_code, unused_imports, unused_variables), the two module attributes of black_hole.rs and scene_passes.rs, the no-renderer exit and its test are gone. L4: a build without session already refused --session in run, before any socket or backend; the refusal is now session_backend, with the unit test a_build_without_the_session_feature_refuses_session_before_it_starts. The build without features (the nested development build) is Clippy-clean: the items that only drm.rs and its session-gated GPU tests use carry cfg_attr(not(feature = "session"), allow(dead_code)), the precedent of idle.rs, and frame_timing is compiled with session only.
  • Leftovers of step 8. The wgsl fields of effects::Package and workspace_theme::Loaded are no longer Option, and the None arms in plain_theme::compile and the unused directory field of Loaded go.
  • Preparer and releases. COMPOSITOR_FEATURES = ['session'] replaces WGPU_FEATURES. The stamp records "renderer": "wgpu", and a stamp without it is rebuilt once: one of steps 8 and 9 (session,wgpu-renderer) or one of the old GLES fallback build, whose features were session alone, like today. build-release.py copies renderer into the identity of a release and no longer defaults a legacy stamp to ['session']; such a release records null for both keys.
  • Verification (RX 550, RADV and radeonsi). fmt --check; Clippy with -D warnings on session, session,wgpu-renderer and no features; check --features session --tests; test 999 passed and 179 ignored (session; 998 before, plus the L4 test), 996 passed and 112 ignored (no features); the GPU suite native_wgpu_ 178 of 178 in 822 s; the Python tests of the preparer and of the releases, 56. A clean worktree of the code commit prepared in full (stamp cargoFeatures ["session"], renderer wgpu; the release build of the compositor took 93 s on the shared cache), build-release.py built a release into a scratch directory, and --verify passed. strings of the packaged binary has no renderer::gles or backend/winit path; its one GlesRenderer is a comment in the WGSL source of galaxy-wgpu-renderer ("the solid and texture programs of Smithay's GlesRenderer, in WGSL"), not a symbol. The packaged runtime ran headless through scripts/nested-qa.py --root <release> --no-build, on Vulkan and with --gpu-api gl: the desktop with its three windows, captured (media local only).
  • Not verified. A physical login, and a preparation of the login checkout itself.

Step 11: docs. openspec/specs/themes/spec.md, docs/window-effect-slots.md, docs/nested-qa.md, openspec/specs/project-loading/spec.md (lines 175 to 181, now 179, and the 321 note, plus the recovery sentence of the default switch, line 45), docs/immutable-base.md, docs/smithay-development.md, docs/architecture-decisions.md, openspec/changes/wgpu-renderer-plan/design.md (phase 4 and phase 2b results), docs/wgpu-release-plan.md, README.md, AGENTS.md. Historical evidence (wgpu-integration-progress.md, work-log-2026-11.md, portability-plan.md, haze-transition.md) is marked as history, not rewritten. Verify: grep -rn 'effects-backend\|--renderer\|renderer-gles' docs README.md AGENTS.md lists only history. Docs of steps 1 to 10 are updated in their own commits; this step has the leftovers.

Summary: 11 steps (the earlier version had 9: its step 0, freezing the references, is gone; the window and the GL path added three: steps 3, 4 and 5; the recovery and options step is new in step 6). Additive and parallel, after the default switch is published: 3, 4, 5. Independent of P1 and P2 (but after the login): 1, 2. Dependent: 6 to 11, with 7 a series of 6 or 7 commits. Rough code size of the removal is unchanged from the first version: about 3,200 lines of adapters, 3,100 of bridge (some moves to wgpu-renderer), up to 12,000 lines of GLES elements and backends (an upper bound, the files also hold generic code), 16,000 lines of parity tests, 16 .frag files; against about 3,000 to 4,500 lines added by P1 and P2 (estimates). Expect a net reduction of the order of 20,000 to 25,000 lines; an estimate from whole-file counts, not a measured diff.

Step 11 result (2026-11-12). Built on top of origin/main 5b08df82, at the request of the coordinating session, and published on main as three commits: 32ef8214, the removal of the empty feature with the gate commands; 07ebfb44, the leftover docs and this result; then the commit that marks this plan as completed and the last stale commands as history.

  • Feature. wgpu-renderer = [] is gone from native/smithay/Cargo.toml, in the same commit as the commands that passed it: AGENTS.md, docs/agent-operations.md, openspec/specs/project-loading/spec.md, docs/inverted-sphere-view.md and the native/wgpu-renderer README. cargo now refuses --features session,wgpu-renderer ("does not contain this feature"). Cargo.lock does not change.
  • Gate commands. The fourth Rust gate, check --features session,wgpu-renderer --tests, is now Clippy of the build without session (--cargo clippy --locked --all-targets -- -D warnings), the nested and headless development build that step 10 made warning-free; the Clippy line with session already compiles the ignored GPU tests.
  • Scripts and tests. No script, test or the preparer passes the feature. The stamps of scripts/test/test_shared_build_cache.py that name it are legacy stamps that the preparer rebuilds, so they stay. openspec/specs/idle-display-off/spec.md:187 is history and stays.
  • Docs. The leftovers of the step text: openspec/specs/themes/spec.md, docs/window-effect-slots.md and docs/nested-qa.md say "former GLES" where they compared with it as current; docs/architecture-decisions.md records the removal as complete; openspec/changes/wgpu-renderer-plan/design.md has phase 4b as landed and its dated results as history; the status lines of docs/README.md follow. docs/wgpu-release-plan.md and wgpu-integration-progress.md no longer exist; README.md names no GLES path. grep -rn 'effects-backend\|--renderer\|renderer-gles' docs README.md AGENTS.md lists only dated history, the steps of this plan and the current recovery sentence of openspec/specs/project-loading/spec.md.
  • Verification (RX 550, RADV and radeonsi). fmt --check; Clippy with -D warnings on session and on no features; test 999 passed and 179 ignored (session), 996 passed and 112 ignored (no features); the GPU suite native_wgpu_ 178 of 178 (the GL depth test native_wgpu_depth_blurs_only_moving_cards_and_lands_pixel_sharp_on_gl, which failed once on a pixel in the full suite of step 10 and then passed six times alone and in a rerun of the suite, passed here too); docs-governance 4 of 4. The binary is the one of step 10: the feature was empty.
  • Not verified. A physical login with the GLES-free build.

Step 5 result (2026-11-10)

Landed as code; the DRM path on OpenGL has not run, because it needs a physical login.

  • Selector. --gpu-api auto|vulkan|gl in every mode (native/smithay/src/gpu_api.rs, main.rs), and AGENT_NATIVE_GPU_API with the same values when the option is absent, also in every mode (unlike AGENT_NATIVE_RENDERER, which is read with --session only). The option wins over the variable. A bad option is a usage error; a bad value of the variable keeps auto with a line on stderr, so a login with a stale environment still starts. Under GLES composition the choice does nothing and a forced value logs a warning.
  • Choice. wgpu_output::open_renderer takes the choice. auto opens Vulkan and, when the device does not open, has no dma-buf path, fails its self-test or (for DRM) has no render format, opens OpenGL; the reason is a WARN line and is repeated in the start line ("... (auto, after vulkan: ...)"). vulkan and gl force one API: its failure is the error of the start and the other API is not tried. When neither starts under auto the error names both reasons. There is still no fallback to GLES within a run.
  • Report. The snapshot key gpuApi is "vulkan", "gl" or null (GLES composition), and gpuApiFallback is the reason auto fell from Vulkan, or null (no fall, or a forced API); state --full shows both. A fall also writes one line to stderr, outside the log filter, so the session log has it: "Agent Native: --gpu-api auto fell to OpenGL on <node>: <reason>. AGENT_NATIVE_GPU_API=vulkan (or --gpu-api vulkan) refuses this fall". Both keys are read-only: no IPC command, core route, agent tool, MCP entry, scheduled turn, generated HTML or plugin sets the API.
  • Login. The empty file ~/.config/agent-native-os/gpu-api-gl makes scripts/smithay-session.py add --gpu-api gl (ROLLBACK_FILES); a release without the option starts without it and the login log says "rollback file gpu-api-gl not applied". The recovery start is unchanged: it still asks for GLES until step 6 (decision B). renderer-gles, --renderer and AGENT_NATIVE_RENDERER are untouched.
  • DRM on OpenGL. No new DRM code was needed: DrmCompositor already allocates the GBM scanout buffers, binds them through Bind<Dmabuf> (on OpenGL an EGLImage texture as the color target, not a renderbuffer; probe G3 passed both routes), passes the frame fence as IN_FENCE_FD and flips. drm.rs only passes the choice and records the API. This path compiles and its parts are tested headless (bind into SCANOUT|RENDERING buffers up to 3840x2160, the exported native fence), but the page flip of a GL-rendered buffer has never run.
  • The nested window is Vulkan only. The window of step 3 presents its frame through a Vulkan surface of the renderer's device (WgpuRenderer::presentation(), the instance and adapter that only for_render_node keeps; a renderer on OpenGL returns None, because wgpu's GL backend runs on the renderer's own surfaceless EGL context and has no surface to present to). So for the wgpu window (--nested, with or without --renderer wgpu, since it is the default of --nested): auto means vulkan, with no fall to OpenGL (GpuApi::for_window); --gpu-api gl, or the variable with gl, is refused in main before a compositor, a socket or a window exists, with a message that names --headless --gpu-api gl as the alternative; a Vulkan failure there is the error of the start. A window on OpenGL would need a second EGL surface path and is not planned; after GLES is removed, a machine without Vulkan has the headless run and its captures, not a window. --session and --headless keep the full auto.
  • Nested QA. scripts/nested-qa.py start --gpu-api auto|vulkan|gl passes the option to the private compositor (the smallest change to that script: the argument, the pass-through and its test).

Verified in headless nested runs on the RX 550 (media in ~/.codex/artifacts/qa/galaxy-shell/2026-11-10-gpu-api/, local only): --gpu-api gl with dma-buf clients (the Electron shell and es2gears_wayland; gpuApi: "gl", 734 dma-buf commits), with --no-dmabuf (240 wl_shm commits), with the glass theme (bar glass and chat alpha glass on), an output capture, and the lock (state locked, panel ready; a capture is refused while locked, as designed); --gpu-api vulkan with the glass theme; and, with the Vulkan drivers hidden from the process (VK_ICD_FILENAMES pointing at a missing file), auto started on OpenGL with the reason in the log and --gpu-api vulkan ended the start with an error. No warning or error line in the compositor logs of the passing runs besides the fallback line.

Without proof: scanout on OpenGL at a physical login (and the IN_FENCE_FD from the EGL fence, VT switch and resume there); a machine with no Vulkan at all (hiding the drivers is the closest check); a self-test failure of Vulkan on a real device as the cause of the fallback (only the missing device was exercised; the unit tests cover the rule); performance on either API; the escape file at a real login (unit tests of smithay-session.py only); scripts/install.sh, which the dispatch copy of smithay-session.py needs, was not run.

How the owner tests OpenGL at a login, after the commits are published and the active checkout is synchronized and built: run scripts/install.sh once (no sudo; it installs the dispatch copy that knows the file and builds a new recovery release), touch ~/.config/agent-native-os/gpu-api-gl (from a text console, Ctrl+Alt+F3, if the screen is unusable), log in to Galaxy Shell, and check in the login log the line "wgpu OpenGL renderer, EGL images, self-test passed" or gpuApi in the state of the compositor. Delete the file and log in again to return to auto (Vulkan on this machine). If the OpenGL login fails, the dispatcher runs the recovery, which asks for GLES.

Review of steps 4 and 5 (2026-11-10)

Risks and limits that the independent review asked to state plainly:

  • auto can put a login on a path that never ran. Under auto, any failure of the Vulkan start, also a transient one early in a login, continues on OpenGL, and at a physical login that is the GL scanout path, which has never run. Before step 5 the same failure ended the start and the recovery came up. This is the owner's decision A and the rule is unchanged; what was added is that the fall is visible (the stderr line and gpuApiFallback above). To refuse the fall, force Vulkan: AGENT_NATIVE_GPU_API=vulkan in the environment of the login, or --gpu-api vulkan; a Vulkan failure then ends the start as before and the dispatcher runs the recovery. There is no escape file for vulkan, only for gl.
  • The Vulkan self-test changed on devices with explicit modifiers, untested. Until step 4 the self-test exported every check buffer as implicit except the LINEAR one of the implicit path, so on a device with VK_EXT_image_drm_format_modifier a buffer of a real modifier reported Invalid and every such check failed with "GBM gave ...": the explicit path could never pass. Step 4 exports a buffer as implicit only for the Invalid format (selftest::export_as, with a unit test of the decision). On the implicit path of the RX 550 the arguments are the same as before. On a GPU with modifiers the self-test now behaves differently, most likely from always failing to able to pass, and nobody has run either version there.
  • AGENT_NATIVE_GPU_API is read in every mode, unlike AGENT_NATIVE_RENDERER (--session only). A stale gl in the environment therefore also refuses the nested window on wgpu, and a stale vulkan removes the fall of a headless run. nested-qa.py strips every AGENT_NATIVE_* variable from its runs.
  • Every GL and Vulkan-versus-GL test is #[ignore] (they need the GPU), so the normal gates do not run them; only -- --ignored native_wgpu_ on a machine with the render node does. The gates cover the selector (gpu_api.rs, the options) and the self-test decision above.
  • An EGL image texture is not cleared before its first LoadOp::Load. The import hands wgpu the texture as already holding content (create_texture_from_hal with the RESOURCE or COLOR_TARGET state). Covered by native_wgpu_renderer_gl_first_frame_keeps_the_buffer_content (the Vulkan renderer fills a GBM buffer, the GL renderer imports it for the first time and draws only the damage; nothing outside the damage changes), and for sampled buffers by every client format comparison, which reads GBM-written content through a fresh import.
  • Review fixes in the renderer: the drain of stale GL errors is bounded (a lost context reports CONTEXT_LOST without end); when the EGL context cannot be made current, imports, submissions and waits return an error, and a texture drop leaks its GL texture and EGL image with a warning instead of deleting in another context; a failed fence export warns once, then logs at debug.

Step 7 batch 1: mirrors

Tests only, 2026-11-11 (commits 95cebd70, 51de1747, b94cf5b1 and the follow-up that closed the review gaps). Before the GLES scene and its egl_ GPU tests go, the behaviors that only they covered are mirrored on the plain scene of the wgpu renderer, with analytic or self-consistency expectations and no GLES reference. M1 to M4 are in native/smithay/src/wgpu_scene_tests.rs, and M1 also has GPU tests there; the others are named by file. Every GPU test is #[ignore] (run with --ignored --test-threads=1), and "+ GL" means a twin with the suffix _on_gl that runs on the OpenGL API of wgpu.

Cluster Source egl_ tests (all in session_lock_tests.rs unless a module is named) New wgpu tests
M1 locks egl_shell_lock_shows_only_the_host_lock_panel, egl_every_output_shows_its_lock_surface_or_black_and_never_the_desktop, egl_locked_scene_shows_only_the_lock_surface wgpu_scene_tests.rs: a_locked_plain_frame_holds_only_the_lock_content_on_every_output, the_plain_shell_lock_holds_only_the_host_lock_panel_and_it_is_hidden_unlocked, the_plain_shell_lock_panel_is_the_only_item_on_the_primary_output_and_no_wallpaper_or_chat, every_plain_output_shows_its_lock_surface_or_nothing_and_never_the_desktop, a_protocol_lock_on_one_output_draws_only_its_lock_surface_and_the_application_returns (items: the identity of each lock surface, placement and clip equal the whole output); GPU, + GL: native_wgpu_renderer_lock_every_output_draws_its_own_surface_or_black, native_wgpu_renderer_lock_protocol_client_draws_only_its_surface_and_the_application_returns (pixels: each output its own colour, black without a buffer, the application back after the unlock)
M2 dragged-in guest window_grab_tests.rs: egl_a_window_dragged_in_from_another_output_draws_below_the_chat, egl_the_dialog_of_a_dragged_in_window_draws_above_it wgpu_scene_tests.rs: a_plain_window_dragged_in_from_another_output_draws_above_the_tiles_and_below_the_chat, the_dialog_of_a_plain_dragged_in_window_draws_above_it_and_below_the_chat (items only, no GPU)
M3 wallpaper on a second output egl_the_wallpaper_covers_the_second_output_behind_its_windows wgpu_scene_tests.rs: the_plain_wallpaper_covers_the_second_output_behind_its_windows_only_once_the_host_declared_it (items only, no GPU)
M4 three outputs egl_each_of_three_outputs_draws_only_its_own_windows_in_local_coordinates, egl_a_window_on_the_second_output_draws_in_its_local_coordinates wgpu_scene_tests.rs: each_of_three_plain_outputs_draws_only_its_own_windows_in_local_coordinates, an_extra_output_draws_its_windows_in_local_coordinates_and_another_output_nothing (items only, no GPU; the second is older than this batch)
M5 chat glass glass_mask_scene_tests.rs: egl_the_backdrop_of_the_glass_keeps_the_whole_application, egl_the_mask_follows_the_alpha_and_ignores_the_regions, egl_the_snapshot_says_false_when_the_mask_did_not_draw, egl_a_window_over_the_budget_draws_no_glass; output_chats_tests.rs: egl_two_chats_keep_their_own_mask_targets_and_the_budget_refuses_the_second; chat_dock_tests.rs: egl_chat_glass_regions_blur_only_the_reported_regions wgpu_scene_tests.rs (+ GL each): native_wgpu_chat_glass_backdrop_keeps_the_whole_application, native_wgpu_chat_mask_follows_the_alpha_and_ignores_the_regions, native_wgpu_chat_alpha_glass_snapshot_says_false_when_the_mask_did_not_draw, native_wgpu_a_window_over_the_budget_draws_no_glass, native_wgpu_two_chats_keep_their_own_mask_targets_and_the_budget_refuses_the_second, native_wgpu_chat_glass_regions_blur_only_the_reported_regions; native_wgpu_renderer_chat_glass_scene_draws_regions_and_alpha_glass (Vulkan only)
M6 bar glass egl_bar_glass_blurs_only_the_reported_pill_under_the_bar, egl_bar_glass_saturates_the_pill_and_leaves_panels_unchanged wgpu_scene_tests.rs (+ GL each): native_wgpu_bar_glass_blurs_only_the_reported_pill_under_the_bar, native_wgpu_bar_glass_saturates_the_pill_and_leaves_panels_unchanged
M7 mask pipeline glass_mask_tests.rs: egl_a_thin_strip_is_not_all_rim, egl_a_rim_at_an_odd_row_has_no_step, egl_a_free_thin_strip_matches_the_analytic_glass, egl_opaque_pixels_leave_no_hole_in_the_glass, egl_false_glass_cases, egl_static_glass_does_not_invalidate_the_output wgpu_renderer_glass_tests.rs (+ GL each): native_wgpu_a_thin_strip_is_not_all_rim, native_wgpu_a_rim_at_an_odd_row_has_no_step, native_wgpu_a_free_thin_strip_matches_the_analytic_glass, native_wgpu_opaque_pixels_leave_no_hole_in_the_glass, native_wgpu_false_glass_cases, native_wgpu_static_glass_does_not_invalidate_the_output
M8 lens canvas_warp.rs: egl_the_shader_samples_the_flat_point_of_each_screen_pixel, egl_a_finished_window_keeps_its_left_and_top_in_the_group wgpu_renderer_warp_tests.rs (+ GL each): native_wgpu_lens_shader_samples_the_flat_point_of_each_screen_pixel, native_wgpu_lens_finished_window_keeps_its_left_and_top_in_the_group
M9 window close black_hole_tests.rs: egl_close_follows_the_motion_timing, egl_close_scale_fits_the_smaller_centered_rectangle, egl_close_opacity_zero_draws_nothing, egl_close_translate_x_moves_the_content_by_half_a_width, egl_close_margin_with_the_remapping_is_the_identity_at_progress_zero, egl_close_flip_example_starts_as_the_window_and_turns, egl_theme_window_close_ignores_the_motion_timing wgpu_renderer_black_hole_tests.rs (+ GL each): native_wgpu_close_follows_the_motion_timing, native_wgpu_close_scale_fits_the_smaller_centered_rectangle, native_wgpu_close_opacity_zero_draws_nothing, native_wgpu_close_translate_x_moves_the_content_by_half_a_width, native_wgpu_close_margin_with_the_remapping_is_the_identity_at_progress_zero, native_wgpu_close_flip_example_starts_as_the_window_and_turns, native_wgpu_theme_window_close_ignores_the_motion_timing
M10 finish and cache window_finish.rs: egl_a_far_window_averages_its_fine_lines_to_one_gray, egl_the_filter_without_a_frame_keeps_the_corners_and_the_edges, egl_camouflage_reveals_static_content_with_fixed_geometry_and_final_damage; sharp_zoom.rs: egl_a_style_change_damages_an_output_with_a_cached_window wgpu_renderer_finish_tests.rs (+ GL each): native_wgpu_a_far_window_averages_its_fine_lines_to_one_gray, native_wgpu_the_filter_without_a_frame_keeps_the_corners_and_the_edges, native_wgpu_camouflage_reveals_static_content_with_fixed_geometry_and_final_damage; wgpu_renderer_sharp_zoom_tests.rs (+ GL): native_wgpu_a_style_change_damages_an_output_with_a_cached_window
M11 cached far view shared_cameras_tests.rs: a_window_cached_for_a_far_view_draws_live_in_a_near_view (EGL, ignored) shared_cameras_tests.rs (+ GL): native_wgpu_a_window_cached_for_a_far_view_draws_live_in_a_near_view

Update 2026-11-11: the source egl_ tests of this table have been deleted with the GLES scene (Step 7 result), except the 11 listed there that stay on the reduced scene until step 8. Three more mirrors were written during the removals, beyond the table (each with an _on_gl twin):

  • native_wgpu_glass_blurs_backdrop_keeps_controls_sharp_and_budgets_the_targets (wgpu_renderer_glass_tests.rs), for egl_glass_blurs_backdrop_keeps_controls_sharp_and_updates_without_readback;
  • native_wgpu_depth_blurs_only_moving_cards_and_lands_pixel_sharp (wgpu_renderer_workspace_tests.rs), for egl_depth_blurs_only_moving_cards_and_lands_pixel_sharp;
  • native_wgpu_the_outline_of_a_visual_style_is_rounded_in_the_accent (wgpu_renderer_finish_tests.rs), for egl_the_outline_of_a_visual_style_is_rounded_in_the_accent.

Notes.

  1. Accepted gap (a coordination decision of the session that ran the batch, not the owner's): the converted glass tests prove that the glass shows only by "at least one pixel differs from the backdrop inside the bounds, and none outside", or by the analytic spread of a striped backdrop. No reference is left for the absolute colour, the blur and the material of the glass; a change in how they look is caught by eye in QA, as gap 1 of the section below already says.
  2. Seven egl_ tests already fail on main. Their mirrors are the first working check of those behaviors: M1 replaces egl_shell_lock_shows_only_the_host_lock_panel; M2 replaces egl_a_window_dragged_in_from_another_output_draws_below_the_chat; M3 replaces egl_the_wallpaper_covers_the_second_output_behind_its_windows; M5 replaces egl_the_backdrop_of_the_glass_keeps_the_whole_application, egl_the_mask_follows_the_alpha_and_ignores_the_regions and egl_chat_glass_regions_blur_only_the_reported_regions; M6 replaces egl_bar_glass_saturates_the_pill_and_leaves_panels_unchanged.
  3. An eighth ignored GLES test fails on main and was never in the egl_ counts, because its name has no egl_ prefix: output_canvas_tests.rs, the_scene_of_the_extra_output_draws_its_canvas_windows (no green pixel of the window in the GLES frame of the extra output). The batch did not touch it and did not look for its cause. Whether the wgpu scene has a pixel check of a Canvas workspace on an extra output is open; the removal of its GLES half must answer that before the test goes. Answered at step 8: the wgpu scene had no such check, and native_wgpu_the_scene_of_the_extra_output_draws_its_canvas_windows (+ GL) adds it. The GLES test failed because of its setup, not of the renderer: the chat of the extra output covers the green window. The mirror asserts the chat over it, then the window after the chat is hidden; the GLES test went at step 8.

Tests after the parity is deleted

Decision 5 deletes the comparison with GLES and freezes no images. What still covers the renderer:

  • Startup self-tests of the wgpu renderer (selftest.rs, the dma-buf self-test that must pass before anything imports or binds, and their failure tests native_wgpu_renderer_dma_self_test_*).
  • Analytic and self-consistency tests that never needed GLES: glass_mask_tests.rs analytic strip, the wgpu_effects_tests.rs case "partial repaint matches full repaint", and the "damaged frames against whole frames" checks of the plain scene.
  • Structure tests of the plain scene (what is drawn, in what order, with which clips), after they lose the GLES plan as the expected value: some become fixed expectations, some are deleted.
  • The unit tests of layout, geometry and protocol that do not draw, and the protocol manifest tests.
  • Headless nested QA with synthetic clients (and, after step 3, the wgpu window).
  • The new GL-path tests of step 4, including the Vulkan versus GL comparison of the same scenes on the two wgpu APIs (decision C). It is the only reference of the GL path and it is not a comparison with GLES.

Gaps this opens, accepted by the owner's answer:

  1. No reference for the colour, blur, glass material, workspace card depth and shadow, window finish radius and the F9 theme passes. A regression in how these look is caught only by eye in QA.
  2. The format and transform matrix (10-bit and half-float, buffer transforms, output transforms, element alpha) loses its oracle; only the analytic or self-consistency cases remain.
  3. A change of GPU driver (Mesa update) can change the pixels with nothing to flag it; the per-driver bounds of the parity tests were the only guard.
  4. The client dma-buf format list (the nine formats) loses its comparison with GLES; keep a fixed expected set per device.
  5. The GL backend (step 4) has no GLES reference; the Vulkan versus GL comparison of decision C covers the scenes it lists, and nothing beyond them.

Further cheap mitigations that do not need images, available if the owner wants them: a Vulkan versus GL comparison of the same wgpu scene (parity between two wgpu backends, not with GLES), a transform symmetry check (render with a transform, undo it, compare with the normal render), a determinism check (two draws of the same frame are identical), and a nested screenshot reviewed by eye at each milestone.

Recovery without GLES in the binary

How the login recovers today: the dispatcher runs fallbackRoot once, with the same profile, when preparation or the session fails (project-loading.md, lines 43 to 45), and scripts/install.sh without --fallback-root builds a release of the checkout commit as that recovery (immutable-base.md, phase 2). A release ships its own compositor and the supervisor never rolls back to one inside a running login. Since the default switch the recovery start asks for GLES (until step 6, 2026-11-11: it exports AGENT_NATIVE_GPU_API=gl and still AGENT_NATIVE_RENDERER=gles, see Step 6 result).

After the removal, by decision 4:

  • The recovery is the last good wgpu release. install.sh without --fallback-root already builds the recovery from the checkout; the owner's answer makes that the rule, with one condition: renew it only from a commit that has passed a nested run and, for the first renewal, only after step 5, because a wgpu release from before the GL path has no second GPU API.
  • The risk. A failure of the wgpu renderer on this machine takes down the login and the recovery together, and there is no GLES left to catch it. Two kinds of failure differ. A failure of the Vulkan device or driver (a Mesa update, a bad self-test) is mitigated by the GL backend: the recovery start asks for --gpu-api gl, so it does not repeat the Vulkan path. A failure of the compositor's own wgpu code (the plain scene, a WGSL pass, the wgpu crate) is not mitigated, because both paths share it: only an older release, from before the bug, helps. So keep at least the previous recovery release on disk until the new one has run a login (the installer keeps the registered recovery and the running root, see immutable-base.md line 278), and when a login fails inside shared wgpu code, the way out is the earlier release or another shell on GDM, as the owner said on 2026-11-09 ("I can switch to another shell if thats the case").
  • A release that lacks the option. A recovery release older than step 5 does not know --gpu-api and the file gpu-api-gl; the session script of the release ignores what it does not know (the pattern of ROLLBACK_FILES documents this), so it runs its own default. Confirm in a nested run of that exact release before a step changes the launcher.
  • Interim, until step 6 (decision B; step 6 landed on 2026-11-11 and kept the GLES variable for the registered recovery release, decision H). The recovery of the default switch asks for GLES and keeps doing so until the step that removes the options: a wgpu-only recovery has no second API before step 5, and the removal of the GLES request goes with the step that gives its replacement. State this in openspec/specs/project-loading/spec.md.
  • A theme that create_theme writes after step 1 is WGSL only. A recovery release older than step 1 needs effect.frag, so it shows a plain look, not a broken login. Confirm in a nested run of the old release against a copy of the profile before step 1 lands.
  • docs/immutable-base.md: the Recovery section says that the recovery is the last good wgpu release, that it is renewed by install.sh or --fallback-root, the interim, the two failure kinds above, and that a login with neither Vulkan nor GL has no composition path. The line "A release ships its own compositor" stays.
  • openspec/specs/project-loading/spec.md: the paragraph "Build features and the fallback" (the paragraph at line 179) loses the retry without wgpu-renderer: a compile error in native/wgpu-renderer blocks the login build, and the single-fallback rule runs the recovery release. The sentence of 2b23323c about AGENT_NATIVE_RENDERER=gles is replaced by the --gpu-api gl rule. The line about the removed "Galaxy Shell (wgpu)" GDM entry (319) becomes history.
  • Do not claim that a recovery works until a nested run of that exact release against a copy of the profile has passed.

Open points

None blocks a step. The points that the first revision brought back are answered in Owner decisions (A to F), and the contradictions it listed are settled:

  • A selector of the GPU API (answer A) is the one new startup input; answer 6 removes the three renderer inputs, not the choice of API.
  • The recovery keeps asking for GLES until step 6 (answer B), and is wgpu with gl after it.
  • The OpenGL path has the Vulkan versus GL comparison as its reference (answer C).
  • Steps 3 to 5 start after the default switch is published and before the login, which gates only deletion (answer D).

Facts to re-check when the work starts, not decisions:

  • Line numbers are those of 4f3abfe0; re-read them before a step starts, since the files change fast.
  • Whether the parent display of the owner offers a presentable surface for the window of step 3 (answer F decides what happens if not).
  • Whether WgpuRenderer can run on a software device; nothing in this plan depends on it.

Risks that are not covered by the gates

  • The DRM path has no automated test; step 5 (GL scanout) and step 8 are proven by the compile gate and the owner's physical login. The GL scanout path has never run.
  • Machines without Vulkan cannot be tested here. A forced --gpu-api gl on this machine is the closest check and does not prove a Vulkan-less driver stack.
  • Removing the references leaves the plain scene and the GL path with less automated coverage than the code had; the plain scene is the whole product renderer.
  • Deleting about 20,000 lines while another session changes native/smithay/src makes rebases heavy. Take one step at a time, rebase onto origin/main before reporting, and run the gates again, as AGENTS.md says for parallel worktrees.
  • Docs history: the progress log wgpu-integration-progress.md was removed on 2026-11-11 (docs/README.md says where it is in git).