Repository navigation
rust: port graphics/matrix3.c to obs-graphics - #177
Merged
Merged
Conversation
Local-Gate: v1 tree=12181cd5c0c6a7e8760df475d2ed59d402965a3e secs=422 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791680648,"gate":"rust/all/fmt","host":"linux-x86_64","key":"7c749e9aca4da4806c2200f2129ff08f55d3849dec1cb4462a12e862f35560a3","lane":"lint","parents":["ab5fbfda14e6b50c9f8907d967bed01ad0671956"],"secs":157,"stamp":"6dba9556acdb54e34a4a0feefc8717b5","tree":"12181cd5c0c6a7e8760df475d2ed59d402965a3e","v":1,"via":"run"}
Ci-Attestation: {"at":1791680648,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"7c749e9aca4da4806c2200f2129ff08f55d3849dec1cb4462a12e862f35560a3","lane":"lint","parents":["ab5fbfda14e6b50c9f8907d967bed01ad0671956"],"secs":157,"stamp":"a84b07d1dab7c308420ad277cdcd2784","tree":"12181cd5c0c6a7e8760df475d2ed59d402965a3e","v":1,"via":"run"}
Ci-Attestation: {"at":1791680648,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"9f87de8caad7a109e98a513cebbc6a4e2c2912591653222741fb64245d3a8d2a","lane":"rust-test","parents":["ab5fbfda14e6b50c9f8907d967bed01ad0671956"],"secs":96,"stamp":"fa4c91516e133bfb159952d0748cd87b","tree":"12181cd5c0c6a7e8760df475d2ed59d402965a3e","v":1,"via":"run"}
Ci-Attestation: {"at":1791680648,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"5830cfad62c7b86d246e7ce107b2da26837de63e50f2dec08f244fa8acb865c9","lane":"tier2-linux","parents":["ab5fbfda14e6b50c9f8907d967bed01ad0671956"],"secs":168,"stamp":"d092b5074bcc09793bd2d91a82f49571","tree":"12181cd5c0c6a7e8760df475d2ed59d402965a3e","v":1,"via":"run"}
Member
|
Rebased onto master after #172 (quat) merged (old head 22c094a, replaced with --force-with-lease):
Verified with soldr's cache disabled. RED: |
10 of 22 tasks
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.
Fixes #149
What and why
Ports the 11 exported functions in
libobs/graphics/matrix3.ctoobs-graphics. Header-inline helpers stay in the C header.matrix3_invfollowsmatrix4_inv's cofactor inverse, including the0.0005determinant cutoff: a rejected determinant leavesdstunchanged exceptt.w = 0.matrix4.citself stays C.matrix3_transposematches the SSE shuffles, so every axiswlane becomes the sourcez.w.No intentional numeric differences.
Issue #149 asks for the characterization as its own PR. That work is the first commit (
01837125a) and contains no Rust. The port commits follow it in this PR so the new cmocka test and theENABLE_RUST_LIBOBSswap are reviewed together.RED → GREEN
01837125aaddstest/cmocka/test_matrix3.conly.62969abfa.soldr cargo test -p obs-graphics --test matrix3failed 13/13, each withnot yet implementedfrom thetodo!()core.22c094a7a.soldr cargo test --workspace --lockedpassed, including the Tier 1 mirror of the cmocka tests, the layout test, Tier 3 parity (256 random bit patterns, plusmulwithdst == m2and aliasedinv), andexport_list.soldr cargo clippy -p obs-graphics -p obs-util --all-targets --locked -- -D warningspassed.x.wfrom the sourcex.winMatrix3::transposefailedmatrix3_matches_c_oracle. Reverted. The proptest regression file was not committed.rust/tools/linux-validate/run.sh) did not run: Docker is not installed, so this head is not stamped. Theclaimedlabel could not be applied (AddLabelsToLabelableis denied). The claim comment is on the issue.Checklist
master