Skip to content

webgpu vs webgl check on dual-gpu laptops: which adapter gets compared? #82

Description

@lhall952

the readme gives this as a motivating regression: "a patch that fixes canvas and quietly desyncs WebGPU from WebGL", so i assume some rule in packages/checks compares probes/webgpu.ts output against probes/webgl.ts.

on a stock chrome on a laptop with an igpu and a dgpu (intel + nvidia, or apple silicon vs an eGPU), the two apis don't have to land on the same gpu. requestAdapter() with no powerPreference, or with high-performance, can return the discrete card, while the webgl context usually stays on the integrated one unless powerPreference is passed to getContext. so an unmodified browser could show ANGLE (Intel, ...) in WebGL and vendor: nvidia in adapter.info.

questions:

  • what powerPreference (if any) does each probe request, and do they match?
  • does the check compare vendor only, or architecture/device too?
  • is a vendor mismatch on real hardware scored as a lie, or is there an allowance for multi-adapter machines?

if it's a straight vendor equality, i'd expect this to be a common false positive on dev laptops.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions