Skip to content

libobs: Characterize and extract graphics timer-range dispatch - #4565

Merged
zackees merged 2 commits into
masterfrom
test/extract-gstrange
Nov 10, 2026
Merged

zackees merged 2 commits into
masterfrom
test/extract-gstrange

Conversation

@zackees

@zackees zackees commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Refs #4561. Rust swap follow-up: #4562, after this prerequisite lands.

Add public-API C characterization for gs_timer_range_destroy, gs_timer_range_begin, gs_timer_range_end and gs_timer_range_get_data, then extract their bodies verbatim from graphics.c.h to timer-range-dispatch.c.h. The separate file follows #4545 and keeps overlap with timer swap #4557 to the sorted one-line unity registration.

Preserve context-before-NULL precedence, silent NULL commands, exact diagnostics, disjoint-before-frequency guards, and get_data's unvalidated range (including forwarding NULL). The tests pin exact pointer forwarding, synchronous dispatch, repeated/out-of-order commands, discarded backend begin/end booleans, backend-owned destruction, and independent output writes regardless of the get_data result. This is characterization, not endorsement of the guard asymmetry.

Characterization commit ecf99e4 precedes extraction commit 3786cda (attestation-stamped from a18943d27). All four extracted bodies compare byte-for-byte with original C. This is the testing-policy.md:189-215 prerequisite; no Rust implementation, RED/GREEN Rust port, Tier 1 or original-C differential Tier 3 is claimed. Those belong to #4562. Tier 4 is inapplicable. No user-visible behavior change or features-ledger entry.

Validation:

  • Before extraction: three cases passed three times against each of hybrid libobs and libobs-c-reference; loader paths confirmed. Log: local-test-1GGfyj.log.
  • After extraction: same replay passed. Log: local-test-ogDcvi.log. Hybrid/reference exports match at 1,767 symbols, unchanged from the baseline.
  • Existing timer dispatch (three cases) and source profiler (six cases) passed three times per library. Profiler used OpenGL 4.5 llvmpipe without skips. Log: local-test-pdO8gP.log.
  • New characterization executable: longest observed before/after replay 0.19 seconds; no test-owned threads. No new Rust test binary.
  • Pinned clang-format and gersemi and git diff --check passed. Full lint result is recorded below before publication.

Artifacts are under /home/niteris/.clud/tmp/tool-output/local-test-private/. No full Tier 2 sweep, Windows/macOS execution, hosted-CI completion is claimed. No existing C tests, public C headers, plugins/obs-websocket, workflows, test-graph.json or native.rs changed. PR CI remains the merge gate.

Full SOLDR_PORCELAIN=0 ./lint ran exactly once with a 1,800-second deadline and exited 0: lane lint: ok (298.0s). Artifact: local-test-7eyZPg.log.

Published through ./push after backpressure reported OPEN (headroom 3). prooft attested rust/all/fmt, rust/x86_64-unknown-linux-gnu/clippy and rust/x86_64-unknown-linux-gnu/dylint. Published head: 3786cda.

Ci-Attestation: {"at":1794322099,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["ecf99e44c6c7989cebff747adbaab925383ad451"],"secs":417,"stamp":"3ad5e096250411ea50fa34547c4b720c","tree":"98b7be2fa68e78734e709f4b221c73d7ff9d779b","v":1,"via":"run"}
Ci-Attestation: {"at":1794322099,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["ecf99e44c6c7989cebff747adbaab925383ad451"],"secs":417,"stamp":"2328b7634efcbd75c1dbb8a466c1de52","tree":"98b7be2fa68e78734e709f4b221c73d7ff9d779b","v":1,"via":"run"}
Ci-Attestation: {"at":1794322099,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["ecf99e44c6c7989cebff747adbaab925383ad451"],"secs":417,"stamp":"e83bf1d8d96d8ab3a09ed3fb75c3a5f7","tree":"98b7be2fa68e78734e709f4b221c73d7ff9d779b","v":1,"via":"run"}
@zackees zackees changed the title libobs: extract graphics timer-range dispatch (#4561) libobs: Characterize and extract graphics timer-range dispatch Nov 10, 2026
@zackees
zackees enabled auto-merge November 10, 2026 14:48
@zackees
zackees added this pull request to the merge queue Nov 10, 2026
Merged via the queue into master with commit 7da3ce1 Nov 10, 2026
41 checks passed
@zackees
zackees deleted the test/extract-gstrange branch November 10, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant