Skip to content

nav_material_ext_test: build it with -ffp-contract=off, as the material rollouts are - #752

Closed
transfix wants to merge 1 commit into
masterfrom
test/material-ext-no-contraction
Closed

transfix wants to merge 1 commit into
masterfrom
test/material-ext-no-contraction

Conversation

@transfix

Copy link
Copy Markdown
Owner

NavMaterialExt.ACallbackGivingThePatchIsThePatch fails on macOS arm64 in its dynamic case. Its first macOS run was on #747; #734 merged with its macOS jobs still queued.

Cause. The test compares two versions of the same rollout bit for bit:

  • one takes its external force from a callback in the test file, which samples the force patch with the inline detail::patch_sample_channel;
  • the other reads the patch inside the library.

The library's material files are built with -ffp-contract=off, but the test file was not. On aarch64, clang contracts the callback's bilinear sample into FMAs, and the dynamic rollout ends a few ULPs apart.

Fix. Build nav_material_ext_test.cpp with -ffp-contract=off (/fp:precise on MSVC), as the material rollouts are. This is a test-only change.

Evidence. On x86 I rewrote the callback's sample with the FMAs clang forms (fmaf chains). The dynamic case then fails and the surrogate and bicycle cases pass, the same pattern as macOS. The experiment was not committed. macOS CI here is the confirmation.

…al rollouts are

NavMaterialExt.ACallbackGivingThePatchIsThePatch compares a rollout whose external force comes
from a callback in this file with the same rollout reading the force patch in the library, bit
for bit. The library's material TUs are built without FMA contraction. On aarch64 clang
contracted the callback's bilinear sample, and the dynamic case differed in the last bits:
the first macOS run of the test, which had not run there before #734 merged.

Reproduced on x86 by writing the callback's sample with the FMAs clang forms: the dynamic case
fails and the surrogate and bicycle cases pass, as on macOS.
@transfix

Copy link
Copy Markdown
Owner Author

Closing as a duplicate of #750, which landed the same fix (nav_material_ext_test built with -ffp-contract=off) on master.

@transfix transfix closed this Oct 20, 2026
@transfix
transfix deleted the test/material-ext-no-contraction branch October 20, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant