Skip to content

Latest commit

 

History

History
1099 lines (922 loc) · 69.7 KB

IMPLEMENTATION.md

File metadata and controls

1099 lines (922 loc) · 69.7 KB

Implementation status

The active objective is to complete the acceptance criteria in gaps.md and improve maintainability without changing API/ABI contracts during structural refactors. A probe passing does not close an entire gap.

Blender shader interfaces (2026-09-09)

Automatic ClipDistance preparation preserves shader interface declarations and only removes capabilities proven unused. This fixes Mali Blender's VS/GS block mismatch. Both drivers' startup observations now have zero post-compatibility VVL errors/warnings; actual captured VS/GS/FS modules match the original bytes. Existing device probes and rebuilt/installed product teapot regressions pass. Evidence and remaining scope distinguish startup observation from the unfinished acquire-fix packaging and full workflows.

Device feature chains (2026-09-09)

The shared layer now translates emulated ClipDistance requests in both legacy features and Features2 input chains. This fixes Mali Zink teapot device creation. Both drivers pass the existing core-feature device probe, including chain order and input preservation, and product GLX/Wayland present/resize pixel gates after an actual APK rebuild/install. Evidence and limits retain VVL warnings and the remaining application/compatibility failures. Blender through Zink is not required; Blender acceptance uses direct Vulkan.

Unified window integration tests (2026-09-08)

One tests/wsi/run.py --platform wayland|xcb|xlib entry attaches to an installed, already running compositor APK. It builds/deploys only clients and libhybris. Xwayland, TAWC-DRI patches and APK packaging/lifecycle belong to the external compositor/desktop project; their former builders and private-server launcher have been removed from this repository. The runner leaves the service running and retains identity, FD snapshots and client cleanup. See the ownership change and validation. The following unified-fixture results predate this ownership change.

X11 resize now marks stale chains out of date, preserves failed-acquire outputs and consumes waits even when presentation is rejected. Redmi and Mali passed all 26 unified invocations (28 clients), including XCB/Xlib resize and Wayland validation/capture regressions. An intentional host timeout also cleaned up. Review and exact evidence retain earlier failures and state the remaining race, multiwindow and lifetime gaps.

X11 Vulkan developer path (2026-09-08)

The standard ICD now provides experimental XCB/Xlib WSI using TAWC-DRI 0.3. Separate native-window owners share the existing swapchain implementation; X11 buffer reuse follows protocol release events. The tests/x11 clients build only and run through tests/wsi/run.py against an externally managed local display. Server building, APK packaging and server lifecycle are outside libhybris. The following device results used the previous private-server fixture. Adreno and Mali passed all twelve final XCB/Xlib cases with VVL/SyncVal; the same production build passed Wayland swapchain review and headless regressions on both. No Mesa or anlabwc modification was needed. Reproduction, provenance and evidence document the fixed-size rootful single-window scope of that first fixture. Later unified tests/wsi/run.py coverage added XCB/Xlib resize/out-of-date and native-X surface-lost. G11 remains open for multiwindow, disconnect recovery, delayed release and longer lifetime coverage. hybris EGL X11 is not a remaining product path.

Maintained dependency forks (2026-09-08)

GFXReconstruct's empty-submit fix and SPIRV-Tools' debug-iterator fix now live in taowen/gfxreconstruct and taowen/SPIRV-Tools, both on branch arlinux. Builders pin their fork commits directly; the two build-time patches have been removed. Both AArch64 builds and the applicable Redmi/Mali capture and validation regressions pass. Fork pins and exact migration checks retain replay comparison limits and the known unresolved failures.

Current Mesa dependency

Current desktop-GL probes reuse the product Mesa build (taowen/mesa arlinux-wsi at bfe5f4ceb762504532ccdd7f19c1c2cdd31791b4). Official unmodified upstream c3b008c1 remains historical offscreen evidence only. The product fork is based on that upstream commit with the shared WSI changes committed directly. The product handoff is in Arlinux's docs/GRAPHICS_CONSOLIDATION.md. Both use this libhybris repository. Since 734ec73, Arlinux's protocols/ is the sole wire-contract source, selected for standalone builds by ARLINUX_WSI_PROTOCOL_DIR. Window regressions attach to the running Arlinux (io.taowen.arlinux.debian, X display :1). Surface formats are based on AHB import queries, not ordinary-image support. The inspected X300 MMUD loader workaround now activates automatically for its known driver build, including EGL-first processes. Mixed-API, Wayland/XCB validation and installed-Arlinux GLX/EGL teapot checks pass with newly staged libraries and no MMUD environment override; explicit disable reproduces the pipeline crash. Evidence and scope retain the remaining MMUD optimization limits. Compositor read_pixels, screen-capture protocol and GPU reset recovery remain outside current coverage.

The parent submodule URL, build, packaging and launch defaults no longer depend on Freedreno Gallium KGSL or private Zink conversion. Earlier fork results below are historical. Official Turnip passes both EGL/GLX runs with 38 identical images, 44 valid SPIR-V modules and no SyncVal errors. Official Mali Zink rejects GL 3.3 and fails the GL 3.2 packed-attribute regression; installed Blender waits at its OpenGL 4.3 requirement dialog. No capability is overridden. Desktop-gl README records the exact upstream results. Per the current user requirement, Blender compatibility through Zink is not an acceptance gate; its failed startup remains an observation, not a reason to maintain a Mesa fork. libhybris continues to support the Android vendor-driver path on both Qualcomm and Mali; Qualcomm can alternatively use the independent official Turnip backend. The choice is per device/workload, not a restriction of libhybris to Mali or a Turnip connection through the hybris ICD.

Delivery order

  1. Split existing code along ownership boundaries; preserve exported ABI and run the existing device baseline after each production change.
  2. Finish independent build/provenance (G01), then generated Vulkan entry coverage and per-object dispatch (G02/G03).
  3. Prove standard loader/layer integration (G04) before compatibility transformations; retain ordinary passthrough as a comparison.
  4. Add capability differences and bounded draw/resource evidence (G05/G06/G12).
  5. Implement only format/shader/synchronization behavior with a reproducible workload, precise capability gating and reference output.
  6. Evaluate desktop GL requirements, implement WSI lifecycle coverage, and reproduce application failures on their original devices.

Independent smoke/semantic/device workloads are used for verification. No new unit-test suite or general capture/replay engine is planned. Completed batches are committed and pushed separately to taowen/arlinux.

Remaining acceptance work

An initial scaled vertex fallback now lives in hybris/vulkan/compat/ and is wired into the standard ICD's format queries, shader modules and graphics pipeline creation. It is opt-in (HYBRIS_VULKAN_COMPAT_SCALED_VERTEX=1), applies to 12 R/RG/RGBA 8/16-bit scaled formats missing from the vendor, and uses integer fetch plus SPIR-V conversion. Redmi Adreno's missing formats now produce the expected pixels; Mali retains native support, with a separate forced diagnostic run exercising conversion. Four loader routes, VVL/SyncVal, original/converted module validation and callback allocation balance are covered by the fixed probe. Multi-entry modules now receive stage-specific temporary modules with reachable function/global dependencies retained; a three-entry shared module and helper-function push-constant reads pass on Adreno and Mali. Adreno required removing unreachable declarations as well as unused entry-point declarations. The shared SPIR-V scans now exclude definite literal operands using pinned grammar metadata; a valid shader with input ID 3 and shuffle index 3 no longer fails conversion. Old/new Adreno runs use identical probe binaries, and Mali native/forced controls pass. Ambiguous operand layouts remain conservative. This is an experimental shader/pipeline subset: G07/G08 remain open, including general interfaces, dynamic vertex input, shader objects and graphics pipeline libraries. A default-off BC1–BC7 image subset is now connected to the ICD. BC7 evidence retains a Redmi native sRGB filtering reference failure. BC6H image support is implemented with remaining Redmi filtering/border failures. The remaining image semantics, Unused clip/cull declarations can now be removed safely in the tested ordinary output forms; active clipping/culling remains open. Constant PointSize cleanup now operates per eligible non-point pipeline and preserves point draws, reads and mixed writes. Software timeline emulation is a separate G09 design problem; Vortek's timeline file only transports native waits (see source audit). Full boundaries and evidence are in the ICD and baseline READMEs. Mesa remains unmodified upstream; this code connects vendor drivers.

Condition-variable ABI hooks and Android futex wake helpers now live in hybris/common/bionic_cond.c; mutex/rwlock hooks and the shared static-object publication lock remain in bionic_sync.c. The original file shrinks from 1003 to 660 lines. The moved hook/helper bodies are preserved, the shared mutex predicate is a private inline helper, and all 133 defined dynamic symbols retain their names, types, bindings and visibility. A clean AArch64 build and 19 existing cases on each of Mali and Adreno pass. This structural change does not validate shared-condition waiting or destruction with waiters; those existing semantics remain open under G03.

The new Vulkan 1.0 memory-range workload requires genuinely non-coherent upload/readback memory and tests partial flush/invalidate with nonzero buffer binding offsets. Four rounds update a subrange, reuse one command buffer and check the copied data plus unchanged neighbors. Mali native/frontend/ICD and standard validation pass; atom size 64, binding offset 64 and partial ranges are recorded in memory and synchronization. Adreno vendor lacks a compatible non-coherent host-visible type and all four paths report unsupported. This adds successful finite-range coverage, not allocation-end/partial-mapping or concurrent-atom coverage; G09 remains partial.

The timeline probe now includes two same-family queues and actual buffer visibility: submit the waiting consumer first, fill on the producer, then copy/read back 1024 exact words, repeated four times with GPU-ordered reuse. Mali native/frontend/ICD core and KHR paths pass using non-coherent readback memory; both dual-queue standard ICD validation/SyncVal runs report zero errors. Adreno vendor timeline requirements are unsupported; official Turnip on Redmi, tested separately through the standard loader without libhybris, exposes only one queue and rejects this workload before submission. The independent transfer helper is separate from timeline setup/host-command coverage. Partial-range flushes, cross-family ownership and concurrent host submissions remain outside this batch; G09 is still partial. Exact records and limits are in memory and synchronization.

The allocator workload now lives in tests/baseline/probe_alloc.c, separate from concurrent first-initialization code. Direct ICD enumeration refuses callback allocations before physical ownership registration, then restores allocation and creates/destroys a device from the recovered handle. Ordinary, core group and KHR group routes each return OUT_OF_HOST_MEMORY with one attempt and unchanged live allocation count on Adreno 650 and Mali-G1-Ultra; all three rounds end with zero live callback allocations. Each device passes nine selected initialization/allocator cases. See ICD lifecycle for run IDs and limitations; G03 remains partial.

The relative condition wait validates seconds/nanoseconds and checked deadline addition, then uses CLOCK_MONOTONIC through the existing clockwait bridge. It no longer normalizes invalid nanoseconds into a successful wait or relies on a realtime absolute deadline. The clock probe covers normal 100 ms waiting and invalid/overflowing durations; wall-clock jumps and shared waits remain unverified. Reusing the clockwait path removes duplicate object translation.

The two Android cond_timedwait_monotonic aliases now call the clockwait bridge with CLOCK_MONOTONIC, rather than interpreting uptime deadlines with the condition variable's realtime default. A bionic fixture calls both aliases with 100 ms deadlines and checks ETIMEDOUT after a non-immediate interval. Shared conditions, clock jumps, relative deadlines and cancellation remain outside this process-private timeout check.

The EGL lifecycle workload now draws with distinct blue/yellow fragment programs in the isolated contexts after each clear. Current program and vertex-attribute state persist across switches, thread migration and concurrent worker loops without rebinding. Exact center pixels distinguish draw output from the red/green clear checks. This adds independent threaded shader draws, not shared-resource synchronization or proof of overlapping GPU execution.

Surface capability wrappers resolve their Android-loader ELF trampolines during frontend construction rather than racing on lazy cache writes. Missing entries return EXTENSION_NOT_PRESENT. The capabilities2 wrapper no longer falls back to the legacy query, which cannot satisfy input/output pNext chains, and no longer tries the invalid GIPA(NULL) scope for a physical-device command. Physical-device-to-instance dispatch ownership and live WSI validation remain open; this is not a complete per-object dispatch implementation.

The isolated EGL contexts also run on two threads: both make their context current before a host gate releases their clear/readback loops. Each checks its own context/surface, buffer binding/size and exact red or green pixel for eight iterations, releases thread state, and returns to main for another state check. This tests simultaneous current contexts, not guaranteed GPU execution overlap, shared-resource hazards or concurrent shader draws.

The EGL lifecycle workload now also creates a share group of two GLES2 contexts. It checks shared buffer size changes, exact shared-texture pixels, independent buffer binding state and continued access after destroying the creating context. Three cycles use explicit completion before switching and reattach the texture in the consumer context. Concurrent rendering and shared object deletion while still referenced remain outside this workload.

caps2 now compares six core 1.1 property structures as a chain and as individual queries: ID, subgroup, point clipping, multiview, protected memory and maintenance3. Core properties compare named fields against the legacy query; LUID fields compare only when valid. The runner preserves features2/ properties2 backend differences separately in capability2-differences.json. These queries do not prove shader behavior or supported resource sizes.

Swapchain creation now resolves the real function through the current device's GDPA before preparing WSI. Wayland surface creation/destruction resolves through the current instance's GIPA instead of caching the first instance's pointer; destroy uses the proper void-return PFN type. wsi-disabled checks the frontend's deliberate rejection policy for an unsupported direct-export call. This is not a complete per-object dispatch table or working Wayland WSI proof.

Missing shared-memory backing now returns failure before the allocator or translator touches the shared header. Mutex/condition/rwlock initialization returns ENOMEM when no backing object is obtained. shared-unavailable exercises actual bionic imports when glibc's /dev/shm is absent; this does not implement Android ashmem support or validate working process-shared locks. Shared rwlock destruction now translates its tagged handle before calling glibc. Mutex timedlock and timeout_np likewise translate shared handles before waiting, and these three paths return EINVAL when translation has no backing. This is a code-path correction with build/private-path regression coverage; working shared-object execution is not validated on the current devices, which lack /dev/shm. The allocator's mapping/growth/concurrent-open behavior still needs further work.

common/bionic_sync.c owns static synchronization publication, backing allocation, mutex/condition/rwlock ABI hooks and shared-handle translation. Its private header contains initializer values and cross-file declarations; hooks.c retains symbol registration. Moving the 17 mutex/condition hooks removed 541 lines, and moving the 15 rwlock/attribute hooks removed another 225 lines. Existing Android condition pulse and rwlock kind accessor exports retain their ABI; newly cross-file hooks remain hidden. These structural changes preserve the existing shared-memory behavior and its limitations. The rwlock split passed runs 20260907T031532-6df22c8a and 20260907T031532-c897f4f0 (63 PASS / 2 UNSUPPORTED each), with the common 130-symbol and Vulkan 643-symbol defined export sets unchanged. The mutex/condition split passed runs 20260907T030507-d17a9d9b and 20260907T030507-63e6a157 (61 PASS / 2 UNSUPPORTED each).

Destroying an unused process-private static mutex, condition or rwlock now succeeds without treating its initializer as a glibc pointer. The independent sync-destroy case covers normal/recursive/errorcheck mutexes, a condition and a rwlock, then explicitly reinitializes the same storage and exercises another valid lifecycle. Native and hybris execute the same bionic source. This does not cover active-object destruction, double destroy or shared synchronization.

Rwlock kind attributes now translate bionic's reader/nonrecursive-writer values (0/1) to glibc's corresponding policies (0/2), and translate queries back. Values outside bionic's two-policy domain return EINVAL without changing the attribute. rwlock-kind compares native and hybris defaults, round trips, invalid values and ordinary lock lifecycle; it does not prove starvation or fairness behavior under sustained reader/writer contention. Runs 20260907T032015-6cdbdcb6 and 20260907T032015-9862e194 each complete 65 PASS / 2 UNSUPPORTED after rebuilding, including validation and capture.

Static condition-variable lookup and first allocation now use the same short host publication guard as mutexes/rwlocks. Signal, broadcast and all four wait wrappers share it, while actual waiting happens after the guard is released. cond-init races a timed waiter with signal/broadcast on 32 fresh bionic condition variables and releases a mutex-protected predicate. The old library also passed this run; the race is established by code review, not a captured lost wakeup. Shared conditions, alternate clocks and destruction with waiters remain unverified.

Static rwlock first use now rechecks and publishes its backing pointer under the same short host guard used for static mutexes. The independent rwlock-init workload adds 32 fresh locks, four competing writers, four simultaneous readers and try-write rejection while readers hold each lock. The pre-fix library times out on this workload. This does not close condition-variable races, process-shared rwlock behavior, timed operations or fairness requirements.

Vulkan platform loading and global function setup now each use pthread_once. The module is published after init_module returns; null/Wayland global create and enumeration pointers are resolved during setup instead of written lazily by concurrent API callers. vk-init exercises simultaneous first global operations and independent instance creation/query/destruction. This is an initialization fix, not a per-instance/device dispatch or generation table. The new workload exposed further first-use failures after the platform fix. Static Android mutex translation now serializes backing-pointer lookup and initialization, including four-byte-aligned bionic storage. A bionic DSO workload checks 32 fresh static locks with four concurrent users. Two device runs each complete 56 PASS / 2 UNSUPPORTED; archived pre-fix common times out on the mutex workload, while the new common passes eight fresh processes. Condition-variable lazy initialization, process-shared semantics and lookup-lock performance still need separate work.

Promoted TLS registration now replays every entry missing from the calling thread before advancing its initialization cursor. Previously a thread promoting a later module could skip earlier modules registered by another thread. The independent tls-bounds workload checks cross-thread initial values and that catch-up preserves already-mutated TLS bytes. This addresses registry replay; it does not provide slot reclamation, IE first-touch or signal reentrancy.

Gap State Next concrete evidence
G01 AArch64 baseline verified Standalone default build, fixed inputs/toolchain, library/probe hashes and sampled runtime mappings verified on two devices; see build evidence.
G02 Partial 726-command pinned registry query table and four-route transfer workload verified; core/KHR memory2 calls verified. Still need per-object dispatch/compat state and broader enabled-feature semantics.
G03 Partial Observe TLS allocation/destruction and generation handling; exercise GLES multiple contexts and cross-thread teardown.
G04 Partial Standard-loader → vendor-HAL ICD headless path passes eight cases on both devices. Standard glibc VVL legal/illegal lifecycle cases also pass on both devices. Fixed headless widget capture/replay now matches all RGBA bytes. The ICD Wayland window probe now also passes Khronos VVL+SyncVal create/render/resize/retirement/destroy and GFXReconstruct virtual-swapchain copy dumps on OnePlus 8T and Mali; still need arbitrary application coverage.
G05 Partial Machine-readable raw/effective features2, limits/extensions/format queries and corresponding CreateDevice behavior.
G06 Partial Fixed captures now reconstruct four dynamic UBOs across two sets and an array and identify the changed descriptor/first divergent draw. The desktop GL capture also indexes recorded vertex inputs and submit references; saved converter binaries now provide CPU-upload/copy provenance for four indirect-count draws on Mali and Turnip. GPU argument contents and linked pipeline-library state remain unresolved. Default descriptor-buffer replay stops at image-view creation; explicit lazy-mode replay with the tool's empty-submit fix matches Mali's 15 saved images, including eight rendering failures. Turnip replay retains a multidraw pixel mismatch. General history and runtime resource generations remain open; see the multi-descriptor evidence.
G07 Open Default-off BC1–BC7 image operations have independent native sampling/byte references, mip/layer/subregion and retirement probes. BC4/BC5 include UNORM16/SNORM16 sampling, filtering and border/default-channel checks. Native RGB8 fixes the tested Mali BC1 RGB border case; Redmi remains FAIL. BC7 passes on Mali but retains a native sRGB filtering reference failure on Redmi. BC6H passes on Mali but retains filtering/border failures on Redmi. Complete format/copy/view/aliasing semantics remain open; see the BC image scope.
G08 Open Fixed SPIR-V tooling, reflection/hash/specialization records, before/after semantic evidence for each transform.
G09 Open Noncoherent/staging/reuse and queue ordering cases; validate emulation against completion and memory visibility.
G10 Closed Mesa/Zink is the product desktop GL frontend. Remaining Zink capability gaps belong to G07/G08. Do not rebuild a second GL frontend.
G11 Partial Xlib/XCB/Wayland create/present/resize/out-of-date, FIFO release and native-X surface-lost pass the shared window gate. Remaining: multiwindow, disconnect, delayed release, concurrent destroy, long-term FD. hybris EGL X11 is retired, not a bypass.
G12 Open Opt-in bounded evidence package associating shader/resource/draw/image/submit/present.
G13 Open Versioned multi-vendor baselines, selected fixed CTS cases and original Blender failure fixtures.

Structural work

  • common/linker_bridge.c owns Android linker selection, initialization, backend entry pointers and public android_/hybris_ loader entry points.
  • common/hooks.c retains libc hooks and hook selection. bionic_tls.c owns the initial-exec TLS region, thread allocation and promoted-module replay registry. linker_bridge.h is private; new cross-file helpers have hidden visibility. Existing exported backend pointers and TLS callbacks retain their ABI.
  • Baseline probes are independent translation units by responsibility; shared declarations/check helpers are in probe.h and probe_common.c. No probe semantics or case list change is intended by this split.

Remaining large-file work includes pthread/libc/TLS separation inside common, further WSI/backend state separation, and targeted review of large platform/driver files. Imported Android linker sources should retain their upstream structure unless a concrete fix requires changing them.

Device coverage

Currently connected: 29854870 (M2012K11AC) and 192.168.1.28:5555 (KB2000), both Android SDK 33. Both have dated standalone smoke results in the build evidence. Neither is the original Mali-G1-Ultra or Adreno 830 Blender failure device. Work independent of those devices continues; their absence does not justify claiming the application regressions are fixed.

Latest verified batch

Structural split: fresh AArch64 library/probe builds; all 130 defined dynamic exports of libhybris-common match the pre-split ABI (name, type, binding and visibility). Device run 20260906T233801-473a9d70: 21 PASS, 2 UNSUPPORTED (desktop GL). This preserves the existing baseline, not broader conformance.

Standalone build/provenance: repository-owned digest/snapshot-pinned toolchain, fixed downloaded headers with cached-content verification, source/header/probe snapshots and manifests, actual target pkg-config versions, runtime maps and Android mapped-file hashes. Independent checkout builds and two device runs completed (21 PASS / 2 UNSUPPORTED each). Modified cache and executable checks failed as intended. Next priority is G02/G04 Vulkan loader integration.

Standard-loader batch: optional vendor-HAL ICD, interface version 5, generated physical-device resolver scope from pinned Vulkan-Headers v1.4.309. Existing frontend remains default. Two device runs each completed 29 PASS / 2 UNSUPPORTED including eight ICD cases. No dispatch header rewriting or creation-chain stripping. Next: standard glibc validation layer and capture tooling, plus version/extension-dependent dispatch coverage.

Standard validation batch: pinned glibc VVL package with its original JSON, explicit layer/debug-utils activation and a callback-checked negative case. Two devices each completed 30 PASS / 2 UNSUPPORTED; legal lifecycle zero errors and injected zero-size buffer exactly one expected VUID, aborted before vendor execution. Capture/replay and validation of the full rendering workload remain open.

Widget validation: the standard layer now observes both full widget fixtures with SyncVal enabled. Each device passed the original exact pixels with zero ERRORs (31 PASS / 2 UNSUPPORTED overall). This closes the missing validation coverage of this fixture, not G04's remaining capture/replay requirement.

Headless capture/replay: fixed GFXReconstruct c2ff0eecc7a7f43aa236a5c98097a685b928b782, AArch64 tools and runtime dependencies built in the repository snapshot-pinned container. The runner captures each widget binding separately and associates the replay resource with its copy/submit indices. All 1024 RGBA bytes must match the uncaptured probe, captured probe and replay. Tool hashes/source/container identity and capture/API JSON/resource reports remain in the evidence package. This does not contain a present frame or establish application/WSI replay. Verified on 29854870 (20260907T004458-8576f807) and KB2000 (20260907T004459-930906e9): 32 PASS / 2 UNSUPPORTED each, including VVL and SyncVal. The first capture attempt exposed a missing indirect xxhash runtime dependency, now included by the builder.

Registry/entrypoint batch: generated scope, alias and provider metadata for 726 Vulkan commands from the same fixed registry as the ICD resolver. Runtime queries record per-name dlsym/GIPA(NULL)/GIPA(instance)/GDPA availability and check 137 core 1.0 entries plus forbidden non-global/non-device scopes. All core 1.0 addresses are also referenced by the linked binary. The existing fill/fence/readback workload now actually executes through link, dlsym, GIPA and GDPA; earlier linked-vk results only proved dependency loading because its calls still used GIPA. Linked dispatch already exercised create/destroy. Memory2 core 1.1 and enabled KHR variants match ordinary buffer requirements and complete the same readback. On 29854870 (20260907T005630-74134b03) and KB2000 (20260907T005631-3e16a681), each run is 45 PASS / 2 UNSUPPORTED, including unchanged VVL/SyncVal and full-image capture/replay. Pointer presence is not command-execution coverage; per-object compatibility state and the unsupported modern aliases remain open.

Vulkan export split: vulkan_exports.c owns the unchanged AArch64 trampolines, header/platform-guarded export list, missing-symbol diagnostic and bulk pointer resolution. vulkan.c retains Android-library ownership, proc-query and WSI wrappers; its existing constructor calls the hidden export initializer after loading the backend. The frontend file decreases from 1036 to 257 lines. A fresh AArch64 build preserves all 643 defined dynamic exports by name, type, binding and visibility. No extra public helper is exported. Runs on 29854870 (20260907T010200-b47ca796) and KB2000 (20260907T010201-038aaa84) each complete 45 PASS / 2 UNSUPPORTED, and all five 726-command query reports exactly match the pre-split runs. VVL/SyncVal and full-image headless capture/replay also pass. This structural change does not add per-object state or new API support.

Capability observations: registry-generated core feature/limit/sparse fields, device extension versions and ten format/image-format queries now produce named JSON values and native-to-frontend/ICD differences. Runs 20260907T010645-554aab1d (29854870) and 20260907T010646-7003fc92 (KB2000) each complete 42 PASS / 2 UNSUPPORTED; validation/capture options were not selected for this probe-only batch. Each native observation contains 325 values. The frontend matches native; direct-HAL ICD differs in six device extensions related to Android buffer/presentation. No values are rewritten to force equality. Features2 extension chains and format execution remain open.

Features2 batch: a separate probe verifies five core 1.1 feature structures, 55 named core fields against the legacy query, intact pNext pointers, positive CreateDevice using the returned chain, and exact FEATURE_NOT_PRESENT for a false float64 bit enabled through the same chain. Both devices complete 45 PASS / 2 UNSUPPORTED in runs 20260907T011042-0affc534 and 20260907T011043-11791534 (optional VVL/capture not selected). Native/frontend/ICD 66-value feature records match. This does not close all extension chains, properties2 or actual shader execution; G05 remains partial.

EGL lifecycle batch: isolated GLES2 buffer/state and exact pbuffer pixels survive repeated switches, main-to-worker-to-main context migration, and three destroy/recreate cycles. Native and hybris pass on both devices in 20260907T011354-4882a8fc and 20260907T011355-938bfc04 (47 PASS / 2 UNSUPPORTED each; optional Vulkan tools not selected). Shared contexts, parallel rendering, TLS destructor observation and generation tracking remain open. The workload is an independent probe, with no production ABI changes.

Draw evidence batch: the fixed capture workload now checks draw-time UBO content (272 bytes), descriptor set/buffer/range associations, attachment before/after and attachment-to-copy identity. Both device runs 20260907T011825-d445bf4a and 20260907T011826-0c3dc4d9 complete 48 PASS / 2 UNSUPPORTED with capture, locating the injected fixture's pixel divergence at draw 60, submit 66. This is one draw with capture-local IDs, not runtime generation tracking or arbitrary application failure localization. G06/G12 remain partial/open at their wider scope.

Bionic TLS ownership split: moved the static TLS layout, per-thread compat allocation, pthread cleanup keys and promoted-module registry out of hooks.c into bionic_tls.c. hooks.c decreases from 3826 to 3549 lines. The two existing linker/patcher callbacks retain their exported names/visibility. Fresh AArch64 library/probe builds preserve all 130 defined dynamic common exports and the TLS segment's 1032-byte memory size, zero file size and 16-byte alignment. Allocation, replay and destructor policies are unchanged. This is a structural change, not proof of TLS destructor execution or resource reclamation. Verified with optional VVL/SyncVal and capture on 29854870 (20260907T012238-92e0cbe2) and KB2000 (20260907T012239-23559b33): 50 PASS / 2 UNSUPPORTED each, including thread lifecycle, EGL migration and fixed draw-resource/attachment checks.

TLS bounds fix: reject offset arithmetic wraparound, filesz > memsz and nonzero copies from NULL before allocating or registering promoted TLS data. Cleanup pthread key/create registration errors now fail explicitly. The old library demonstrably accepted the wraparound input; the new independent child probe checks four rejected inputs plus a legal zero-length end segment. Fresh builds and both device runs (20260907T012712-1e831443, 20260907T012714-d19f1840) pass 51 cases with 2 UNSUPPORTED, including all optional Vulkan tooling. Resource-failure injection and destructor observation remain unverified; this does not close G03 as a whole.

TLS destructor/first-touch batch: real bionic C++ DSO fixtures cover emulated TLS and ELF TLSDESC. The latter exposed nonzero initializers reading as zero on glibc workers before any libc hook. Q static TLSDESC now initializes/replays thread TLS while preserving resolver registers; its helper stays hidden and plugin callback layout is unchanged. Both variants show the correct initial value and one destructor on the owning thread after closing the main DSO reference, across three cycles. Runs 20260907T013843-a5cf04e4 and 20260907T013844-4eb30921 pass 52 / UNSUPPORTED 2, including optional Vulkan tools. Per-access initialization overhead, signals/reentrancy, IE first-touch and static slot reclamation remain unverified. G03 is still partial.

The optional standard-loader ICD now owns per-instance resolver/destructor records with unique generations and bounded opt-in lifecycle diagnostics. This establishes an instance ownership boundary without changing HAL handles or input chains. Device/resource generations, the replacement frontend's state and arbitrary draw/resource evidence remain open. Allocator failure, custom-callback locking and malformed HAL behavior still need dedicated coverage beyond the existing concurrent lifecycle workload.

The instance concurrent probe now holds every round's four successful instances until all workers reach a barrier, then finishes all destructions before the next round. Failure paths still reach both barriers; partial thread startup cancels before entering them. The evidence checker now requires peak_live=4; previous peak-2/peak-1 traces fail that stronger gate. This establishes actual object overlap, not a guarantee of backend execution overlap or handle reuse.

Application allocation callbacks now have a native/frontend/ICD lifecycle probe: three instance cycles return callback allocations to zero, followed by an allocation-refusing create returning OUT_OF_HOST_MEMORY. Runs 20260907T033851-afd02fc4 and 20260907T033851-da205be7 each complete 68 PASS / 2 UNSUPPORTED. Failure is measured at the API boundary; the loader may stop it before ICD creation. Callback locking and individual ICD/HAL failure sites remain unverified.

A separate icd-alloc-direct workload reaches the adapter's own instance-record allocation via its exported ICD resolver. It refuses the first allocation, requires exactly one callback and OUT_OF_HOST_MEMORY, then restores allocation for three complete instance lifetimes. This isolates adapter failure/recovery from the standard loader's earlier allocations; it does not exercise layer chaining, every HAL failure site, allocator locking or device callbacks.

Direct ICD allocation failure coverage now also permits the adapter record allocation before rejecting the next HAL allocation. Both tested devices return OUT_OF_HOST_MEMORY after two callbacks, free the adapter record and complete three recovery cycles. Runs 20260907T034553-3c4de9ce and 20260907T034553-5b6f5c0c each complete 69 PASS / 2 UNSUPPORTED. Allocation callbacks are prohibited from calling Vulkan commands; references to their Vulkan reentrancy as an acceptance requirement were corrected. Other failure positions and interaction with application allocator locks remain untested.

common/bionic_stdio.c now owns the bionic standard-stream storage/mapping, 78 compiled stdio/FILE hooks, wide-character streams, mount-table streams and stdio buffer queries. hooks.c keeps the hook table and drops 695 lines to 2019. The private header shares the existing bionic offset types (also used by mmap). Existing public endmntent ABI remains; newly cross-file hooks and standard-stream storage are hidden. This moves existing implementations without changing FILE/offset semantics or proving 32-bit stream ABI support.

Stdio flushing no longer probes fileno before fflush/fflush_unlocked. NULL means flush all output streams, and memory streams have no descriptor but still require flushing. The previous guard crashed for NULL and skipped memory-stream updates. A bionic source fixture compares native and hybris file-buffer flush-all/readback and open_memstream flush/content publication. The unlocked entry receives the same correction but is not independently executed by this fixture; broad stdio/FILE ABI coverage remains open.

Stdio position hooks now implement bionic's offset-only fpos via ftello/fseeko (normal and 64-bit), instead of accessing glibc fpos internals. Failure no longer copies uninitialized host position storage. Native/hybris probe checks byte-stream save/restore and pipe ESPIPE with bionic position=-1. 32-bit overflow, large-file boundaries and multibyte state remain unverified.

Widget rendering now has a dynamic-UBO probe with nonzero aligned descriptor base and dynamic offset, deliberately different data in the other slots, exact expected good/alternate pixels and an ICD validation/SyncVal variant. That variant keeps an effective range of 272 bytes. Multiple dynamic bindings and general dynamic descriptor history reconstruction remain open.

A second widget variant now uses a real 1232-byte shader block, with explicit matrix array/column strides, signed int and 32-bit bool storage at the tail. Shader checks of non-symmetric matrices and tail sentinels feed exact pixel readback through ordinary and dynamic descriptors. This extends the independent probe; arbitrary-application draw diagnosis and runtime generation remain open.

The staged widget probe now copies both UBO sizes into an unmapped device-local buffer, retains its descriptor/resources, and checks six fenced submissions: record/resubmit good, reset/re-record/resubmit alternate, then good again. Transfer-to-shader and resource-reuse barriers are explicit. This adds bounded staging and command-reuse evidence; template updates and arbitrary draw-state reconstruction remain open.

The widget template probe now updates a retained descriptor set through Vulkan 1.1 core templates, using a nonzero payload offset with a valid opposite prefix descriptor as a negative control. Both UBO sizes retain resources across good/alternate/good updates and command re-record/resubmit cycles. Multiple entries, descriptor arrays and dynamic capture reconstruction remain open.

GFXReconstruct capture integration now has an independent dynamic-widget case. Its evidence checker matches the dump's effective offset to descriptor base plus bound dynamic offset and verifies complete UBO bytes, attachments and final copy pixels. This extends fixed-fixture diagnostics; general draw state reconstruction, template histories and runtime generations remain open.

Captured widget pipeline evidence now includes actual API-input shader binaries, validated against the probe build snapshot, plus SPIR-V validation, disassembly/decorations and pipeline/layout/module associations. A dedicated shader_evidence module keeps those checks separate from draw-resource checks. Driver-internal shader transforms/cache keys and general pipeline histories remain unobserved.

Widget UBO layouts and data construction now live in widget_fixture.h. The draw routine consumes owned good/alternate data and a byte count, leaving resource setup, upload, recording and readback in probe_widget.c. Small-layout size/offset assertions join the existing large-layout checks. This is a maintainability change; generation and general draw-history gaps remain open.

Attachment evidence now separately checks successful image/view/framebuffer creation, render-pass attachment selection and copy-source identity, including view/copy subresource and dimensions. Recorded bind/draw/copy commands must belong to the submitted command buffer. This remains a fixed one-image fixture, not runtime resource generations or WSI lineage.

Mutex destroy now preserves backing allocation and bionic storage on host failure (including EBUSY), and clears/frees only on success. A failed shared translation returns EINVAL. The independent bionic fixture checks three mutex types for EBUSY preservation and subsequent unlock/relock/destroy. Successful shared backing and concurrent destruction remain unverified.

Legacy mutex millisecond timeout now uses an explicit monotonic host deadline and maps timeout to bionic EBUSY. The fixture imports the hook and exercises zero-timeout acquisition, a 100ms failure and reuse. LP64 native comparison, clock-step behavior, 32-bit overflow and process-shared operation are unverified.

The API-28 mutex monotonic timedlock symbol is now hooked. Realtime and monotonic absolute timedlock share backing-mutex translation and use explicit clock IDs; the legacy relative-millisecond entry retains its EBUSY mapping. The native/imported-fixture probe checks timeout and expired-deadline acquisition on an unlocked mutex, including a null deadline. Null deadlines use ordinary blocking lock. PI/shared/time-jump coverage remains open.

Android monotonic timed read/write rwlock imports now have explicit hooks, using existing backing-object translation and host monotonic clock waits. Null deadlines use blocking operations. Independent bionic/native probes check cross-thread read/write timeouts and unlocked expired/null acquisition; shared semantics, fairness and runtime generation remain open.

Hook registry sorting uses pthread_once instead of an unsynchronized static flag. Concurrent first lookups therefore cannot qsort/search the same mutable table simultaneously. The callback still runs before table initialization. Existing concurrent linker initialization and GPU cases provide regression coverage, not an isolated first-sort race reproduction. The internal lookup is not exported. Mutable lookup configuration and diagnostics are outside this change.

Hook callback publication now uses release/acquire atomics and each lookup keeps one local callback snapshot. Missing pthread-hook diagnostic IDs use atomic decrement, and the unhooked-log option is initialized with pthread_once. Replacing a callback does not wait for an in-flight invocation; code/context lifetime remains caller-owned. This removes these specific shared-state races without claiming global lookup/configuration thread safety.

The optional ICD now owns device records in icd/device.c, with a unique per-device generation, parent instance generation, backend GDPA/destructor and allocator. Instance-local physical inventories are populated by ordinary and core/KHR group enumeration, including returned VK_INCOMPLETE entries. Creation forwards the original create info and callbacks. GIPA/GDPA only substitute lifecycle wrappers when the backend exposes the queried command; ordinary device commands retain the current backend's lookup result. Registry locks never enclose driver or allocation callbacks. Vulkan external synchronization remains required; these tables do not make stale handles or concurrent destruction valid. Metadata retirement precedes backend destruction.

The life runner validates device trace pairing and live instance parents. The direct allocator probe checks a rejected first device-record allocation, recovery and final allocation balance through ordinary/core/KHR physical-device enumeration. Android-loader KHR group handle use crashed in both native and replacement-front-end exploratory runs; the final non-direct allocator probe uses ordinary enumeration. This unresolved path is recorded in gaps.md. Resource state, multi-GPU ownership, physical-inventory OOM and arbitrary allocator failures remain outside this evidence.

KHR physical-device group lookup in the replacement frontend now retains the backend KHR availability gate, then prefers the loader's core group wrapper. Some Android loaders forward the KHR name to the HAL without initializing returned physical-device dispatch headers; subsequent loader CreateDevice can read the ICD magic as a pointer. GIPA and the direct ELF KHR symbol share this wrapper. When no core wrapper exists, the original KHR command is retained; that fallback is not covered on current devices. No handle header is modified. The AArch64 build adds system_ext/lib64 for modern Android loader dependencies. See gaps.md's Redmi/X300 checkpoint for passing paths and unresolved Mali pipeline/concurrency failures; the full X300 baseline is not passing.

AArch64 patched MRS reads now initialize foreign-thread bionic TLS on first touch through tls_first_touch.S; integer/NEON registers and flags are saved around allocation and host errno is restored. The pthread shadow includes the tid prefix needed by inlined bionic mutex paths. The fast path only checks slot 1, so late module initializer replay remains the hook/TLSDESC resolver's responsibility. Reservation and allocation use HYBRIS_TLS_THUNK_SIZE (80). The first-touch probe and dated Redmi/X300 results are in TLS evidence; X300 initialization/TLS passes, but ICD graphics pipelines still crash. Signal/fork, SVE/SME and arbitrary Android pthread layouts are not covered.

The standalone widget probe now shares dynamic-rendering and Synchronization2 setup in tests/baseline/render_path.c. It explicitly queries/enables features, uses either API 1.3 core names or API 1.1 with the KHR extensions and their promoted dependencies, and exercises begin/end rendering, image/host barriers and queue submit2. GIPA, GDPA, ELF dlsym and linked weak symbols are separate routes. Missing optional ELF exports report UNSUPPORTED; exported frontend stubs that abort remain CRASH. See dispatch evidence for device results. The readback oracle checks the existing widget's center pixel for both known UBO bindings; these cases do not establish arbitrary shader/rendering semantics or capture/replay of dynamic rendering. The existing capture-dynamic workload means dynamic UBO offsets, not dynamic rendering.

The replacement frontend now owns device/queue/pool/command-buffer metadata in hybris/vulkan/render_dispatch.c. Device creation reserves queue slots from the supplied queue create infos and caches eight GDPA results for core/KHR BeginRendering, EndRendering, PipelineBarrier2 and QueueSubmit2. Queue getters and command-buffer allocation register the returned handles. The direct ELF functions and backend-available GIPA/GDPA wrappers use those object-specific results; there is no core-name fallback and no dispatch-header inspection. Pool destruction retires implicit command-buffer records; explicit buffer free and device destruction retire their records. Pool reset retains valid records.

Metadata uses the corresponding device/pool allocation callbacks. Allocation failure unwinds a pending command-buffer batch and clears every output handle. Driver calls and allocation callbacks execute outside the registry mutex. Vulkan external synchronization remains required. Handles created by bypassing the frontend are outside this registry's contract. The table uses linear lookup under one mutex; draw-path contention/performance is not established. This is not a complete frontend resource registry, generation-based diagnostic system, or an implementation of all promoted-command aliases. Building this module requires Vulkan 1.3 headers, as supplied by the current AArch64 build toolchain.

Host timeline semaphore commands live in timeline_dispatch.c. Their core/KHR ELF exports resolve the exact backend name using the supplied registered VkDevice. GIPA/GDPA only return these wrappers after the backend availability gate succeeds. Lookup releases the metadata mutex before invoking GDPA or the command, so a host wait does not hold that mutex against a signal from another thread. Missing implementations return an error without modifying output data. This forwards native timeline support; it neither emulates timeline semaphores nor changes advertised feature bits. Semaphore objects are not independently tracked by this dispatch helper.

The cross-build now stages the transitive DT_NEEDED closure of all installed ELFs, including platform plugins, through tools/stage-runtime.py. Explicit roots retain the glibc interpreter and compatibility libpthread/libdl/librt DSOs. Search uses the AArch64 cross sysroot first, then target package library directories; missing dependencies fail the build. This adds the previously omitted libwayland-egl.so.1 and avoids staging unused libbsd/libmd. The interpreter now comes from the same first-choice cross sysroot as libc; its recorded hash changed and the full device regressions were rerun. Android libraries loaded by the separate linker remain runtime mapping/hash evidence, not part of this DT_NEEDED closure.

tests/wsi independently builds/runs a Wayland Vulkan window in the existing compositor app's UID. It retains full first/final swapchain readbacks and real screenshots, checks the fixed window's expected color transition through the embedded screenshot profile, and records compositor APK and mapped library identities. See its README for the separate submission, callback and display checks. This does not add standard-loader ICD WSI or establish buffer-release, resize or application-level correctness.

Wayland Vulkan surface-map lookup, insertion and removal now share a mutex. Destruction removes a matching entry in one locked operation, then releases the lock before querying/calling the driver or touching native-window/Wayland state. Lookup returns a borrowed pointer; Vulkan external synchronization still governs same-surface use versus destruction. This protects distinct surfaces from map mutation races, not arbitrary stale-handle calls. The independent WSI lifecycle helper exercises four threads and checks warmed client FD balance before the existing displayed-window gate. It does not establish allocator cleanup or compositor-side FD balance.

Wayland surface discovery now completes a roundtrip on its private event queue before constructing the native window. Missing android_wlegl or a failed discovery roundtrip returns VK_ERROR_UNKNOWN with a diagnostic instead of aborting in a sync callback. This command does not list INITIALIZATION_FAILED; UNKNOWN is the general unexpected-error result described in the Vulkan return-code rules. Partial discovery allocations are checked and cleaned without further dispatch. A backend surface-creation failure also destroys the temporary wl_egl_window. The independent probe exercises repeated missing-protocol rejection on Redmi and the existing successful concurrent surfaces and window on X300. Allocation failure, display disconnect, vendor creation failure and heap reclamation have not been fault-injected; those branches are code-reviewed only.

Vulkan Wayland reconnect now retires the old producer buffer pool. Android Vulkan disconnects/reconnects when recreating a used native-window swapchain (AOSP implementation). The previous default no-op left the currently displayed buffer unavailable, blocking replacement allocation. The Vulkan override drops its references to non-displayed pool buffers and retains displayed ones in the existing fronted list until Wayland release. A retired release frees its reference without changing the new pool's free count; window teardown also cleans remaining retired proxies. Other backends keep the default disconnect behavior. Rebuild the complete C++ platform bundle for the added virtual hook/private helper signature; Vulkan's 643 exported names are unchanged. Tests/wsi now verifies same-window 320x240 → 448x288 → 256x192 oldSwapchain replacement and actual screen pixels at each size. The separate compositor GPU binding-table exhaustion indicated by source review and runtime recovery after a restart remains open, as do in-flight/failure recovery and compositor-driven resize semantics.

The standalone builder has an opt-in incremental compiler cache. Preparation and cache publication live in tools/prepare-build.py; inputs/ records the clean source snapshot separately from generated src/ objects. C/C++/assembly changes are synchronized by content, with refreshed mtimes; conservative header/rule/ configuration/file-set changes trigger a fresh build. Make visits the complete dependency graph, and install/runtime are always recreated before manifest publication. A nonblocking per-output lock prevents concurrent mutation. The manifest records clean/incremental mode; build-report.json records the actual decision and elapsed time. Failed preparation withdraws prior completion markers. This accelerates the edit/build loop but does not replace clean-build regression acceptance or provide a tamper-proof compiler cache.

WSI diagnostics are isolated in tests/wsi/diagnostics.py. A bounded PID-filtered compositor log accompanies each run; stalls trigger read-only client/compositor process snapshots before the owned client is terminated. Collection errors, limits and collector hash are recorded independently of image acceptance. This improves first-failure evidence but is not an isolated compositor, a GPU trace or a debugger backtrace. See tests/wsi/README.md for the actual old-library stall and normal-window verification and remaining limitations.

Tests/wsi/compositor provides an independent debug APK and per-run process wrapper. The small Java/JNI host supplies a real Android Surface to anlabwc; its native dependency closure and xkb assets are imported from a caller-selected APK with recorded hashes. The separate package/UID and fresh process remove cross-run native-state accumulation without restarting Arlinux. Both X300 and Redmi now pass the same three-size screen gate on this chosen backend. This is not a source-built compositor or a fix for long-lived backend resource leaks.

The compositor wrapper now has --repeat N to exercise sequential clients in one compositor lifetime. It checks PID plus process start time before/after each client, records client PIDs and compositor FD listings, and requires every requested runner result to be PASS. Unsupported presentation is not a passing repeat run. Actual repeated-client failure is now directly reproducible on both phones: eight clients pass and the ninth fails screen-color transition despite 24 exact readbacks and completed frame callbacks. This is a regression detector, not a binding-table retirement fix or proof that remaining compositor references and FDs are released. The backend source/build dependency has been located; production library behavior is unchanged in this batch.

The dependent anlabwc backend now owns android_wlegl AHB bindings by actual Wayland surface and retires them on destruction (25a829e9), including the Android overlay's reference. The test APK can use this rebuilt library while retaining its recorded support-library inputs. Sequential lifetime results are in tests/wsi/compositor/README.md. This fixes the observed retained-binding path, not the eight-live-overlay capacity or all X11/subsurface/fence behavior. Desktop GL integration and Vulkan compatibility transforms remain separate, unimplemented deliverables; this WSI fix does not add API features.

The first desktop OpenGL frontend now builds from fixed Mesa source under tests/desktop-gl: Mesa EGL/Zink → standard Vulkan loader → hybris ICD → vendor HAL. X300 actually creates GL 3.2 core and compatibility contexts and passes a GLSL 1.50/VAO draw with 256 exact pixels through Mali; GL 3.3 is rejected with EGL_BAD_MATCH, and Redmi fails EGL initialization. See its README for artifacts and restrictions. This advances G10 beyond GLES passthrough, but neither full GL conformance nor windowed GL/Blender or Gladio/Vortek parity is proved. No GL version overrides or new Vulkan feature advertisements are used.

Mesa dependency revisions 2e3d35e/37f170c add packed 10/10/10/2 vertex conversion through existing u_vbuf and fix the distinct KHR divisor property query. X300 now accepts the GL 3.3 request and passes signed/unsigned, normalized/scaled, BGRA and divisor-1/2 draws with different instance data; the compatibility context also passes. Actual extension enumeration corrected the previous EXT-name-only diagnosis: the generator already handled KHR names, but the property sType was wrong. GL 4.4 is reported by Mesa, not certified by these small workloads. Redmi still fails EGL initialization. See desktop-gl README for the pre-fix divisor-2 failure and final evidence; Blender remains open.

The desktop GL build now includes Mesa GLX and its staged X11/DRI dependencies. Mali core-3.3 and compatibility-3.2 GLX pbuffer draws pass the same complete pixel/packed-input checks as EGL. The real installed Blender 4.3.2 reaches a GLX/Mali unsupported-platform dialog but fails startup: actual vertex SSBO limit is 0, while fragment/compute limits are 16 and Blender requires at least 12 in every stage. This is a concrete remaining capability gap, not application acceptance. See tests/desktop-gl/README.md for transport settings, artifacts and scope; neither Vulkan WSI nor visible Blender rendering is proved by GLX probes.

A compute vertex-prepass feasibility workload now passes on Mali through the staged desktop GL frontend: twelve SSBO inputs, generated vertex attributes, SSBO atomic writes, guard checks and changed/restored input images across three submissions. This verifies a building block for vertex SSBO emulation, not the emulation itself. No application shader is automatically converted, no vertex SSBO limit is raised and Blender remains unsupported. Core/compatibility results and exact remaining integration work are recorded in tests/desktop-gl/README.md.

Mesa dependency 6bec718 now provides an experimental automatic procedural vertex-NIR → compute → read-only vertex replay path. It handles the tested 272-byte UBO/default-uniform, first-vertex/base-instance and changed-range workload in EGL core, compatibility and GLX, with exact native-image parity. Standard validation explicitly confirms SyncVal enabled with no errors; all 60 retained SPIR-V modules validate. Combined application compute/deletion and automatic draws exposed and fixed UBO-unbind leakage and premature release of saved SSBO bindings. Details and failure evidence are in desktop-gl README. The development switch excludes unsupported inputs/stages/draw forms and does not raise advertised limits. Complete vertex SSBO support, caching/performance and Blender acceptance remain open; this supersedes the earlier feasibility-only status without declaring G08/G10 complete.

Mesa dependency 8986040 extends automatic compute vertex execution to aligned attributes using original VBOs and Mesa format decoding. Four direct formats, first=7/base-instance=5, divisor 1/2 and default z/w components pass in EGL core/compatibility and GLX, together with packed/procedural/manual-compute workloads. SyncVal is explicitly enabled with no errors and all 192 compute-run SPIR-V modules validate. Native execution exposes a retained base-instance-5 / divisor-2 failure, reproduced independently without the manual compute workload; this batch does not claim complete native parity. See desktop-gl README for exact successful and failed artifacts. No limits are raised: unaligned and 64-bit inputs, general SSBO acceptance, caching/performance and Blender remain open, as does investigation of this native fetch counterexample.

The native first-instance/divisor counterexample is now resolved by Mesa 8bb94e2: preserve supportsNonZeroFirstInstance (false on the tested Mali), rebase instanced VBO offsets, use Vulkan firstInstance=0 and preserve the application's BaseInstance in push data. A separate helper handles direct/indexed and decoded indirect draws. The Gallium decoder consolidation in 6392c27 fixes padded-stride mapping, range checks and bounded count handling. Multidraw regression exposed and fixed a last-vertex-stage key change that had not triggered pipeline updates. Six pinned-build runs (native/compute × EGL core/compatibility/GLX) pass all eight attribute phases and existing packed/manual-compute/procedural workloads; their 15 images are identical, SyncVal reports no errors and 291 SPIR-V modules validate. Earlier failures and diagnostic values remain in desktop-gl README. Indirect decoding synchronously reads GPU argument/count buffers; performance, out-of-bounds robust fetch behavior, other device branches, full vertex SSBO support and Blender remain unverified. Limits and full gap gates are unchanged.

Mesa 080a979 extends automatic vertex execution to sampled textures and unaligned plain vertex formats. Input validation/unpacking now lives in zink_vertex_pull; shared VBOs reuse descriptor bindings, and GPU-only partial-tail padding avoids word fetches past exact resource boundaries. The prepass preserves compute samplers/views/counts and lowers implicit vertex LOD before changing stages. Eleven attribute phases cover default/explicit mip sampling, integer texture buffers, shared odd-stride RGB8/half-float input and restoration to aligned input. Application compute sampling after every draw also passes. Six strict native/compute × EGL core/compat/GLX runs have identical 18-image sets, no SyncVal errors and 324 valid SPIR-V modules. See the desktop-gl README for result IDs and explicit limits. No version/limit override or whole-gap closure was added. The baseline now records GLES stage limits; three native/hybris comparisons agree. The route decision and evidence are recorded in gaps.md section 4.2.

Mesa 4c60971 adds resource-backed indexed vertex compute: GPU index fetch, signed base-vertex addressing, per-VBO bounds guards and a generated uint32 restart-preserving replay stream. Eight ordinary GL cases cover three index widths, exact partial tails, repeated indices, all-restart input and custom restart compatibility. The latter still uses Gallium's existing CPU rewrite; indirect argument decoding also remains synchronous. Six pinned native/compute EGL core/compat/GLX runs pass 26 identical images and 420 valid SPIR-V modules with no SyncVal errors. Existing indexed attribute/decoded indirect draws enter the new path. Desktop-gl README retains the earlier verifier failures and specific evidence. Full SSBO/aliasing/robustness, client indices, all draw/stage forms, performance and Blender are not claimed; capabilities remain unchanged.

Mesa aa281c8 allocates vertex input reads between texel-buffer and SSBO bindings, preserving application SSBO slots and allowing mixed resource paths. Six resource-pressure phases use the queried sampler budget and verify 16 VBOs, SSBO fallback, indexed mixed bindings, partial tails and restoration. Together with the extended nine indexed cases, six pinned native/compute EGL/GLX runs produce 33 identical images and 495 valid SPIR-V modules without SyncVal errors. The desktop-gl README records the development failures and final evidence. Capabilities are unchanged; full SSBO semantics and application gates remain open.

Mesa 597b753 extends experimental vertex conversion to direct multidraw, preserving DrawID across empty subdraws with state restoration and per-subdraw fallback. Five ordinary GL phases cover array/indexed 8/16/32-bit draws, GPU-copied EBOs, offsets, positive/negative base vertex and single-draw DrawID reset. Six clean-pinned Mali native/compute EGL core/compat/GLX runs pass 38 identical images and 621 valid SPIR-V modules with zero SyncVal errors. Exact result IDs and the earlier aggregate-verifier failure are in desktop-gl README. GPU indirect arguments, custom restart CPU rewrite removal, all fallback/stage combinations, full SSBO semantics, performance and Blender remain open.

BC1–BC3 image subset (2026-09-08)

The standard-loader ICD now has default-off HYBRIS_BC_TEXTURES=missing|force image interception with compressed backing, GPU decoding, compute-state preservation and command-buffer resource retirement. Format/image/sparse queries and device enablement follow the same restricted policy; the complete BC feature remains false. The work is split into storage, transfer, state, registry, resource, copy, barrier and policy modules.

Redmi and Mali passed four exported-core/proc validation routes in force mode and a separate missing-mode route, with 1,920 BC image readbacks matching native RGBA8 references and compressed bytes. GPU subregions, mip/layer, 3D copies, sRGB/swizzle, dedicated binding and reset/free paths are included. Mali also executes copy2, synchronization2 and maintenance4. Default-off controls preserve native unsupported BC behavior. One Redmi non-coherent-memory case remains UNSUPPORTED. Source/build hashes, exact runs and preserved probe failures are in the BC image record. BC4–BC7, remaining image semantics, large-resource/performance and CTS gates remain open; G07 is not closed.

BC4/BC5 image extension (2026-09-08)

The opt-in BC fallback now decodes BC4/BC5 UNORM/SNORM with normalized 16-bit precision, using R16 and RG16 images to preserve channel defaults. BC4 packs pairs of texels into storage words, including odd rows/layers and final padding. No CPU upload decoding or implicit queue submission is added. Native/effective format queries retain BC6/BC7 behavior and the BC feature flag remains false.

The existing probes now check twelve formats, 32×32 descriptor-pool rollover, negative endpoints, independent R/G values, linear filtering and border/default components. Final force/four-entry and missing runs on Redmi/Mali have 2,880 complete image readbacks (960 BC4/BC5), zero mismatches and zero validation errors. Default-off native/frontend/ICD kernel routes separately have 1,152 readbacks. Build hashes, all six run IDs and the initial stale-count failure are in the image evidence. BC1 RGB border semantics, BC6/BC7, remaining views/copies/aliasing, multi-queue, maximum limits, performance and CTS keep G07 open.

Native RGB8 for BC1 RGB borders (2026-09-08)

The expanded probe reproduced a missing-alpha defect in the RGBA backing on both devices: transparent-black border filtering changed BC1 RGB alpha from one to 0.5/0.25. Native RGB8 UNORM/sRGB storage is now selected from physical format capabilities and used consistently for queries, images, views and GPU upload packing. Mali's five enabled image runs pass all 1,440 readbacks; Redmi lacks the required native format support and retains the same 306-word failure per execution. It is not skipped or reclassified as unsupported. The six independent decoder routes pass 1,344 readbacks, including RGB8 packing. Pixel verification was separated from Vulkan recording into bc_image_verify.h. Evidence, hashes and limits retain the before/after results. The Redmi correction, remaining sampler semantics and G07 stay open.

Multiple dynamic UBO capture (2026-09-08)

The fixed G06 widget fixture now reads four dynamic descriptors across two sets and a two-element array, with interleaved binding numbers, reversed declaration order and distinct dynamic offsets. Native/frontend/ICD and standard validation pass on Redmi and Mali. The capture audit reconstructs every effective range, checks both stages' complete UBO dumps and shader hashes, and identifies only set 0 / binding 3 / element 1 at the first differing draw 62. Ordinary and single-dynamic capture gates remain. Pipeline creation and descriptor auditing were separated into their own files; the main widget probe shrank from 758 to 677 lines. No unit-test suite or runtime tracing framework was added.

The clean build and final matrices are recorded in widget-multi.md: Redmi 28 PASS / 18 UNSUPPORTED, Mali 43 PASS / 3 UNSUPPORTED, plus BC-force regressions. The latter retain Redmi's BC1 RGB pixel FAIL while both ordinary/multi-widget validations pass. Twenty-two altered saved evidence inputs are rejected and four harmless order changes accepted. Runtime generations, arbitrary descriptor history, partial rebinding and WSI lineage remain open; this does not close G06 or G07.