Repository navigation
libobs: Characterize and extract graphics task queue execution - #4410
Merged
Merged
Conversation
zackees
enabled auto-merge
November 9, 2026 15:14
This was referenced Nov 9, 2026
zackees
force-pushed
the
test/4403-graphics-tasks-extract
branch
from
November 9, 2026 20:18
415f58e to
5c3ecc7
Compare
7 tasks done
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 #4403. Rust follow-up: #4408.
Characterize graphics queue execution through the public
obs_queue_task(OBS_TASK_GRAPHICS, ...)API, then moveexecute_graphics_tasksverbatim fromobs-video.c.hintoobs-video-graphics-tasks.c.h. Register the extraction in sorted position in the existing core-output unity group. This is the C-only prerequisite required by the testing policy before the Rust port; it changes no behavior, signature or public header.The real graphics-thread characterization stages queued work with events and checks FIFO order. A second case pins inline nested dispatch on the graphics thread, then asks a separate producer to append a child and waits for that enqueue before returning from the callback. The producer must acquire the queue mutex, so this fails if the drain holds the mutex during callbacks. The existing tail runs before the newly queued child. The test uses no sleeps and adds one temporary producer thread alongside libobs's normal threads.
The characterization commits precede the extraction commit. This prerequisite tests the current implementation rather than adding a Rust stub; the RED/GREEN Rust replacement belongs to #4408. Before extraction, the public test passed against hybrid libobs (0.34 s) and the C reference (0.18 s). The first local setup attempt failed to locate shader data; the test now runs beside the build's staged runtime data, matching the existing graphics tests.
Validation for the extracted head is recorded below. No existing C tests, public headers, workflows,
test-graph.jsonornative.rsare modified. No native Windows/macOS run or full Tier 2 suite is claimed. Tier 1 and Tier 3 Rust replacement tests belong to the follow-up; Tier 4 does not apply to this internal queue.Extracted-head validation passed: the new public test against hybrid libobs (0.64 s) and the C reference (0.26 s), identical dynamic export lists,
soldr cargo fmt --all --check, the CMake Rust-static guard,git diff --check, and fullSOLDR_PORCELAIN=0 ./lint(153.6 s). The diagnostic wrapper reported an unknown summary format with exit 0; the preserved raw artifacts show both ctest passes andlane lint: ok. The extraction body was compared byte-for-byte with its original body../pushused its documented fallback because this installed soldr has nolint rust --attest; PR CI must run the selected validation without client attestation.