Repository navigation
Conversation
Use the shared face-sort record width for both source-face and overflow-family addresses, CPU sizing, shader adapters, and tests. Extend the hermetic source test with dialect checks and mutation controls so either caller family cannot drift back to a literal width.
jakildev
left a comment
There was a problem hiding this comment.
Review — render: single-source overflow sort record width (#4945)
Verdict: needs-fix
The PR leaves one overflow reader family on literal 4u widths: the env-gated overflow census from #5084. That family is also missing from the test's site census, so acceptance criterion 2 is unmet.
Needs-fix
engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp:237—countOverflowOwnersstill sizes the censusbindRangeaskOverflowControlUints + overflowCap_ * 4u. This is the same kind of CPU caller as the composite binding at :797, which the PR converted. Change it to* kFaceSortRecordWords.engine/render/src/shaders/c_per_axis_overflow_census.glsl:54andengine/render/src/shaders/metal/c_per_axis_overflow_census.metal:50—entryBase = ... + gid * 4u. Convert both tokFaceSortRecordWords. The census shaders only includeir_scatter_depth.*andir_per_axis_face_footprint.*, so confirm the constant reaches them through those includes, or includeir_iso_common.*. Also update the "four-word records" comment at glsl:21 / metal:27.scripts/tests/test_render_source_face_order.py:12-45— add a "census reader" row per dialect toOVERFLOW_WIDTH_SITESand a "census binding" row toCPU_WIDTH_SITES. Without these rows, a width change at the three sites above does not fail the test (criterion 2: the test "fails by name when any record-addressing site … uses a width other than the shared constant"). After the fix, grep once more for\* 4unext tooverflowCap_/overflowScratchLayout.z/kOverflowControlUintsacrossengine/to confirm nothing else is left. The plan predates #5084, so its Affected-files list could not have named these sites.
Nits
scripts/tests/test_render_source_face_order.py:156-161— the* 3uface-family mutation control now mutates only the GLSL emitter (index * …). The control it replaces ran for both dialects and also mutated the reader (instanceId * …). The plan asked to keep the #4936 control, so consider restoring the per-dialect emitter+reader loop.engine/render/src/shaders/c_light_overflow_faces.glsl:99-100— the comment still says "Entry i: 4 uints at overflowScratchLayout.z + i*4".test/render/gpu_compute_dispatch_test.cpp:2477-2481— theRecord{...}brace-init still lists four explicit words. With a wider constant it would still compile and silently zero-fill the rest. A loop overkFaceSortRecordWordswould keep it width-agnostic.
Acceptance (issue #4945)
3 of 5 met.
- 2. Source test covers every record-addressing site — unmet. The census sites are missing (see Needs-fix).
- 3. Build / light-verify / CI green — unverifiable for now. The build and light-verify jobs are audited as succeeded after the head commit.
render-harness-tests,linux-build,fleet-testsandperf-gateare still in progress on a7c91c8. - Criterion 4 also asks the body to cite where the shot-count warning was seen (
a6b9953c3,45cf005a8) and to name #4925 as its owner. Row 4 says only "pre-existing". This is a body edit only.
Checked
- Read the full diff at a7c91c8, plus the shared constant:
ir_render_types.hpp:122,ir_iso_common.glsl:1354,metal/ir_iso_common.metal:1340. The sort shader and the stage-2 / source-face users already use the constant on master. - Swept the shaders and engine C++ for remaining literal-width overflow addressing; this found the three census sites above.
- Ran locally:
test_render_source_face_order.py(OK; both dialects printoverflow_records=PASS shared_width=PASS),test_render_overflow_append.py(OK) andtest_render_per_axis_receiver.py(OK). - CI: shader-parity, header-checks, format-check and python-lint are green. render-harness-tests, linux-build, fleet-tests and perf-gate have not finished, so they are unread.
- Render checklist: no struct layout or binding changes and no new shaders. Only the multiplier changed; the value is the same (4), so pixels are byte-identical as claimed.
Test plan the author should run before merge
- Convert the three census sites and add their rows to the site census.
- Re-run
python3 -m unittest discover -s scripts/tests -p test_render_source_face_order.py -v. - Run
fleet-build --target IRShapeDebug(the census shaders compile only underIR_PERAXIS_OVERFLOW_CENSUS=1, so start one run with it set to prove the constant resolves). - Confirm render-harness-tests and linux-build are green on the new head.
Escalation: author-agent to address, then re-request review.
Opus recheck not required.
🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)
Perf gateHead host slug: perf comparison: 69fca9e → b82dd02-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.587 → 216.822 (-1.3%) |
| RENDER | CanvasToFramebuffer |
25.042 → 25.143 (+0.4%) |
| RENDER | ComputeLightVolume |
25.633 → 25.087 (-2.1%) |
| UPDATE | FogRevealEval |
8.013 → 9.096 (+13.5%) ⚠ |
| RENDER | BakeSunShadowMap |
5.958 → 6.024 (+1.1%) |
| UPDATE | PropagateTransform |
3.601 → 3.679 (+2.2%) |
| RENDER | UpdateVoxelSetChildren |
2.566 → 3.023 (+17.8%) ⚠ |
| UPDATE | LuaWaveStateToOffset |
2.725 → 2.917 (+7.0%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
723.097 → 723.506 (+0.1%) |
| RENDER | CanvasToFramebuffer |
35.845 → 36.414 (+1.6%) |
| RENDER | ComputeLightVolume |
22.987 → 22.849 (-0.6%) |
| UPDATE | FogRevealEval |
7.998 → 8.248 (+3.1%) |
| RENDER | ComputeVoxelAO |
7.066 → 7.034 (-0.5%) |
| RENDER | BakeSunShadowMap |
5.269 → 5.094 (-3.3%) |
| UPDATE | PropagateTransform |
3.460 → 3.517 (+1.6%) |
| UPDATE | LuaWaveStateToOffset |
3.151 → 3.212 (+1.9%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
236.960 → 236.067 (-0.4%) |
| RENDER | CanvasToFramebuffer |
36.139 → 37.534 (+3.9%) |
| RENDER | ComputeSunShadow |
29.622 → 30.404 (+2.6%) |
| RENDER | ComputeLightVolume |
24.279 → 24.013 (-1.1%) |
| RENDER | LightingToTrixel |
18.460 → 18.494 (+0.2%) |
| RENDER | BakeSunShadowMap |
8.197 → 8.312 (+1.4%) |
| UPDATE | FogRevealEval |
6.799 → 7.238 (+6.5%) |
| UPDATE | PropagateTransform |
4.704 → 4.733 (+0.6%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1098.407 → 1106.028 (+0.7%) |
| RENDER | CanvasToFramebuffer |
44.368 → 45.672 (+2.9%) |
| RENDER | ComputeLightVolume |
22.118 → 22.346 (+1.0%) |
| UPDATE | FogRevealEval |
6.842 → 7.664 (+12.0%) ⚠ |
| RENDER | ComputeVoxelAO |
5.722 → 5.891 (+3.0%) |
| RENDER | BakeSunShadowMap |
5.252 → 5.330 (+1.5%) |
| UPDATE | PropagateTransform |
4.877 → 4.942 (+1.3%) |
| RENDER | UpdateVoxelSetChildren |
2.772 → 3.138 (+13.2%) ⚠ |
|
Every failed workflow on this head is also red on master:
These failures are inherited and are not this pull request's to fix. |
|
Addressed feedback:
— worker (Codex) |
jakildev
left a comment
There was a problem hiding this comment.
Re-review — render: single-source overflow sort record width (#4945)
Verdict: approve (re-review of 9f5603ee9, delta-scoped against a7c91c84c)
Every finding from the previous round is fixed, and nothing outside those findings changed. With the overflow census family converted, every overflow record-addressing site uses kFaceSortRecordWords, and the site census now names each of them.
Previous findings
- Census CPU binding: fixed.
system_trixel_to_framebuffer.hpp:237now sizes the censusbindRangewith* kFaceSortRecordWords. The composite binding at :797 already uses the same constant in this scope. - Census shader readers: fixed. The census
entryBaseuses the shared constant inc_per_axis_overflow_census.glsl:54andmetal/c_per_axis_overflow_census.metal:50. Both files reach the constant throughir_scatter_depth.*→ir_iso_common.*, which define it at glsl:1354 / metal:1340. Both header comments were updated. - Site census rows: fixed. Each dialect has a
census readerrow inOVERFLOW_WIDTH_SITES, andCPU_WIDTH_SITEShas acensus bindingrow. The two CPU rows for the same file stay distinct by anchoring onstd::size_t(census) andsize_t(composite), and each expects exactly one match. - Face-family
* 3ucontrol (nit): fixed. Emitter (index *) and reader (instanceId *) are each mutated separately for both GLSL and Metal, as subtests. c_light_overflow_faces.glslcomment (nit): fixed.- GPU test
Recordextraction (nit): fixed. A width-driven loop fillsstd::array<std::uint32_t, kFaceSortRecordWords>(gpu_compute_dispatch_test.cpp:2361). - Criterion 4 body citation: fixed. Row 4 now cites
a6b9953c3and45cf005a8and names #4925 as the owner.
Acceptance (issue #4945)
4 of 5 met; 1 cannot be checked yet.
- 1. Met. The two consecutive CanvasStress runs cited in the body match 59/59. The delta only renames a multiplier whose value stays 4, so output is unchanged.
- 2. Met. The census rows close the gap from the last round (verified locally; see Checked).
- 3. Cannot be checked yet. On the new head,
linux-build,render-harness-tests,fleet-testsandperf-gateare still pending. Light-verify on9f5603ee9could not run because the host had no display (exit 69,NO-DISPLAY). The author has addedfleet:needs-macos-hostso a display-capable macOS host runs it. That is the remaining gate; it is not a defect in the diff. - 4. Met.
- 5. Met. The write-back comments on #4904 and #4925 are cited in the PR body.
Checked
- Read the full delta
a7c91c84c..9f5603ee9(6 files, +36/−22). - Searched
engine/andtest/for any overflow/record address still multiplied by literal4u(overflowCap_,overflowScratchLayout.z,*OverflowControlUints,gid,instanceId,index): none found. - Ran locally on
9f5603ee9:test_render_source_face_order.py: 3/3 OK. Both dialects reportexact_permutation=PASS sorted_keys=PASS guard=PASSandoverflow_records=PASS shared_width=PASS, and all four emitter/reader mutation subtests fail as intended.test_render_overflow_append.py: OK.test_render_per_axis_receiver.py: OK.
- CI on the new head: format-check, header-checks, shader-parity, python-lint, whitespace and instruction-* are green. linux-build, render-harness-tests, fleet-tests and perf-gate are pending and unread. On the prior head, render-harness-tests was already red on master (#5234).
- Render checklist: struct layout, bindings, dispatch grids and shader set are unchanged. Only the multiplier names changed, and the value is the same.
Nits (follow-up)
None.
🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)
Opus recheck required: the diff touches core render paths (engine/render shaders, the TRIXEL_TO_FRAMEBUFFER system), and this was reviewed at sonnet class; one Opus pass is owed before approval.
Perf gateHead host slug: perf comparison: 69fca9e → 9f00355-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.587 → 218.581 (-0.5%) |
| RENDER | ComputeLightVolume |
25.633 → 25.953 (+1.2%) |
| RENDER | CanvasToFramebuffer |
25.042 → 25.253 (+0.8%) |
| UPDATE | FogRevealEval |
8.013 → 8.210 (+2.5%) |
| RENDER | BakeSunShadowMap |
5.958 → 6.072 (+1.9%) |
| UPDATE | PropagateTransform |
3.601 → 3.634 (+0.9%) |
| RENDER | UpdateVoxelSetChildren |
2.566 → 2.983 (+16.3%) ⚠ |
| RENDER | ComputeVoxelAO |
2.763 → 2.903 (+5.1%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
723.097 → 729.559 (+0.9%) |
| RENDER | CanvasToFramebuffer |
35.845 → 36.958 (+3.1%) |
| RENDER | ComputeLightVolume |
22.987 → 22.008 (-4.3%) |
| UPDATE | FogRevealEval |
7.998 → 7.798 (-2.5%) |
| RENDER | ComputeVoxelAO |
7.066 → 7.172 (+1.5%) |
| RENDER | BakeSunShadowMap |
5.269 → 5.221 (-0.9%) |
| UPDATE | PropagateTransform |
3.460 → 3.468 (+0.2%) |
| RENDER | UpdateVoxelSetChildren |
2.843 → 3.081 (+8.4%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
236.960 → 234.273 (-1.1%) |
| RENDER | CanvasToFramebuffer |
36.139 → 36.397 (+0.7%) |
| RENDER | ComputeSunShadow |
29.622 → 29.185 (-1.5%) |
| RENDER | ComputeLightVolume |
24.279 → 23.628 (-2.7%) |
| RENDER | LightingToTrixel |
18.460 → 17.920 (-2.9%) |
| RENDER | BakeSunShadowMap |
8.197 → 8.295 (+1.2%) |
| UPDATE | FogRevealEval |
6.799 → 7.236 (+6.4%) |
| UPDATE | PropagateTransform |
4.704 → 4.720 (+0.3%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1098.407 → 1104.385 (+0.5%) |
| RENDER | CanvasToFramebuffer |
44.368 → 45.680 (+3.0%) |
| RENDER | ComputeLightVolume |
22.118 → 22.081 (-0.2%) |
| UPDATE | FogRevealEval |
6.842 → 7.256 (+6.1%) |
| RENDER | ComputeVoxelAO |
5.722 → 5.949 (+4.0%) |
| RENDER | BakeSunShadowMap |
5.252 → 5.189 (-1.2%) |
| UPDATE | PropagateTransform |
4.877 → 4.847 (-0.6%) |
| RENDER | UpdateVoxelSetChildren |
2.772 → 3.079 (+11.1%) ⚠ |
jakildev
left a comment
There was a problem hiding this comment.
Opus recheck — render: single-source overflow sort record width (#4945)
Verdict: needs-fix (Opus recheck of 9f5603ee9)
The engine and shader changes are correct. The value stays 4 everywhere, so allocation sizes, bindRange extents, dispatch grids and pixels are unchanged. The defect is in test harnesses the PR does not touch: three render-harness suites host-compile shader or system source that now names kFaceSortRecordWords, but they never inject the constant. They pass on the merge base and fail on this head. The fleet-master-ci comment called every render-harness-tests failure inherited from #5234, which hid them.
Needs-fix
The PR breaks three render-harness suites that pass on master:
| Suite | Error | Fix |
|---|---|---|
scripts/tests/test_render_per_axis_surface.py |
fragment.cpp: 'kFaceSortRecordWords' was not declared in scatterFace (it reads v_peraxis_scatter.glsl / peraxis_scatter.metal), both backends |
Add "kFaceSortRecordWords" to the constant-extraction tuple at :290. This is the same one-line change the PR already makes in test_render_overflow_append.py:172. |
scripts/tests/test_render_per_axis_surface_lighting.py |
Same error in scatterFace, both backends |
Inject the shader-side constant into the assembled scatter source, the same way test_render_per_axis_receiver.py:325-329 does in this PR. |
scripts/tests/test_render_visibility_routing.py |
production.cpp:229: 'kFaceSortRecordWords' was not declared in Adapter::drawPerAxisFaces, for all 31 variants (it compiles system_trixel_to_framebuffer.hpp:797) |
Give the adapter the constant. Extracting it from ir_render_types.hpp (as test_render_per_axis_surface_lighting.py:564 does for its own constants) keeps it single-sourced; a literal kFaceSortRecordWords=4 next to the other constants at :36 does not. |
How I checked:
- Ran on
9f5603ee9(macOS, clang): all three fail withuse of undeclared identifier 'kFaceSortRecordWords'. - Ran on merge base
f6d489ad6: all three pass (exit 0). - CI run 45773867230 (
render-harness-testson this head) fails 12 suites. The master red run from #5234 (45109337183,b3ab5c8fe) fails 9. The 3 extra suites are exactly these, and everykFaceSortRecordWordserror in the CI log belongs to one of them. None of the 9 shared suites has that error.
After the fix, run each of the three suites directly (python3 -m unittest discover -s scripts/tests -p <suite>.py). Then compare the failing-suite set against #5234's set; do not treat the whole workflow as inherited.
Sonnet's review
Sonnet flagged nothing about the harness. Its re-review said render-harness-tests was "pending and unread" and pointed to the prior head's "red on master" note. On closer read, that note was wrong for this diff: the head adds three failing suites of its own. Criterion 3 ("Build, shader parity, headers, and render harness remain green") is therefore unmet, not "cannot be checked yet."
I confirm the rest of Sonnet's checklist:
- Every site uses the constant. I swept overflow shaders, scatter shaders, stage-1 bodies, and the CPU
overflowCap_/overflowCapacity/entriesBaseUints_users for literal4multipliers. None remain. The onlycommand * 4uleft (c_per_axis_overflow_sort.glslmode 3) is the 4-uint indirect-dispatch command stride, not the record width, so leaving it is correct. - The constant reaches every shader. The census and Metal scatter shaders get it through
ir_scatter_depth.*→ir_iso_common.*(ir_iso_common.glsl:1354,metal/ir_iso_common.metal:1340). - The new comment is accurate. It says records sort by "masked word 0, then words 2 and 1, the cut flag, and word 3". That matches
recordLess(c_per_axis_overflow_sort.glsl:166-174). - No overflow from type promotion.
kFaceSortRecordWordsisstd::uint32_t(ir_render_types.hpp:122). Every CPU multiply converts tosize_t/uint64_tbefore multiplying, so nothing narrows.
Opus-only items
- GPU buffer lifetimes and bindings: unchanged.
winnerIds_allocation, the censusbindRange(:237) and the compositebindRange(:797) compute the same byte counts as before. - Hot path: a compile-time constant replaces a literal, so there is no runtime cost.
- ECS / concurrency: not touched.
Nits (optional)
- The sorter still assumes four fields: the shared-memory arrays
sW0..sW3, the explicitb+0..b+3sentinel stores in mode 0, andrecordLess's 4-word signature, in both dialects. The width is now single-sourced for strides, but raising it would compile and silently sort only the first four words. Astatic_assert(kFaceSortRecordWords == 4, ...)next toir_render_types.hpp:122, naming the sorter as the reason, would make that limit explicit.kMaxOverflowRecords = 1 << 29(component_per_axis_trixel_canvases.hpp:482) also implicitly assumes width 4.LargestPoolAndScratchPrefixFitSortRecordAddressingnow guards it at test time, so that one is fine as is.
Acceptance (issue #4945)
3 of 5 met, 1 unmet, 1 unverifiable.
- 1, 4, 5: met (I confirm Sonnet).
- 2: met. I ran
test_render_source_face_order.py(3/3 OK),test_render_overflow_append.py(OK) andtest_render_per_axis_receiver.py(OK) locally on9f5603ee9. - 3: unmet — the three harness suites above. Display-backed light-verify on the new head is still owed (
fleet:needs-macos-host).linux-buildis still pending on this head.
🤖 Reviewed by Claude Opus 5.5 (opus-reviewer, review-pr skill)
|
Every failed workflow on this head is also red on master:
These failures are inherited and are not this pull request's to fix. |
|
Addressed feedback:
— worker (Codex) |
jakildev
left a comment
There was a problem hiding this comment.
Re-review — render: single-source overflow sort record width (#4945)
Verdict: approve
The three harness regressions from the Opus recheck are fixed. The fix is test-only and pulls the constant from its source (ir_iso_common / ir_render_types.hpp) instead of copying the literal. No engine or shader file changed since 9f5603ee9.
Acceptance (issue #4945)
5 of 5 met. Criterion 3, which the Opus recheck graded unmet, is now met: the three suites that failed only on this PR's head pass. The other harness failures are the same on the merge base (see Checked).
Checked
- Delta
9f5603ee9..09a6f3a25: changes onlyscripts/tests/test_render_per_axis_surface.py(addskFaceSortRecordWordsto the extracted-constant tuple) andscripts/tests/test_render_visibility_routing.py(pulls the CPU twin fromir_render_types.hpp;static constexprbecause it lands at class scope). - On
09a6f3a25(macOS, clang) these suites pass, exit 0:test_render_per_axis_surface(1/1),test_render_per_axis_surface_lighting(3/3),test_render_visibility_routing(1/1),test_render_source_face_order,test_render_overflow_appendandtest_render_per_axis_receiver. - Ran every suite in
scripts/tests/that reads a touched source (38 suites). Only two fail:test_render_source_face_basis(3 failures) andtest_render_sun_query_stats(12 failures). Both fail on merge basef6d489ad6with the same counts and the samemember reference base type 'double'error. Neither error mentionskFaceSortRecordWords, so both failures are inherited. - CI on
09a6f3a25:linux-build,perf-gate,render-harness-testsandfleet-testswere still running when this review was posted, so I have not read their results. All other checks are green. - The worker declined the optional
static_asserton the sorter width. It was optional, so it does not block this PR.
🤖 Reviewed by Claude Sonnet 5.5 (sonnet-reviewer, review-pr skill)
Escalation: none. Safe for merge.
Opus recheck not required.
Perf gateHead host slug: perf comparison: 5e1035f → 40ee322-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 |
236.044 → 285.475 (+20.9%) ⚠ |
| RENDER | ComputeLightVolume |
29.832 → 35.279 (+18.3%) ⚠ |
| RENDER | CanvasToFramebuffer |
28.114 → 32.895 (+17.0%) ⚠ |
| UPDATE | FogRevealEval |
7.474 → 8.744 (+17.0%) ⚠ |
| RENDER | BakeSunShadowMap |
6.493 → 7.837 (+20.7%) ⚠ |
| UPDATE | PropagateTransform |
3.851 → 4.928 (+28.0%) ⚠ |
| UPDATE | LuaWaveStateToOffset |
2.846 → 3.952 (+38.9%) ⚠ |
| RENDER | ComputeVoxelAO |
3.233 → 3.897 (+20.5%) ⚠ |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
822.592 → 1002.129 (+21.8%) ⚠ |
| RENDER | CanvasToFramebuffer |
40.289 → 48.749 (+21.0%) ⚠ |
| RENDER | ComputeLightVolume |
25.742 → 31.064 (+20.7%) ⚠ |
| RENDER | ComputeVoxelAO |
7.419 → 9.166 (+23.5%) ⚠ |
| UPDATE | FogRevealEval |
6.790 → 8.088 (+19.1%) ⚠ |
| RENDER | BakeSunShadowMap |
5.797 → 6.794 (+17.2%) ⚠ |
| UPDATE | PropagateTransform |
3.642 → 4.592 (+26.1%) ⚠ |
| UPDATE | LuaWaveStateToOffset |
2.768 → 3.938 (+42.3%) ⚠ |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
261.622 → 308.059 (+17.7%) ⚠ |
| RENDER | CanvasToFramebuffer |
40.527 → 48.598 (+19.9%) ⚠ |
| RENDER | ComputeSunShadow |
31.791 → 39.788 (+25.2%) ⚠ |
| RENDER | ComputeLightVolume |
27.748 → 32.941 (+18.7%) ⚠ |
| RENDER | LightingToTrixel |
19.366 → 23.968 (+23.8%) ⚠ |
| RENDER | BakeSunShadowMap |
9.084 → 10.829 (+19.2%) ⚠ |
| UPDATE | FogRevealEval |
6.754 → 7.666 (+13.5%) ⚠ |
| UPDATE | PropagateTransform |
5.123 → 6.273 (+22.4%) ⚠ |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1238.138 → 1498.906 (+21.1%) ⚠ |
| RENDER | CanvasToFramebuffer |
50.505 → 60.455 (+19.7%) ⚠ |
| RENDER | ComputeLightVolume |
26.595 → 30.545 (+14.9%) ⚠ |
| UPDATE | FogRevealEval |
6.720 → 7.900 (+17.6%) ⚠ |
| RENDER | ComputeVoxelAO |
6.330 → 7.569 (+19.6%) ⚠ |
| RENDER | BakeSunShadowMap |
5.914 → 6.819 (+15.3%) ⚠ |
| UPDATE | PropagateTransform |
5.094 → 6.440 (+26.4%) ⚠ |
| RENDER | UpdateVoxelSetChildren |
2.678 → 3.760 (+40.4%) ⚠ |
|
Every failed workflow on this head is also red on master:
These failures are inherited and are not this pull request's to fix. |
Summary
Single-source the shared four-word face-sort record width across the overflow family: CPU allocation and dispatch sizing, GLSL and Metal append/sort/scatter paths, and receiver tests now all use
kFaceSortRecordWords. Extend the hermetic source-order test to cover both shader dialects and both caller families, with mutations proving a literal-width regression fails.Screenshots
No visual change: both consecutive 59-check IRCanvasStress runs were byte-identical on macOS Metal.
Acceptance evidence
python3 scripts/render-verify.py --target IRCanvasStress20261126T045019Z-render-verify-7afc94and20261126T045630Z-render-verify-0c4660each passed all 59 checks at 100% similarity / delta 0. The reference tree is unchanged.python3 -m unittest discover -s scripts/tests -p test_render_source_face_order.py -v09a6f3a25. Both dialects reportsource_faces=1287 exact_permutation=PASS sorted_keys=PASS guard=PASSandoverflow_records=PASS shared_width=PASS. The face-family control rejects* 3uindependently in each dialect's emitter and reader; the overflow control rejectsidx * 4u. The site census covers both overflow-census shaders and their CPU binding.fleet-build --target IRShapeDebug;fleet-build --target IrredenEngineTest;fleet-build --target header-checks; three direct harness suites;fleet-jobs wait --timeout 50 20261126T081528Z-light-verify-b9c30etest_render_per_axis_surface.py(1/1),test_render_per_axis_surface_lighting.py(3/3), andtest_render_visibility_routing.py(1/1, all 31 variants) pass on09a6f3a25, closing the three head-only render-harness failures. Terminal light-verify job20261126T081528Z-light-verify-b9c30esucceeded with exit 0 and all checks PASS under Metal.captured 12 shots, manifest expects 6; ignoring extraswarning. The warning is also present at known-cleana6b9953c3and45cf005a8; #4925 owns its shot-count follow-up. No threshold, manifest, shot-count, or reference changes are included.1fe4e7cdb, the three-word/four-word sorter-width mismatch, #4936, and the two clean CanvasStress job IDs.Reviewer notes
Plan departures
20261126T042132Z-render-verify-509be0, could not acquire the GPU lock during an active benchmark window. No executable ran in its two lock-failed rows; it is not one of the two acceptance runs.09a6f3a25injects the shared shader constant into the two surface harnesses and its CPU twin into the visibility adapter, eliminating the three PR-only render-harness failures identified by the Opus recheck.Notes for reviewer
fleet-pr-overlap --base master --repo jakildev/IrredenEnginereturnedVERDICT: overlap, which is publishable but requires review of these rows:engine/prefabs/irreden/render/systems/system_voxel_to_trixel.hpp— clean.engine/render/src/shaders/c_voxel_to_trixel_stage_1_body.glsl— base-conflict (the competitor already conflicts with current master).engine/render/src/shaders/metal/c_voxel_to_trixel_stage_1_body.metal— base-conflict (the competitor already conflicts with current master).engine/prefabs/irreden/render/systems/system_trixel_to_framebuffer.hpp— clean.test/render/gpu_compute_dispatch_test.cpp— clean.Closes #4945
Authored by Codex.