Repository navigation
libobs: Characterize and extract graphics timer-range dispatch - #4565
Merged
Merged
Conversation
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
enabled auto-merge
November 10, 2026 14:48
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.