Skip to content

obs-gpu-status: Identify the render adapter's PCI bus ID on every platform #1020

Closed

Description

@zackees

Every utilization source needs to know which GPU OBS renders on. Map the active adapter to a PCI bus ID:

Pure resolution logic goes in rust/obs-gpu-status; host calls go in src/platform/.

Acceptance

  • RED → GREEN: a Tier 1 fixture sysfs tree with two identical cards picks the card behind the given render node (a stub returns None first).
  • Ambiguous cases report ambiguous; they never pick a card silently.

Decisions (defaults from #1004; edit if the maintainer disagrees)

Activity

  1. vpacher commented on Oct 17, 2026

    @vpacher
    Member

    Claiming all three platforms (updated 2026-10-17; this first said Linux only). One PR per platform, stacked:

    Each returns the adapter ID, ambiguous or unknown, RED with a stub first. The frontend plumbing goes with the first consumer (#1021/#1022).

  2. added
    claimed
    on Oct 17, 2026
  3. vpacher commented on Oct 17, 2026

    @vpacher
    Member

    Update: the claim now covers all three platforms (claim comment above edited). PRs, stacked in this order:

    1. obs-gpu-status: Resolve the render node's PCI device (Linux) #1194 Linux: render node → PCI address
    2. obs-gpu-status: Pick the macOS render GPU by registry ID #1195 macOS: Metal default GPU → IORegistry ID (stacked on obs-gpu-status: Resolve the render node's PCI device (Linux) #1194)
    3. obs-gpu-status: Pick the Windows render GPU by LUID #1198 Windows: obs_video_info.adapter → DXGI LUID (stacked on obs-gpu-status: Pick the macOS render GPU by registry ID #1195; Fixes #1020)

    #1198 also replaces the Option<&str> argument of platform::render_adapter() with a RenderHint (render node on Linux, adapter index on Windows).

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions