Skip to content

libobs: characterize and extract encoder texture-input activity query (Refs #5212) - #5215

Merged
zackees merged 3 commits into
masterfrom
test/5212-encoder-tex-active
Nov 19, 2026
Merged

zackees merged 3 commits into
masterfrom
test/5212-encoder-tex-active

Conversation

@zackees

@zackees zackees commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Refs #5212

The existing encoder texture-input test depends on available graphics support. Add a deterministic C-source characterization with real private encoder/mix layouts and a recording fake lookup. It pins the exact media pointer and one lookup per call, missing mixes including a live encoder with NULL media, every declared video format with all four NV12/P010 flag combinations, reads after lookup, and unchanged encoder/mix storage. The existing real-device test stays unchanged and retains its capability-derived expectations and skips.

Move obs_encoder_video_tex_active verbatim into libobs/obs-encoder-video-tex-active.c.h in the sorted core-output unity group. Keep get_mix_for_video and its mutex-protected walk untouched, with the existing live encoder/core preconditions, mix guard and format-specific C flag-read order. Add the tests.d pointer and sorted canonical graph entry. This is a C-only prerequisite; the later obs-encoder Rust swap is separate work.

Original-C characterization commit 8c0e968 passed both tests three times against each library, with all 64 configured standalone *_rust targets built and 1,769 identical exported symbols. RED d487c1d requires the extracted unit and fails the build-group check because its source is absent. GREEN 9d24ec5 supplies the byte-identical function. The whole native_build:: module passes all 317 tests; build-group, module/source-set, port-metadata and graph-sort checks pass.

After extraction, the focused Linux Tier 2 build again rebuilt EVERY one of the 64 configured *_rust targets and the new target. The new characterization and unchanged test_encoder_tex_active_null each passed three repetitions against each library; their exported symbol sets still match at 1,769 symbols. ci/windows_link_check.py passed the Windows Rust category links, hybrid libobs and all 55 configured Rust fixtures for both Windows MSVC x86_64 and Darwin arm64. The new C fixture was also explicitly compiled and linked for both cross targets. Native Windows/macOS execution and real GPU support are not claimed; existing device-specific subcases retain their allowed skips. Rust Tier 1/Tier 3 and protocol Tier 4 work do not apply to this C-only prerequisite.

Fetched all open PR heads with forced refspecs and checked full footprints and merge-tree results for the output unity group, encoder source and test graph. #5207 combines cleanly, with both units and both graph/unity entries retained in sorted order. Existing conflicts in stale #4655, #4124 and #742 do not duplicate or block this unit. All temporary refs were removed. The one-agent local clud-review found no issues.

The single full SOLDR_PORCELAIN=0 ./lint run passed in 151.5 seconds, including repository validators/self-tests, source/Cargo inventories, formatting and the configured analysis lanes; unchanged Rust inputs reused soldr's matching passing verdicts where reported. No source files changed after validation.

The ./push client proof also passed six-target client lint (125.6 s), validators/self-tests, all 9,140 host tests with six additional skips, all 920 feature tests, documentation checks and Windows GNU workspace linking. The final signed published head is 9d24ec5.

Follow-up: #5216, rust: Port libobs/obs-encoder-video-tex-active.c.h to obs-encoder. It explicitly waits for this prerequisite to merge and requires the four-tier Rust workflow, real adapters and every standalone Rust-static link.

…5212)

Ci-Attestation: {"at":1795077286,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":184,"stamp":"4cee68d490929cc7096dcba7370c54c2","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077286,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":184,"stamp":"86627913251e703d2501d8ec5ebdc11e","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077286,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":184,"stamp":"02933e14a8c3469991d11beccad3e47c","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077286,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":184,"stamp":"707a928a3cba9f59cde8f1494ea52467","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"general/all/client-lint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"80948fc4abee5de1b977608af73664fb","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077286,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":184,"stamp":"242c23fefab6dcb5d7320ac3478190a3","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077100,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"6dbf0ea42e3ab8aab69c8e28502a6006","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077100,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"bbb5080da1127de8605e07a00ace9831","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"4dffc923dafb6a3a20b585fd11074952","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"e5e02473b7b116081bad8423f45d15e5","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"fb0d101ca2620924603d9ee5b456d577","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"484e65b81d76bf55fc3ed76571797f50","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077100,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"d7b9f1dff668ead4fe25d6c017654b03","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077100,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"bc2f083f688ec4fa7db800f5e7fbe7a5","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"ad3267936cf7991ec8f71f7ed6cfbca0","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"866bf600075aa0b800211d2d93a12a71","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"ab31642db064e3ff352a80517249d4bf","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795077099,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"4c38981d1aee1ef26c47555cff7be028630e11ce8af291a894e3db9d11f94499","lane":"client-lint","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":125,"stamp":"fd06b165e1ce9e790cef345acbe63dc7","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}
Ci-Attestation: {"at":1795078390,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"c8ba1d71a54e9681bc8a39f0f9f7ef1b62323872a55d6437b7ffc1e36b3f1a47","lane":"client-test-x86_64-unknown-linux-gnu","parents":["d487c1d78c61bebadace27335ea75d05a4d671c0"],"secs":1102,"stamp":"69a1b6b3aaa6f56d171bfcc7cc5b6766","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"9d7600e74b6e68efb03259f1b1809835638b9139","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.core-output+.h.c","libobs/build/libobs.ported-hotkey-inject-entry+.h.c","libobs/build/ported-source-sets/hotkey-inject-entry.json","libobs/cmake/rust-exports.d/obs-hotkey-inject_entry.txt","libobs/cmake/rust-hidden.d/obs-hotkey-inject_entry.txt","libobs/obs-encoder-video-tex-active.c.h","libobs/obs-encoder.c.h","libobs/obs-hotkey-inject-entry-fields.c.h","rust/README.md","rust/obs-build/tests/native/registration/headless_characterizations_expected.json","rust/obs-build/tests/native/registration/portal_output_expected.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_enum.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_press.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_trigger.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_binding_press_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_getters_characterization.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_inject_entry.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_load.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_pair_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_press_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_unregister_entry.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_portal_shortcuts.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_wayland_hotkeys.json","rust/obs-c-oracle/oracle/hotkey_inject_entry.c","rust/obs-c-oracle/oracle/hotkey_inject_entry_fields.c","rust/obs-hotkey/src/ffi/inject_entry.rs","rust/obs-hotkey/src/ffi/mod.rs","rust/obs-hotkey/src/inject_entry.rs","rust/obs-hotkey/src/lib.rs","rust/obs-hotkey/tests/hotkey/inject_entry.rs","rust/obs-hotkey/tests/hotkey/inject_entry_parity.rs","rust/obs-hotkey/tests/hotkey/main.rs","test/cmocka/build/test-graph.json","test/cmocka/hotkey-inject-entry-link-support.c","test/cmocka/test_encoder_video_tex_active.c","test/cmocka/tests.d/hotkey_inject_entry_link_support.cmake","test/cmocka/tests.d/test_encoder_video_tex_active.cmake"],"head":"934fa4c4f706ab7ccae5b3164b768acd87c858d6","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"e4037f7e41d686b842bb22bb2437c3cec23fdb47dcb14cdc821a3011c103aeef","tree":"6ca525e954deb9fbdef39c87519a84980d6dabf6"}}
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees zackees changed the title libobs: extract encoder texture-input activity query verbatim (Refs #5212) libobs: characterize and extract encoder texture-input activity query (Refs #5212) Nov 19, 2026
@zackees
zackees enabled auto-merge November 19, 2026 08:54
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees disabled auto-merge November 19, 2026 08:57
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees enabled auto-merge November 19, 2026 09:02
@zackees
zackees added this pull request to the merge queue Nov 19, 2026
Merged via the queue into master with commit f2b4085 Nov 19, 2026
43 checks passed
@zackees
zackees deleted the test/5212-encoder-tex-active branch November 19, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pool-active Pool worker owns this PR; automated rebases must skip it

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant