[PR #7345] [MERGED] port map: client2-001's post chain loader and pass exist #7511

Closed
opened 2026-11-03 06:40:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7345
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-c-client2-001


📝 Commits (2)

  • 696698b port_map: client2-001's post chain loader and pass exist
  • 258a836 port_map: the two pass rows lose the "only" in their gaps

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 tools/port_map/client2-001.tsv (+5 -5)

📄 Description

Rows of tools/port_map/client2-001.tsv (150 rows, map-check clean against 26.3): the client renderer's managers — resource loads, the post-effect chain, the GPU warnlist, screenshots.

Verdicts

row was now where
PostChain.load missing port crates/horizon-client-render/src/post_chain.rs::PostEffects::load
PostChain.createPass missing port crates/horizon-client-render/src/post_chain.rs::PostEffects::translated_pass
PostChain.getReferencedExternalTargets skip:other inline crates/horizon-client-render/src/post_chain.rs::PostEffects::load

The two missing rows said "no data-driven post chain loader; only the blur and entity outline chains exist, hard-coded". post_chain.rs is a data-driven loader, and its doc names PostChain.load:

  • PostEffects::load reads the chain's JSON by id, parses its targets and passes, and refuses any external target but the frame, with vanilla's own message ("Referenced external targets are not available in this context"). Ok(None) for a chain whose file is not there.
  • translated_pass is createPass: the pass's own GLSL goes through post_glsl::translate, its input targets are resolved against the chain's target table (and a pass that reads the target it writes is refused), its images uploaded, and its uniform blocks packed into buffers.
  • The external-target check is also the whole of getReferencedExternalTargets, which is why that row is inline in load rather than a skip.

Notes repaired

  • PostChain.addToFrame and PostChain.process keep their cites — the entity outline's silhouette pass and the menu's own two-pass blur — but their gaps read as if those were the only chains that run. The chain runner is PostEffects::apply: it loads whatever chain id the frame's request names, on first use, and runs the ones it could build, so those two rows are callers with their own passes rather than the limit.

Checked and left as gaps: the four GpuWarnlistManager rows — no driver warnlist, its patterns, its JSON or its matching exist anywhere in the tree, so Horizon never warns about a known-bad driver; and Octree.isClose, whose occlusion walk (gfx::start_occlusion) I did not trace far enough to say whether a section next to the camera is kept.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/client2-001.tsv
150 rows, no problems.

Proven: the three ports read at the cite — load's Config::parse, its external-target error and its Ok(None) on a missing file; translated_pass's post_glsl::translate, its index(id) target lookup with the write-reads-itself refusal, and pack_block; apply's first-use load per requested id and its failed set.

Not proven: that a chain beyond the two Horizon ships actually builds and runs on the GPU — I read the loader and the runner, I did not load a custom post effect; and the GpuWarnlistManager absence is a grep, not a claim that a warnlist would be useless.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7345 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-c-client2-001` --- ### 📝 Commits (2) - [`696698b`](https://github.com/horizon-rust/horizon/commit/696698bae3046d00cb5d4c370031331d03a0fd4f) port_map: client2-001's post chain loader and pass exist - [`258a836`](https://github.com/horizon-rust/horizon/commit/258a836e2da771ec77460089d5a2db99a98af245) port_map: the two pass rows lose the "only" in their gaps ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-001.tsv` (+5 -5) </details> ### 📄 Description Rows of `tools/port_map/client2-001.tsv` (150 rows, map-check clean against 26.3): the client renderer's managers — resource loads, the post-effect chain, the GPU warnlist, screenshots. **Verdicts** | row | was | now | where | | --- | --- | --- | --- | | `PostChain.load` | missing | port | `crates/horizon-client-render/src/post_chain.rs::PostEffects::load` | | `PostChain.createPass` | missing | port | `crates/horizon-client-render/src/post_chain.rs::PostEffects::translated_pass` | | `PostChain.getReferencedExternalTargets` | skip:other | inline | `crates/horizon-client-render/src/post_chain.rs::PostEffects::load` | The two `missing` rows said "no data-driven post chain loader; only the blur and entity outline chains exist, hard-coded". `post_chain.rs` is a data-driven loader, and its doc names `PostChain.load`: - `PostEffects::load` reads the chain's JSON by id, parses its targets and passes, and refuses any external target but the frame, with vanilla's own message ("Referenced external targets are not available in this context"). `Ok(None)` for a chain whose file is not there. - `translated_pass` is `createPass`: the pass's own GLSL goes through `post_glsl::translate`, its input targets are resolved against the chain's target table (and a pass that reads the target it writes is refused), its images uploaded, and its uniform blocks packed into buffers. - The external-target check is also the whole of `getReferencedExternalTargets`, which is why that row is `inline` in `load` rather than a skip. **Notes repaired** - `PostChain.addToFrame` and `PostChain.process` keep their cites — the entity outline's silhouette pass and the menu's own two-pass blur — but their gaps read as if those were the only chains that run. The chain runner is `PostEffects::apply`: it loads whatever chain id the frame's request names, on first use, and runs the ones it could build, so those two rows are callers with their own passes rather than the limit. Checked and left as gaps: the four `GpuWarnlistManager` rows — no driver warnlist, its patterns, its JSON or its matching exist anywhere in the tree, so Horizon never warns about a known-bad driver; and `Octree.isClose`, whose occlusion walk (`gfx::start_occlusion`) I did not trace far enough to say whether a section next to the camera is kept. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/client2-001.tsv 150 rows, no problems. ``` **Proven:** the three ports read at the cite — `load`'s `Config::parse`, its external-target error and its `Ok(None)` on a missing file; `translated_pass`'s `post_glsl::translate`, its `index(id)` target lookup with the write-reads-itself refusal, and `pack_block`; `apply`'s first-use `load` per requested id and its `failed` set. **Not proven:** that a chain beyond the two Horizon ships actually builds and runs on the GPU — I read the loader and the runner, I did not load a custom post effect; and the `GpuWarnlistManager` absence is a grep, not a claim that a warnlist would be useless. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:19 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7511
No description provided.