You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Characterize and port graphics/matrix4.c #150
No cmocka test exists. matrix4 uses SIMD (SIMDe), so the policy allows a per-function ULP tolerance: document it in the parity test file. Characterization test first, then the port after matrix3.
Acceptance: follows docs/rust-port/testing-policy.md. RED commit (Tier 1 on a todo!() core, plus the C characterization test if missing) then GREEN; Tier 2 passes with ENABLE_RUST_LIBOBS OFF and ON with identical exports; Tier 3 parity against the C oracle; intentional differences listed in the parity test header and rust/README.md.
Claim before coding: comment on this issue and add the claimed label (or ask a maintainer to). Check open PRs first (gh pr list --search "<unit>").
Characterization cmocka test test/cmocka/test_matrix4.c (fragment tests.d/test_matrix4.cmake). Pins the current C behavior, including the singular matrix4_inv leaving dst unchanged and matrix4_*_i taking the translation row from the right-hand matrix.
RED: Tier 1 tests in rust/obs-graphics/tests/matrix4.rs against stubs that return an all-zero matrix, 0.0, or Some(zero) for try_inv.
GREEN: safe core in obs-graphics::matrix4, C shims for the EXPORT symbols (not matrix4_mul_4x3_only, which is file-local), layout test, bit-exact Tier 3 parity (SSE transpose and vec4_dot only move or sum lanes; no ULP slack), ENABLE_RUST_LIBOBS guard, and rust-exports.d/obs-graphics-matrix4.txt.
matrix3 is already on master. Header-inline helpers stay in matrix4.h. First PR today.
Docker is not available on this machine, so Tier 2 OFF/ON runs in CI.
Done in #227 (merged). graphics/matrix4.c is ported to obs-graphics::matrix4 and swapped under ENABLE_RUST_LIBOBS, with characterization, Tier 1, layout and parity tests. Tier 2 passed 73 of 73 with ENABLE_RUST_LIBOBS OFF and 73 of 73 with it ON.
Activity
nathan-v commentedon Oct 11, 2026
Claiming: graphics/matrix4.c (#150).
Plan, one PR (
port/matrix4), three commits:test/cmocka/test_matrix4.c(fragmenttests.d/test_matrix4.cmake). Pins the current C behavior, including the singularmatrix4_invleavingdstunchanged andmatrix4_*_itaking the translation row from the right-hand matrix.rust/obs-graphics/tests/matrix4.rsagainst stubs that return an all-zero matrix,0.0, orSome(zero)fortry_inv.obs-graphics::matrix4, C shims for theEXPORTsymbols (notmatrix4_mul_4x3_only, which is file-local), layout test, bit-exact Tier 3 parity (SSE transpose andvec4_dotonly move or sum lanes; no ULP slack),ENABLE_RUST_LIBOBSguard, andrust-exports.d/obs-graphics-matrix4.txt.matrix3is already on master. Header-inline helpers stay inmatrix4.h. First PR today.Docker is not available on this machine, so Tier 2 OFF/ON runs in CI.
zackees commentedon Oct 11, 2026
Done in #227 (merged).
graphics/matrix4.cis ported toobs-graphics::matrix4and swapped underENABLE_RUST_LIBOBS, with characterization, Tier 1, layout and parity tests. Tier 2 passed 73 of 73 withENABLE_RUST_LIBOBSOFF and 73 of 73 with it ON.