Repository navigation
cvcgl_shadow_pass_programs: on Apple's GL, up to 12 bytes may be more than 2 levels out - #1222
Merged
Merged
Conversation
… than 2 levels out On macOS CI the test missed in six runs across four package-macos jobs, each time by 3 bytes at most 3 levels apart, in C or in E, with every other comparison byte for byte. On a build whose GL renderer string says Apple, a comparison now also passes when at most 12 bytes differ by more than 2 levels. Everywhere else the 2-level check is unchanged. C's light swap changes 26155 of the frame's 36864 bytes on Intel Arc, and the test now prints that count, so a stale shader still fails.
transfix
enabled auto-merge (squash)
November 14, 2026 03:20
transfix
added a commit
that referenced
this pull request
Nov 14, 2026
…#1222-#1225, #1229) Master's #1190 (file-pick and http-upload) was written for a single async host; this branch runs an isolated document's programs on its own group's host, on a pool worker in an `any` group. - net_intrinsics.cpp: StartedRequest takes master's deliver()/on_outcome, settling through the host's finisher. http-upload is its own provider, `any` as the requests are: it parks on the calling program's host (ictx.host), takes its progress path from ictx.root_path (no tree walk on a worker), and a started upload (a browser page) keeps the host's finisher, not the host. - ariadne.cpp: file-pick, file-info and file-forget bind into the program's env as they are, in every group (install_backend_verbs), not through the backend verbs' host_proxied wrapper, which cannot park an async verb. file-pick parks on the program's own host, claims the Runtime's picker hub under its lock where it is called, and opens the picker on the host thread (exec_pool::run_on_host; inline when called there). Its answer goes through the host's finisher, as the host may be gone by then. - ci.yml: the sanitizer list keeps this branch's tests and master's point_classes_test. - STATE_EXEC_THREADED.md: rows for http-upload, the file verbs, and the contours and point-classes providers. The last two are registered without a kind, so they are host_only, and an isolated document in an app that installs them goes to a host-affinity group. - New test: AriadneIsolatedDocs.FilePickOpensItsPickerOnTheFramesThread.
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.
What failed
cvcgl_shadow_pass_programs(#996) fails on macOS's package lanes now and then. In #1171'spackage-macos / libcvc-release-grpc-staticjob it failed all three ctest attempts, and the job went red. Every miss in the macOS logs I have looks the same:libcvc-release-grpc-static(131824127850)libcvc-release-grpc(earlier attempt)In those runs every other comparison was byte for byte. The test allows 2 levels a channel, a margin set for Apple's GL, which isn't always deterministic (see
cvcgl_shadow_casters). The misses are one level over it, in 3 bytes of the frame's 36,864.The change
Only in
src/cvcGL/test/cvcgl_shadow_pass_programs.cpp:__APPLE__and "Apple" in the string, ascvcgl_shadow_casterschecks), a comparison also passes when at most 12 bytes differ by more than 2 levels.It still catches a stale shader. The test's comment says C without the shader-stage MTime differs by 145 levels. On Intel Arc, C's light swap changes 26,155 of the 36,864 bytes, so shadows drawn for the wrong light would be thousands of bytes off, not 12.
What was checked
CVC_REQUIRE_RENDER=1): passes. Every on/off comparison is 0 bytes, 0 more than 2 levels.git-clang-format): clean.ci/fullrun is still queued). The Apple-only branch is one line, the same checkcvcgl_shadow_castersmakes. The misses above (3 bytes) are well inside the new allowance.Why now
#1171's red macOS lane has two of master's tests in it:
cvcgl_ewave(fixed by #1219) and this one. Neither job is required, but the same failures turn master's push runs red on macOS.