warm: make pipelines with the static samplers' places a run uses #170

Open
mahhnameisjeff wants to merge 1 commit from upstream-pr/170 into amd
mahhnameisjeff commented 2026-12-03 14:28:16 +00:00 (Migrated from github.com)

Imported from eikkapine/jaxe. Originally posted by mahhnameisjeff on 2026-12-03T14:28:16Z.


Base: origin/amd (0902398). Independent of the other PRs from this batch.

The driver gives each static sampler a place when a root signature is
created, in order of first sight, and the place is baked into compiled
pipelines. A run reads static-samplers.txt to keep the order;
jaxe warm did not (the list is only read when the library folder is
set), so warmed pipelines did not match what the run asks for and the
driver compiled them again during play.

sampler_order::read_list_from lets known::make read the list from the
cache folder read-only (warm never writes it). After a fresh warm with
this, runs report made=0 pipelines compiled during play in the pipeline
library line.

Related: #141 (shaders still compiled during gameplay after Warm Shaders).

🤖 Generated with Claude Code

<!-- greyfinch-sync:eikkapine/jaxe:issue:5628456158 --> Imported from [eikkapine/jaxe](https://github.com/eikkapine/jaxe/pull/170). Originally posted by [mahhnameisjeff](https://github.com/mahhnameisjeff) on 2026-12-03T14:28:16Z. --- Base: origin/amd (0902398). Independent of the other PRs from this batch. The driver gives each static sampler a place when a root signature is created, in order of first sight, and the place is baked into compiled pipelines. A run reads `static-samplers.txt` to keep the order; `jaxe warm` did not (the list is only read when the library folder is set), so warmed pipelines did not match what the run asks for and the driver compiled them again during play. `sampler_order::read_list_from` lets `known::make` read the list from the cache folder read-only (warm never writes it). After a fresh warm with this, runs report `made=0` pipelines compiled during play in the pipeline library line. Related: #141 (shaders still compiled during gameplay after Warm Shaders). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/170:upstream-pr/170'
git switch 'upstream-pr/170'

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 'amd'
git merge --no-ff 'upstream-pr/170'
git switch 'upstream-pr/170'
git rebase 'amd'
git switch 'amd'
git merge --ff-only 'upstream-pr/170'
git switch 'upstream-pr/170'
git rebase 'amd'
git switch 'amd'
git merge --no-ff 'upstream-pr/170'
git switch 'amd'
git merge --squash 'upstream-pr/170'
git switch 'amd'
git merge --ff-only 'upstream-pr/170'
git switch 'amd'
git merge 'upstream-pr/170'
git push origin 'amd'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
eikkapine/jaxe!170
No description provided.