Repository navigation
obs-graphics: port texture creators with C ABI and differential coverage - #4585
Merged
Merged
Conversation
zackees
force-pushed
the
port/4267-texture-creators
branch
from
November 10, 2026 18:00
430a3ae to
036ce53
Compare
zackees
enabled auto-merge
November 10, 2026 18:03
zackees
force-pushed
the
port/4267-texture-creators
branch
2 times, most recently
from
November 10, 2026 19:40
d359936 to
9bb0925
Compare
zackees
force-pushed
the
port/4267-texture-creators
branch
3 times, most recently
from
November 10, 2026 21:06
fb11027 to
e30fcee
Compare
The shader-file and texture-creator fixtures both exported gs_get_context, breaking Windows archive links in unrelated category binaries. Share the existing thread-local texture context with shader-file parity and restore context presence on texture fixture resets. Preserve the meaningful recording backends and all parity assertions.
Ci-Attestation: {"at":1794342245,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["0ed0de0e33b2fb6de906ba41a14e96cfad5c77a9"],"secs":211,"stamp":"15083ffddcb73c4d38f9bc5a9be80640","tree":"1ebbdbf55b2957452286d89820d8748b42a377ba","v":1,"via":"run"}
Ci-Attestation: {"at":1794342245,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["0ed0de0e33b2fb6de906ba41a14e96cfad5c77a9"],"secs":211,"stamp":"ea065781104a55dd2766724159799ec3","tree":"1ebbdbf55b2957452286d89820d8748b42a377ba","v":1,"via":"run"}
Ci-Attestation: {"at":1794342245,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["0ed0de0e33b2fb6de906ba41a14e96cfad5c77a9"],"secs":211,"stamp":"461ad0dad0dcbe0f27d8d76179faa820","tree":"1ebbdbf55b2957452286d89820d8748b42a377ba","v":1,"via":"run"}
The shared graphics context can select texture oracle objects in utility-only test links. Route their mip planning and planar fallback calls through the existing C oracle implementations instead of requiring the public Rust graphics symbols. Retain one context provider and exercise the Rust texture creators through the existing graphics parity suite.
Ci-Attestation: {"at":1794344553,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["e6c43b8d3c130bb4b18835bd4eed8f5dce9d2f0a"],"secs":182,"stamp":"7f3e5c4539e537597086196fa9afa1e5","tree":"fe87dff4769ab9777c3502b46fe72172a4c64bd9","v":1,"via":"run"}
Ci-Attestation: {"at":1794344553,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["e6c43b8d3c130bb4b18835bd4eed8f5dce9d2f0a"],"secs":182,"stamp":"1a7b238b77a8b857afb400f280f0426e","tree":"fe87dff4769ab9777c3502b46fe72172a4c64bd9","v":1,"via":"run"}
Ci-Attestation: {"at":1794344553,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["e6c43b8d3c130bb4b18835bd4eed8f5dce9d2f0a"],"secs":182,"stamp":"62c59dd418adb91cf5edf301446c0ab4","tree":"fe87dff4769ab9777c3502b46fe72172a4c64bd9","v":1,"via":"run"}
zackees
force-pushed
the
port/4267-texture-creators
branch
from
November 10, 2026 21:36
e30fcee to
ee6108f
Compare
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Nov 10, 2026
…st#4618) The resolver filed obs-rust#4585's texture-creators.c.h into the wrong unity group while rebasing obs-rust#4588, and every Tier 2 job failed. ci/test_build_groups.py needs no toolchain and catches that in seconds, so it now runs on every rebased head; AI_REBASE_PREFLIGHT adds heavier checks on top. The GitHub Action set no preflight at all, so it armed PRs unchecked. Refs obs-rust#4508 Ci-Attestation: {"at":1794351672,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["d0b82899a196798669a22cc938d6a79994ced819"],"secs":285,"stamp":"7298a1f2792c8dc6c025ea752ddeaf55","tree":"55184c774deb5eb285e0461552e4b89d77f52cb7","v":1,"via":"run"} Ci-Attestation: {"at":1794351672,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["d0b82899a196798669a22cc938d6a79994ced819"],"secs":285,"stamp":"53d4bba3da5557861ae1832f3162b9e4","tree":"55184c774deb5eb285e0461552e4b89d77f52cb7","v":1,"via":"run"} Ci-Attestation: {"at":1794351672,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["d0b82899a196798669a22cc938d6a79994ced819"],"secs":285,"stamp":"f1e4e5b47203ea15a660ef678d40f7bd","tree":"55184c774deb5eb285e0461552e4b89d77f52cb7","v":1,"via":"run"}
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.
Parent #4356 has merged; ai-rebase replayed only this PR's own commits onto master.
Refs #4267.
Published from branch-only work held during the 2026-11-09 merge-queue backlog (the worker's report said to open it once the queue drained).
Commits:
Link repair after rebasing onto master with #4587: the shader-file and texture-creator oracle fixtures both defined gs_get_context. Windows archive selection exposed the collision in the media, graphics and core test binaries. Consolidated them into one thread-local provider, preserving each fixture's explicit context-present/absent behavior and restoring normal context on texture/texrender resets. No duplicate-symbol suppression, placeholder provider, public header or existing C test changes.
Local RED: the Windows workspace link check reproduced the duplicate symbol in both oracle objects. GREEN: all 844 graphics tests passed, all 275 native-build tests passed, and the Windows workspace link check passed. The rebuilt Windows oracle archive contains exactly one defined gs_get_context symbol.
Full lint passed with SOLDR_PORCELAIN=0. Validation used the full existing graphics category binary with reduced parity cases; all 844 tests passed in 2.38 seconds. No tests or assertions were removed or weakened.
Follow-up for hosted Windows Link Check job 130107332360: selecting the shared oracle context provider can also select C baseline texture objects. Those objects still imported the public Rust mip planner and texture creator, which utility-only test links do not supply. The C texture baseline now calls the existing oracle_gs_texture_mip_plan, and the C planar baseline calls the original oracle_gs_texture_create. The Rust side continues to exercise the public Rust shims against the same recording backend. The single gs_get_context provider remains intact.
The initial standalone workspace link check passed locally and did not reproduce the hosted failure; an audit of its Windows oracle archive nevertheless confirmed both problematic public-symbol imports. All 844 graphics tests and all 275 native-build tests pass after the routing correction, and full lint passes after the pinned formatting correction.
Final verification: the Windows workspace link check passed when run alone after all other build/check commands completed, with verdict replay disabled. The rebuilt Windows oracle archive has no gs_texture_mip_plan or gs_texture_create imports from the two corrected baseline objects; both private C oracle implementations are defined, and exactly one gs_get_context definition remains. No assertions were changed or removed.