Skip to content

libobs: Characterize and extract video render passes - #4917

Merged
zackees merged 2 commits into
masterfrom
test/4415-video-render-passes
Nov 16, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4415-video-render-passes

Conversation

@zackees

@zackees zackees commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Refs #4415. This is the C-only characterization and verbatim-extraction prerequisite for #4417.

Record the real draw_mix_texture and render_convert_plane bodies 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: removing gs_enable_framebuffer_srgb(false) from the original body makes mix_passes fail (EPI[B+L] versus EPI[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_size remains a dependency in its existing file.

The new tests.d fragment 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. ./push passed 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 existing dead_pipe_write_survives_concurrent_spawns test failing after its stuck child was terminated. The earlier ./unittest attempt reproduced that hang and was interrupted before Tier 2. The single full ./lint attempt 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.

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 zackees changed the title libobs: Extract video texture and conversion render passes libobs: Characterize and extract video render passes Nov 16, 2026
@zackees
zackees marked this pull request as ready for review November 16, 2026 22:01
@zackees
zackees enabled auto-merge November 16, 2026 22:01
@zackees
zackees added this pull request to the merge queue Nov 16, 2026
Merged via the queue into master with commit 920e800 Nov 16, 2026
43 checks passed
@zackees
zackees deleted the test/4415-video-render-passes branch November 16, 2026 23:31
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