loose-pipelines.md: the switch is DARNER_LOOSE_PIPELINES, the function is darner_shader::loose_compute #358

Open
qnjk wants to merge 1 commit from qnjk/Darner:agent/loose-pipelines-switch-20261204-2015 into Main
Contributor

Contributor role (optional)

  • Fluxer ID: none

What it changes

docs/loose-pipelines.md names two things that no longer exist in the tree:

  • the switch that turns on building the 0x218 compute pipeline from its loose parts is DARNER_LOOSE_PIPELINES (crates/darner-gpu/src/device.rs:722-723), not DARNER_LOOSE_COMPUTE — no Rust reads that name, and README.md:969 already says nothing reads it;
  • the function that packs the five parts into a container is darner_shader::loose_compute (crates/darner-shader/src/native.rs:652, re-exported at crates/darner-shader/src/lib.rs:28, called at crates/darner-gpu/src/device.rs:753), not create_loose_compute — there is no such symbol.

A reader who follows the document and sets DARNER_LOOSE_COMPUTE=1 gets nothing, and the A/B numbers below that paragraph were measured with a switch the loader ignores (the real one).

How it was tested

  • Tested revision: f3840d73d3504c30218debfbc8795b9225447317 plus this patch.
  • Commands and results:
    • git grep -n DARNER_LOOSE_COMPUTE → README.md:969 only, whose own text says "nothing reads this setting".
    • git grep -n DARNER_LOOSE_PIPELINES → crates/darner-gpu/src/device.rs:690 (doc comment) and :723 (the std::env::var that builds MAKE).
    • git grep -n loose_compute → crates/darner-shader/src/native.rs:652 (pub fn loose_compute), crates/darner-shader/src/lib.rs:28 (re-export), crates/darner-gpu/src/device.rs:753 (call site uses the darner_shader::loose_compute path already).
    • The repo's asset-policy rules (xtask/src/policy.rs: allowlist, 1 MiB, binary magic, hex/base64 runs) re-run over the staged diff with a PowerShell port for this host: 1 file, no violations. cargo xtask policy --staged itself was not run here (no Rust toolchain on this machine).
  • Changes a default: no.
  • A/B result: not applicable; no behaviour change.
  • Gates run: none — the diff is Markdown only, with no crate, test or behaviour change. cargo clippy/cargo test were not run.
  • Gameplay: not tested; docs only.
  • Shader wave sizes tested: not applicable.
  • Hardware dependence: none.
  • Coverage gaps: the doc's A/B numbers were not re-measured; this change only corrects the names they are attributed to.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
    • Docs only: no game run, and none is needed.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found. Open follow-ups that mention pipelines (#352, #348, #315, #286) were checked by file list and none touches docs/loose-pipelines.md; no open or closed issue mentions DARNER_LOOSE_COMPUTE.
  • Replaces or overlaps: none found
<!-- Prepared by an automated assistant working from qnjk's account; every command and line number below was checked against f3840d7. --> ## Contributor role (optional) - Fluxer ID: none ## What it changes `docs/loose-pipelines.md` names two things that no longer exist in the tree: - the switch that turns on building the 0x218 compute pipeline from its loose parts is `DARNER_LOOSE_PIPELINES` (`crates/darner-gpu/src/device.rs:722-723`), not `DARNER_LOOSE_COMPUTE` — no Rust reads that name, and `README.md:969` already says nothing reads it; - the function that packs the five parts into a container is `darner_shader::loose_compute` (`crates/darner-shader/src/native.rs:652`, re-exported at `crates/darner-shader/src/lib.rs:28`, called at `crates/darner-gpu/src/device.rs:753`), not `create_loose_compute` — there is no such symbol. A reader who follows the document and sets `DARNER_LOOSE_COMPUTE=1` gets nothing, and the A/B numbers below that paragraph were measured with a switch the loader ignores (the real one). ## How it was tested - Tested revision: `f3840d73d3504c30218debfbc8795b9225447317` plus this patch. - Commands and results: - `git grep -n DARNER_LOOSE_COMPUTE` → `README.md:969` only, whose own text says "nothing reads this setting". - `git grep -n DARNER_LOOSE_PIPELINES` → `crates/darner-gpu/src/device.rs:690` (doc comment) and `:723` (the `std::env::var` that builds `MAKE`). - `git grep -n loose_compute` → `crates/darner-shader/src/native.rs:652` (`pub fn loose_compute`), `crates/darner-shader/src/lib.rs:28` (re-export), `crates/darner-gpu/src/device.rs:753` (call site uses the `darner_shader::loose_compute` path already). - The repo's asset-policy rules (`xtask/src/policy.rs`: allowlist, 1 MiB, binary magic, hex/base64 runs) re-run over the staged diff with a PowerShell port for this host: 1 file, no violations. `cargo xtask policy --staged` itself was not run here (no Rust toolchain on this machine). - Changes a default: no. - A/B result: not applicable; no behaviour change. - Gates run: none — the diff is Markdown only, with no crate, test or behaviour change. `cargo clippy`/`cargo test` were not run. - Gameplay: not tested; docs only. - Shader wave sizes tested: not applicable. - Hardware dependence: none. - Coverage gaps: the doc's A/B numbers were not re-measured; this change only corrects the names they are attributed to. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - Docs only: no game run, and none is needed. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found. Open follow-ups that mention pipelines (`#352`, `#348`, `#315`, `#286`) were checked by file list and none touches `docs/loose-pipelines.md`; no open or closed issue mentions `DARNER_LOOSE_COMPUTE`. - Replaces or overlaps: none found
The page told readers to set DARNER_LOOSE_COMPUTE=1, a name no code reads
(README.md:969 says as much), and named create_loose_compute, a symbol that
does not exist. The gate is device.rs:723, and the packer is
darner_shader::loose_compute (native.rs:652). Nothing else changed;
Markdown only.
TrustNo1 changed title from [pr-docs][shaders] loose-pipelines.md: the switch is DARNER_LOOSE_PIPELINES, the function is darner_shader::loose_compute to loose-pipelines.md: the switch is DARNER_LOOSE_PIPELINES, the function is darner_shader::loose_compute 2026-12-06 03:30:00 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'agent/loose-pipelines-switch-20261204-2015:qnjk-agent/loose-pipelines-switch-20261204-2015'
git switch 'qnjk-agent/loose-pipelines-switch-20261204-2015'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git switch 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git switch 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git switch 'Main'
git merge --squash 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git switch 'Main'
git merge --ff-only 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git switch 'Main'
git merge 'qnjk-agent/loose-pipelines-switch-20261204-2015'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
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
TrustNo1/Darner!358
No description provided.