Skip to content

[GPU 19/20] Qualify WebGPU/WebGL conformance, resilience and support claims #41

Open

Description

@danwalmsley

Parent epic: #22
Implementation order: 19 of 20.
Depends on: #40.

Outcome

Establish full-support evidence through WebScene's actual JavaScript/runtime/presenter implementation, not only the underlying graphics libraries.

Implementation

  • Integrate complete applicable pinned WebGPU CTS, Khronos WebGL1/2 suites and relevant WPT IDL/canvas/worker/source/event-loop cases into the native runner.
  • Run tests against the actual V8 bindings and browser objects. Native Dawn/ANGLE tests supplement this evidence but cannot replace it.
  • Adapt generic harness infrastructure without editing normative assertions to fit WebScene. Track expected optional-feature skips separately from missing API/harness/hardware.
  • Report passed/failed/skipped/unavailable/harness-blocked with exact denominators, versions, hardware features and exclusions. Required functionality must not disappear from the denominator.
  • Fix implementation failures and add focused regression tests. Exhaustively review the advertised API/capability/extension/worker/source matrix.
  • Add resilience suites covering device/context loss, teardown during pending work, queue saturation, malformed descriptors/shaders, resize/expose, adapter mismatch, multi-document/device use and stale-generation leases.
  • Ensure retained presentation and explicit snapshots survive asynchronous producer/consumer completion without data races or leaked native handles.
  • Publish stage-specific compatibility claims: Kestrel preview success is distinct from full conformance. Do not claim formal Khronos certification merely from running tests.

Tests

  • Full applicable official suites on each initial desktop backend/hardware configuration; targeted presenter integration on both frameworks.
  • Forced failure/loss injection and sanitized/native fuzz/regression runs for binding/descriptor/ABI boundaries.
  • Repeat Kestrel, independent fallback and mixed-canvas fixtures after all broad API additions.
  • Verify device-unavailable, disabled-WebGPU and software-test runs are categorized correctly.

Verification evidence

Commit reproducible runner commands/configuration and publish complete machine-readable summaries, hardware manifests, failure resolutions and explicit optional-feature skips.

Acceptance

  • No unexplained failures or mandatory harness/API gaps remain in the final claimed profile.
  • Optional skips and unavailable hardware are explicitly distinguished from passes.
  • Actual V8 binding semantics and both presenter integration paths are covered.
  • Resilience/lifetime tests pass with bounded resource usage.
  • Support documentation matches measured evidence and makes no unsupported certification claim.

Completion requirements

Link the implementation PR, exact test commands, native/runtime/framework revisions and verification artifacts before closing. Follow the epic's architecture and copy/lifetime invariants. Any unavailable mandatory hardware or missing required functionality remains incomplete, not a pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions