Repository navigation
libobs: Characterize and extract video render passes - #4917
Merged
Merged
Conversation
Refs #4415. Execute the actual private C bodies with recording graphics doubles. Cover zero/multiple passes, texture selection and cleanup, and conversion dimensions and pass sequencing. Mutation of framebuffer cleanup fails the characterization.
Refs #4415. Move both characterized bodies verbatim into obs-video-render-passes.c.h, in sorted unity position. Forward-declare the existing render-size dependency without moving or changing it. Rust port follow-up: #4417. Ci-Attestation: {"at":1794865667,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":129,"stamp":"f973a19d1c51f940b2065da40a044181","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865667,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":129,"stamp":"449ae8bf5d574020a9a17d91e88f2bde","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865667,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":129,"stamp":"887a55d1838bb16877f0dfc2ed2e1749","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865667,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":129,"stamp":"de3811ae7a249a8f211bd019695adccd","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865535,"gate":"general/all/client-lint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"297ec412ef3a363f1abcb8b376a78a9e","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865667,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":129,"stamp":"7d97e4327f680ed9801a835b533a2fe4","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"5f65277d512a0849ee43a86239ece77e","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"832570800151b6e2defacf94e45362b7","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"9d83f1d71333de32142f8269a008c5d4","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"ad7f8fe441275adeb8acf9d9c64c9e39","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865535,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"cef20770c3f82fbfd2a1e48c884baef5","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865535,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"1760f7b98e58b390771c6da0a4836c33","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"e68b856a071913a0a36fe15781613e71","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"4ef6684e7bc45fda9d6df13b4d749227","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"255a972403bad6162dc0dee6367d5b60","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865536,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"e959e5359f250704f694e224786a4d7e","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865535,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"139e86959065b0bdfe8db4c8881ef828","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"} Ci-Attestation: {"at":1794865535,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9f605f43d86854d16397c079f679d8bfcab6062aa71226b54eedd4b313c30cd2","lane":"client-lint","parents":["3240ff997de346e06e5696f3781d5aa1f3c21275"],"secs":41,"stamp":"ebaf4439dc9f6bdf2fa9ed20eefd19c1","tree":"87078d2493d7eeedc6d887d5a49e69b4816ee2f6","v":1,"via":"run"}
zackees
marked this pull request as ready for review
November 16, 2026 22:01
zackees
enabled auto-merge
November 16, 2026 22:01
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 #4415. This is the C-only characterization and verbatim-extraction prerequisite for #4417.
Record the real
draw_mix_textureandrender_convert_planebodies through GPU-free graphics doubles. The assertions cover mix texture/effect/parameter selection, sRGB binding, blend push/disable/pop and framebuffer cleanup for zero, one and two passes; conversion technique, dimensions, target binding, render-size delegation, triangle arguments and pass ordering. They also preserve the existing behavior of ignoring a false begin-pass result.The characterization commit is
3240ff997. RED evidence: removinggs_enable_framebuffer_srgb(false)from the original body makesmix_passesfail (EPI[B+L]versusEPI[B+L-]) under both GCC and Clang. GREEN: both tests pass against the original master bodies and the extracted bodies with both compilers and-Wall -Wextra -Werror. A byte-for-byte comparison confirms both extracted bodies are unchanged. The extraction commit follows characterization and registers the new source in sorted core-output unity order.set_render_sizeremains a dependency in its existing file.The new
tests.dfragment builds the actual production bodies. This is C-source characterization, not runtime validation of a future Rust swap. Tier 1 Rust and Tier 3 Rust differential tests belong to #4417; Tier 4 does not apply to these private rendering helpers. No public headers, existing C tests, test graph, websocket plugin, reuse policy, or graphics sibling units change. No user-visible behavior changes.Validation: focused CMake/CTest and GCC/Clang original → mutation RED → extracted GREEN replay passed.
./pushpassed client lint (all six supported clippy/Dylint targets), full repository self-tests, and the data validators. It produced partial prooft evidence: the full host proof finished with 8,650 tests passing and the existingdead_pipe_write_survives_concurrent_spawnstest failing after its stuck child was terminated. The earlier./unittestattempt reproduced that hang and was interrupted before Tier 2. The single full./lintattempt hit a two-second timeout in the unchanged browser startup self-test; that self-test passed during the subsequent prooft checks. Ordinary required PR CI remains mandatory; this head does not have complete client admission evidence.The complete Tier 2 OFF/ON suite, native Windows/macOS validation, and real GPU rendering were not run locally. The merge queue retains its required heavy checks.