Repository navigation
obs-core: Port synchronized display size getter (#3911) - #3912
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 7, 2026 16:09
zackees
enabled auto-merge
November 7, 2026 16:09
This was referenced Nov 7, 2026
zackees
force-pushed
the
port/display-size
branch
from
November 7, 2026 18:37
9b0a263 to
dfeab35
Compare
Member
Author
|
Rebased onto master 8e406b2 after #3916/#3920/#3919. Dropped the handwritten display field extraction: discovery generates display_size_fields.inc matching the oracle include. No shared registration-list additions to migrate; oracle has no direct production libobs calls. Passed discovery/registration guards, workspace fmt, whole native_build module (129), oracle build, obs-util (914 plus two doctests), all six focused display_size Rust/parity tests, portability, graph ordering, README and local-gate self-tests. Range-diff reviewed; lease-pushed dfeab35, remote verified, auto-merge remains enabled. No hosted CI wait or local attestation claimed. |
This was referenced Nov 7, 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.
Fixes #3911, native sub-issue of #444; follows #3848/#3849.
Ports only
obs_display_sizeinto obs-core. Both outputs are zeroed before checking the display or taking its existingdraw_info_mutex. Width and height retain their original read/store order, including aliased outputs and outputs aliasing a display field. C wrappers take and release that exact mutex; a private field-pointer seam leaves the complete display and native mutex layouts in C. No intended behavior differences or protocol surface, so Tier 4 is inapplicable and no features-ledger change is needed.Commit sequence:
d9b8068ba: new C actual-library tests for NULL, full-width dimensions, aliasing, unrelated fields, and another thread holdingdraw_info_mutex.80bd26198: verbatim C body in a separate building, behavior-neutral commit; unchanged characterization passes both libraries.71ff15f57: both Tier 1 tests fail at the todo stub (exit 101).9b0a26382: safe protocol, opaque FFI seam and C lock wrappers; existing Core state test binary gains six cases, with no new Rust executable.Validation:
test_display_size: 2/2 assertions groups pass against reference and hybrid, including 100 consecutive CTest runs per library.lddselects/build/tree/libobs-c-reference/libobs.so.30and/build/tree/libobs/libobs.so.30respectively. Warm-volume builds run throughdocker_task_command; 1,767 identical exports.nix-shell rust/tools/sanitize/shell.nix,SOLDR_PORCELAIN=0,OBS_BUILD_NUMBER=1: actual-library characterization passes 2/2 withhalt_on_error=1; loader confirms libtsan and instrumented hybrid libobs. This checks the C fixture and C lock wrappers; Rust itself is not TSan-instrumented by the stable build.-Wformat -Wformat-nonliteral -Werror(Clang-Qunused-arguments, real SIMDe includes). No printf-style callbacks or blog dependency are introduced.native_build::module: 127 passed.ci/test_native_b2_portability.py,ci/test_test_graph_sorted.py,ci/test_rust_readme.pyand staged build-group inventory pass.SOLDR_PORCELAIN=0 soldr cargo fmt --all --check: passed../lintexit 1, diagnostic_state unknown: final artifact lines show soldr refusing to build a Dylint driver from source under clud (Dylint 6.2.0 has no pre-deployed driver for nightly-2026-05-28). No workaround attempted. Every preceding lane passed: C/CMake formatting, Ruff, all 356 CI self-test files, category/feature inventories, platform/performance/knowledge checks, rustfmt, workspace Clippy and all five feature Clippy runs. Hosted Fast Gate must supply the remaining Dylint result; no local attestation is claimed.Test cost: 25 reduced runs of all six focused tests: longest 0.018 s, peak RSS 16,332 KiB (child rusage). One C writer thread at a time, two sequential writer launches in the concurrent test. The C contention fixture launches one getter thread and uses a bounded condition-variable wait; no sleeps.
Limits: no native Windows/macOS execution and no complete Tier 2 suite run claimed. Existing C tests, public headers, and plugins/obs-websocket are unchanged. Remaining display lifecycle, callback and rendering groups remain outside this slice.