Repository navigation
render: restore cross-axis contact ao during camera yaw (#5015) - #5121
Conversation
Note:
|
2b91296 to
bde869f
Compare
|
Addressed feedback:
|
jakildev
left a comment
There was a problem hiding this comment.
Review — Cross-axis contact AO (refs #5015)
Verdict: approve
No blocker or needs-fix found on a read of the diff, but this is core render code (shaders, UBO mutation, overflow-record layout) with the GLSL path never run, so it needs an Opus pass.
Nits (follow-up)
system_lighting_to_trixel.hpp:617—restoreOverflowRoute = aoOnly ? 0 : 1hard-codes the route the caller was in (LightingRouteScopesets 1; the surface-lighting route has no scope, so 0). A save-and-restore of the prior value would not depend on that. This only runs underIR_CROSS_AXIS_CONTACT_AO_DISABLE.c_light_overflow_faces.glsl:188andc_compute_voxel_ao_body.glsl:314—perAxisRoutebit 1 now means "diagnostic disable".system_voxel_to_trixel.hpp:1264uploadsaxis + 1(1, 2 or 3) to the same field, so 2 and 3 already mean Y and Z there. It is safe only because these kernels run under route 1, never under the stage-1/2 upload. A one-line comment on the field would stop a later reader mistaking it for an axis route.c_light_overflow_faces.glsl:130(and the Metal twin) — the radius4.0and min distance1.0e-6are literals, where the AO body useskAORadiusSquaredandkAOMinDistanceSquared. The two copies of the contact term can drift apart; a shared constant would prevent that.- The overflow AO carrier is 4 bits (16 levels) against 8-bit cell AO. The PR documents the packing; the quantization step is visible only on the surface-lighting overflow slivers.
- The surface-lighting route now dispatches
dispatchOverflowLighting(…, true)every frame it is eligible. The committed cost evidence hasIR_PERAXIS_SURFACE_LIGHTINGunset, so that dispatch is not in the measured numbers. The route is opt-in, so this is not blocking.
Praise
- Four existing-texture reads per active cell and no new GPU resource. The overflow word 3 repack (28-bit index | 4-bit AO) is guarded by a
static_assertbesidekMaxEdge. The sort's tie-break on word 3 is unaffected because stage 1 writes a constant AO nibble. - Kill switch
IR_CROSS_AXIS_CONTACT_AO_DISABLEand the committed paired-Release evidence make the positive fire and the cost reproducible.
Acceptance (issue #5015)
This PR says Refs #5015, not Closes, so I did not dispatch the acceptance grader. The body's ## Acceptance evidence table has a row for each stated criterion; the OpenGL row is named as fleet:needs-windows-smoke debt.
Checked
- Read the full engine diff: C++ systems, GLSL, the Metal twins, and the scatter and stage-1 changes. GLSL and Metal logic match line for line. Every new GLSL helper resolves through
ir_iso_common.glsl/ir_per_axis_lighting.glsl. - Grepped every other reader of overflow record word 3:
v_peraxis_scatterand the Metal vertex shader unmask the index, and the sort treats the word as an opaque payload. No unmasked reader remains. - The image-slot 10–12 rebind after the overflow dispatch matches slots the lighting program does not otherwise use.
- Head
bde869fe. Passing: format-check, header-checks, shader-parity, instruction-refs, comment-refs, python-lint, closes-lint, whitespace. Unread:linux-build,perf-gate,render-harness-tests,fleet-testsandall-checkshave no completed run on this head, so I am not treating them as green. - Not run by me: no build, render-verify, or light-verify. The GLSL has not been compiled on any GL host. The author's Metal runtime evidence is taken as stated, not re-run.
- Binary reference PNG changes (3 canvas_stress, 5 lighting) were not visually graded here; the PR body says they were reviewed and refreshed as intended rotating-AO changes.
Escalation: please Opus-recheck before merge (touches: engine/render shaders, engine/prefabs/irreden/render systems, per-frame UBO subData state, overflow-record layout; GLSL uncompiled on GL).
🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)
Opus recheck required: core render path (engine/render/ shaders plus per-frame UBO state and a widened overflow record), a 28/4-bit packed index carrier read by several stages, and GLSL that no GL host has compiled; CI linux-build / perf-gate / render-harness-tests are also still unread on this head.
Perf gateHead host slug: perf comparison: ea61318 → 550d956-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
221.614 → 234.362 (+5.8%) |
| RENDER | ComputeLightVolume |
32.776 → 32.933 (+0.5%) |
| RENDER | ComputeSunShadow |
16.312 → 16.841 (+3.2%) |
| RENDER | CanvasToFramebuffer |
15.157 → 15.683 (+3.5%) |
| RENDER | BakeSunShadowMap |
7.768 → 7.572 (-2.5%) |
| UPDATE | FogRevealEval |
3.244 → 4.476 (+38.0%) ⚠ |
| UPDATE | PropagateTransform |
3.750 → 3.846 (+2.6%) |
| RENDER | LightingToTrixel |
3.419 → 3.509 (+2.6%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
697.514 → 712.805 (+2.2%) |
| RENDER | ComputeSunShadow |
32.671 → 33.030 (+1.1%) |
| RENDER | ComputeLightVolume |
29.268 → 28.975 (-1.0%) |
| RENDER | CanvasToFramebuffer |
14.307 → 14.508 (+1.4%) |
| RENDER | LightingToTrixel |
7.151 → 7.421 (+3.8%) |
| RENDER | ComputeVoxelAO |
7.149 → 7.170 (+0.3%) |
| RENDER | BakeSunShadowMap |
6.664 → 6.564 (-1.5%) |
| UPDATE | FogRevealEval |
3.278 → 4.304 (+31.3%) ⚠ |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
235.226 → 264.504 (+12.4%) ⚠ |
| RENDER | ComputeSunShadow |
38.752 → 42.266 (+9.1%) |
| RENDER | ComputeLightVolume |
30.436 → 30.048 (-1.3%) |
| RENDER | LightingToTrixel |
19.417 → 20.136 (+3.7%) |
| RENDER | CanvasToFramebuffer |
15.402 → 16.016 (+4.0%) |
| RENDER | BakeSunShadowMap |
9.598 → 10.500 (+9.4%) |
| UPDATE | PropagateTransform |
5.394 → 5.380 (-0.3%) |
| RENDER | FogToTrixel |
4.567 → 4.632 (+1.4%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1045.059 → 1057.336 (+1.2%) |
| RENDER | ComputeSunShadow |
43.619 → 43.505 (-0.3%) |
| RENDER | ComputeLightVolume |
30.826 → 31.392 (+1.8%) |
| RENDER | CanvasToFramebuffer |
14.061 → 14.249 (+1.3%) |
| RENDER | BakeSunShadowMap |
6.511 → 6.720 (+3.2%) |
| RENDER | LightingToTrixel |
5.891 → 6.171 (+4.8%) |
| RENDER | ComputeVoxelAO |
5.813 → 5.928 (+2.0%) |
| UPDATE | PropagateTransform |
5.405 → 5.399 (-0.1%) |
jakildev
left a comment
There was a problem hiding this comment.
Opus recheck — Cross-axis contact AO (refs #5015)
Verdict: needs-fix
The approach holds up: four lookups into the existing per-axis distance stores, no new GPU resource, a constant AO nibble while the overflow sort runs, and a kill switch that leaves the rest of the pipeline alone. What blocks it is the OpenGL side. The new overflow kernel declares image units above the 8 that NVIDIA's GL driver exposes, and NVIDIA GL is what the Windows ship host runs.
Needs-fix
c_light_overflow_faces.glsl:89-91 + system_lighting_to_trixel.hpp (the 10 + axis / slot = 10..12 binds) — image units 10, 11, 12 are past NVIDIA GL's limit.
- The GL spec only guarantees
GL_MAX_IMAGE_UNITS≥ 8, and NVIDIA's (and Intel's) proprietary GL drivers report exactly 8 (yuzu reserves image bindings per stage because of this). - GLSL makes an image
binding≥gl_MaxImageUnitsa compile-time error.glBindImageTexture(unit ≥ GL_MAX_IMAGE_UNITS, …)isGL_INVALID_VALUE. - The fleet's Windows host is an RTX 3060 Ti on NVIDIA GL (
docs/perf/fog-ceiling-retention/gl-yawed-lanes/README.md). On that hostLightOverflowFacesProgram, which is created increate(), should fail to compile. At best the three binds become no-ops every rotating frame and the kernel reads unbound images. - Master stays inside this limit everywhere. A census of every
layout(… binding = N) … image*declaration underengine/render/src/shaders/*.glslonorigin/masteruses units 0–7 only. This PR is the first to declare units ≥ 8. linux-build, Mesa on WSL and Metal will not catch it: Mesa reports 32 or more, and Metal's[[texture(10..12)]]is a different namespace. The PR body records the GL path as never compiled, so nothing has checked it.
Fix: bind the three per-axis distance images at units below 8 in the overflow kernel. The lighting program (c_lighting_to_trixel_body.glsl) uses image units 0, 1, 2, 3, 4 and 6, which leaves 5 and 7 free. The third image has to borrow a lighting unit, and the dispatch then rebinds that lighting image when it returns. That is the same "next dispatch rebinds any shared slot it owns" pattern the existing slot 10–12 restore already follows.
The Metal [[texture(N)]] indices can stay where they are or move to match. No other Metal kernel uses textures 10–12, so the restore is harmless there either way. Please also add the new units to the shader-contract test, so a binding of 8 or more cannot come back, and keep fleet:needs-windows-smoke as the runtime proof.
The AO compute kernel's new units 2–4 (c_compute_voxel_ao_body.glsl:98-100) are within the limit and fine.
Sonnet's first pass — confirm / disagree
- Sonnet: "image-slot 10–12 rebind … matches slots the lighting program does not otherwise use." On closer read I agree the lighting program does not use those slots. But the slots are illegal on the ship host's GL driver, and that is the blocker above. The read was right; the limit was not checked.
- Sonnet: the sort's tie-break on word 3 is unaffected. Confirmed.
c_per_axis_overflow_sort.glslkeys on all four words but runs in VOXEL_TO_TRIXEL, before LIGHTING_TO_TRIXEL rewrites the nibble, and stage 1 writes a constantpackOverflowVoxelAO(idx, 1.0). The sentinel distinctness rests on word 0, so a high nibble of 0xF in word 3 cannot collide with it. - Sonnet: no unmasked reader of word 3 remains. Confirmed.
v_peraxis_scatterand the Metal scatter mask the index.c_fog_overflow_faces(GLSL and Metal) does not read word 3. The sort copies it opaquely. - Sonnet nit:
perAxisRoutebit 1 overload. Confirmed safe.decodeDepthRouteanddecodeFlipRoutetestperAxisRoute != 0, so the diagnostic value 3 still decodes per-axis, and the AO body'sperAxisis!= 0. The disable fixture therefore turns off only the four new reads, and theoccluded_px=0disable evidence is a clean negative control.
Opus-only checks
- UBO mutation ordering. The AO-only
.wflag and the diagnostic route are written withsubDatabetween dispatches on the shared voxel UBO (binding 7). GL ordersglBufferSubDataagainst earlier dispatches. On Metal, a whole-buffer subData on a UBO already encoded this frame replaces the buffer, so earlier encoders keep their values. Correct on both backends. - Default-path cost. With neither
IR_PERAXIS_SURFACE_LIGHTINGnor the disable switch set, the PR adds nosubData. It adds only the four image reads per active cell plus three image binds per axis dispatch, which matches the committedcomputeVoxelAoPerAxis+0.015 ms. - Hazards. The AO pass reads all three axes' distances but writes only its own axis's AO texture, so the outputs are disjoint and need no added barrier. The overflow kernel's word-3 write is ordered before the scatter's vertex SSBO read by the existing
SHADER_STORAGEbarrier. - 28-bit index carrier. The
static_assertbesidekMaxEdgecoverskMaxEdge³ < 2^28, and every reader masks withkOverflowVoxelIndexMask.
Nits (follow-up)
system_compute_voxel_ao.hppsetsperAxisRoute_ = 3underIR_CROSS_AXIS_CONTACT_AO_DISABLEand never restores it, unlike the lighting twin. It is harmless only because the next per-axis upload re-authors the field. A save-and-restore would also cover Sonnet's hard-codedrestoreOverflowRoutenit.- Sonnet's literal
4.0/1.0e-6drift nit inoverflowContactOcclusionstands. UsekAORadiusSquaredandkAOMinDistanceSquared. - The surface-lighting route's AO-only dispatch has no positive-fire or cost row; Sonnet's nit 5 stands.
Checked
- Head
bde869fe. Read the full engine diff: C++ systems, GLSL, the Metal twins, and the stage-1, sort and scatter consumers. - Grep census of GLSL image units on
origin/master: units 0 to 7 only. Checked the Metaltexture(10..12)users (the overflow kernel only), theperAxisRoutedecoders and the overflow sort key. - Not run by me: no build,
render-verifyorlight-verify, and I did not compile the GLSL on any GL host. The NVIDIA limit comes from the GL spec minimum and a published driver note, not a run on the 3060 Ti. If the Windows host reportsGL_MAX_IMAGE_UNITS≥ 13 and the program links, say so with the log line and this finding drops. - CI:
linux-build,perf-gate,render-harness-tests,fleet-testsandall-checkswere still pending on this head when I reviewed, so I am not treating them as green.
🤖 Reviewed by Claude Opus 5.5 (opus-reviewer, review-pr skill)
Perf gateHead host slug: perf comparison: 973cca4 → a88894d-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
297.961 → 297.992 (+0.0%) |
| RENDER | ComputeLightVolume |
35.515 → 35.094 (-1.2%) |
| RENDER | ComputeSunShadow |
19.866 → 19.816 (-0.3%) |
| RENDER | CanvasToFramebuffer |
17.575 → 17.757 (+1.0%) |
| RENDER | BakeSunShadowMap |
10.404 → 10.228 (-1.7%) |
| UPDATE | FogRevealEval |
4.318 → 6.543 (+51.5%) ⚠ |
| UPDATE | PropagateTransform |
4.466 → 5.022 (+12.4%) ⚠ |
| RENDER | ComputeVoxelAO |
4.413 → 4.348 (-1.5%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
981.501 → 990.706 (+0.9%) |
| RENDER | ComputeSunShadow |
39.727 → 39.967 (+0.6%) |
| RENDER | ComputeLightVolume |
32.335 → 30.614 (-5.3%) ↓ |
| RENDER | CanvasToFramebuffer |
16.231 → 16.616 (+2.4%) |
| RENDER | ComputeVoxelAO |
10.820 → 10.541 (-2.6%) |
| RENDER | LightingToTrixel |
9.229 → 9.180 (-0.5%) |
| RENDER | BakeSunShadowMap |
8.796 → 8.738 (-0.7%) |
| UPDATE | FogRevealEval |
4.260 → 6.328 (+48.5%) ⚠ |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
328.031 → 340.875 (+3.9%) |
| RENDER | ComputeSunShadow |
64.391 → 68.573 (+6.5%) |
| RENDER | LightingToTrixel |
36.422 → 37.141 (+2.0%) |
| RENDER | ComputeLightVolume |
33.720 → 33.994 (+0.8%) |
| RENDER | BakeSunShadowMap |
22.888 → 23.043 (+0.7%) |
| RENDER | CanvasToFramebuffer |
17.895 → 18.562 (+3.7%) |
| RENDER | FogToTrixel |
7.296 → 7.299 (+0.0%) |
| UPDATE | PropagateTransform |
6.223 → 6.378 (+2.5%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1495.587 → 1501.581 (+0.4%) |
| RENDER | ComputeSunShadow |
54.602 → 54.531 (-0.1%) |
| RENDER | ComputeLightVolume |
33.594 → 34.609 (+3.0%) |
| RENDER | CanvasToFramebuffer |
16.024 → 16.096 (+0.4%) |
| RENDER | ComputeVoxelAO |
8.698 → 9.028 (+3.8%) |
| RENDER | BakeSunShadowMap |
8.899 → 8.989 (+1.0%) |
| RENDER | LightingToTrixel |
7.329 → 7.492 (+2.2%) |
| UPDATE | PropagateTransform |
6.286 → 6.236 (-0.8%) |
|
Addressed feedback:
|
jakildev
left a comment
There was a problem hiding this comment.
Review — render: restore cross-axis contact ao during camera yaw (#5015)
Verdict: approve
The one needs-fix from the last pass (domain_z8_yaw45_band reference not re-blessed) is resolved: the delta is that single reference PNG, and the full light-verify run on this head is 46/46.
Prior-review resolution
- ✅
creations/demos/lighting/test/references/macos-debug/light-verify/light-domain-matrix/domain_z8_yaw45_band.png— row failed at 99.477% on the rebased tree — verified fixed at72b560a0: the reference is refreshed and the row now readsPASS 100.000 identical. - ✅ PR body
light-verifyline — claimed 46/46 after five refreshed references — verified updated: it now reads "after reviewing and refreshing six intended rotating-AO references", which matches the six lighting PNGs in the diff. - ✅
c_light_overflow_faces.glsl/system_lighting_to_trixel.hppimage units (GL units 4/5/6) and thetest_render_cardinal_surface_lighting.pyunused assignment — still fixed; the delta touches neither. - ↗ Nits (
perAxisRoute_save/restore, literal4.0/1.0e-6vskAORadiusSquared/kAOMinDistanceSquared,perAxisRoutebit comment, surface-lighting AO-only cost row) — unchanged follow-ups, not re-raised.
Checked
- Head
72b560a0, deltaccaf69b3..72b560a0is one binary file; branch is on current master (a914699df), so the rebase state is unchanged since the last pass. - Ran
fleet-build --target IRLightingEmissive(exit 0) andpython3 scripts/light-verify.py --no-buildon this head, macOS debug: 46 PASS, 0 FAIL,all checks PASS.domain_z8_yaw45_bandanddomain_z8_yaw45_beyondread 100.000% identical; the other refreshed rows pass at local-class similarity. Single run; I did not repeat it. - The refreshed PNG was not visually graded; the control from the previous pass (the row passes at 99.781% with
IR_CROSS_AXIS_CONTACT_AO_DISABLE=1) attributes the movement to the PR's intended contact AO. - CI on this head: format-check, header-checks, shader-parity, instruction-refs, instruction-size, comment-refs, closes-lint, no-plan-files, python-lint, whitespace pass. Unread:
linux-build,perf-gate,render-harness-tests,fleet-testsandall-checkshave no completed run (pending); the delta is a reference image only, but they have not completed on this head. - Not run by me:
render-verifyfor CanvasStress, the GLSL path on any GL host (fleet:needs-windows-smokestays).
Escalation: none. Safe for merge.
🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)
Opus recheck not required.
Perf gateHead host slug: perf comparison: 9e35941 → c89ba1c-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
219.304 → 219.954 (+0.3%) |
| RENDER | ComputeLightVolume |
26.211 → 25.259 (-3.6%) |
| RENDER | CanvasToFramebuffer |
14.693 → 14.781 (+0.6%) |
| RENDER | ComputeSunShadow |
12.666 → 12.921 (+2.0%) |
| UPDATE | FogRevealEval |
7.427 → 7.992 (+7.6%) |
| RENDER | BakeSunShadowMap |
5.992 → 5.952 (-0.7%) |
| UPDATE | PropagateTransform |
3.715 → 3.600 (-3.1%) |
| UPDATE | LuaWaveStateToOffset |
2.939 → 3.272 (+11.3%) ⚠ |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
719.964 → 724.274 (+0.6%) |
| RENDER | ComputeSunShadow |
26.039 → 26.242 (+0.8%) |
| RENDER | ComputeLightVolume |
22.266 → 23.062 (+3.6%) |
| RENDER | CanvasToFramebuffer |
13.799 → 13.680 (-0.9%) |
| UPDATE | FogRevealEval |
7.552 → 7.312 (-3.2%) |
| RENDER | ComputeVoxelAO |
6.645 → 7.062 (+6.3%) |
| RENDER | BakeSunShadowMap |
5.063 → 5.142 (+1.6%) |
| RENDER | LightingToTrixel |
5.013 → 5.036 (+0.5%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
234.552 → 237.554 (+1.3%) |
| RENDER | ComputeSunShadow |
34.668 → 35.270 (+1.7%) |
| RENDER | ComputeLightVolume |
23.793 → 24.097 (+1.3%) |
| RENDER | LightingToTrixel |
18.714 → 19.169 (+2.4%) |
| RENDER | CanvasToFramebuffer |
14.805 → 14.794 (-0.1%) |
| RENDER | BakeSunShadowMap |
7.977 → 8.138 (+2.0%) |
| UPDATE | FogRevealEval |
6.797 → 7.495 (+10.3%) ⚠ |
| UPDATE | PropagateTransform |
4.687 → 4.818 (+2.8%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1094.359 → 1105.047 (+1.0%) |
| RENDER | ComputeSunShadow |
34.468 → 35.112 (+1.9%) |
| RENDER | ComputeLightVolume |
24.906 → 24.997 (+0.4%) |
| RENDER | CanvasToFramebuffer |
13.381 → 13.691 (+2.3%) |
| UPDATE | FogRevealEval |
7.813 → 7.369 (-5.7%) ↓ |
| RENDER | ComputeVoxelAO |
5.560 → 5.800 (+4.3%) |
| RENDER | BakeSunShadowMap |
5.213 → 5.212 (-0.0%) |
| UPDATE | PropagateTransform |
4.663 → 4.740 (+1.7%) |
…anges (#5188) Windows rows so3_*, revoxelize_solids and compare_yaw* moved after #5119 (one sun-shadow receiver model on voxel faces) and #5121 (cross-axis contact AO during yaw). Both PRs re-blessed the same rows on macOS and left the windows-debug set owed. The earlier regression from 1fe4e7c was fixed by #4936 (84d6f7b): Windows passes 100% at that commit. Refs the eight rows that failed at master 18a91f6; all 59 checks pass on two consecutive runs after the bless. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Summary
Screenshots
Yaw 45 lit — the rebased parent loses the left cube and the contact crease; the amended path restores both through bounded cross-axis lookup.
AO overlay and cardinal identity
Yaw 45 AO overlay
Yaw-0 lit and AO-overlay pairs are retained in the same media commit and compare byte-for-byte (
match_pct=100,max_delta=0,PSNR=inf).Test plan
fleet-build --target IRShapeDebug; native Metal shader compilation and clean hidden-window runtimefleet-build --target header-checksandfleet-build --target format-changedpython3 scripts/shader_parity_audit.py(157 GLSL / 146 Metal; five allowlisted asymmetries)python3 scripts/light-verify.py --no-build(46/46 after reviewing and refreshing six intended rotating-AO references)python3 scripts/render-verify.py --target IRCanvasStress(59/59 after reviewing and refreshing three intended rotating-AO references)python3 scripts/fleet/tests/test_validation_index.py(5/5)python3 scripts/perf/test_repeat_profile.py(69/69) andpython3 scripts/fleet/tests/test_fleet_codex.py(36/36)bash scripts/tests/run_all.sh: 133/134 suites; the sole failure is the unchanged Codex-localtest_render_verify_demo_args.py, whose fake subprocess observes the repository quiet-window Python wrapper as an extra command. Its individual rerun reproduces 6/9 failures; every changed render/shader contract suite passes.Acceptance evidence
occluded_px=572, darkness0.0941;IR_CROSS_AXIS_CONTACT_AO_DISABLE=1givesoccluded_px=0, darkness0; exactly four additional existing-texture reads per active rotating AO cell43776/42624/40128/36720/39520/40928; occluded pixels4096/4288/4036/572/612/576; yaw-0 lit and AO images are byte-identical to rebased parentfleet:needs-windows-smokedebt11.3600→11.3700 ms(1.001x), GPU envelope10.2692→10.2584 ms(0.999x),computeVoxelAoPerAxis0.0316→0.0464 ms(+0.0148 ms),lightingOverflow0.1160→0.1214 ms(+0.0054 ms); all row-specific rule-3 grades passRaw performance inputs, artifact identities, paired calculations, limits, and reproduction commands are committed under
docs/perf/cross-axis-contact-ao/metal/.Plan departures and costs
docs/agents/VALIDATION-RENDER.md; the index needs no duplicate row and its validator passes.requested-1) while sweeps still require the exact pose count.repeat_profile.py --build-diravoids shell environment prefixes and records the explicit tree.Operational note
The required policy refresh command
scripts/fleet/fleet-codex --role worker --checkwas blocked once with[Errno 1] Operation not permitted: '/Users/evinjkill/src/IrredenEngine/.claude/worktrees/pool-2/.codex/rules/fleet.rules'. It was not retried. The equivalent already-authorizedrepeat_profile.py --build-dirpath produced the committed evidence, and the policy generator's unit suite passes.Refs #5015