[pr-refactor][shaders][INTEL] Tell the translator and the host settings when the card is Intel's #31

Open
kisekinopureya wants to merge 1 commit from kisekinopureya/Darner:kisekinopureya/pr/intel-host into main
Contributor

Contributor role (optional)

  • Fluxer ID: 1576376229534109696

What it changes

The host's vendor is noted when the device is made (indirect::intel, emit::set_host_intel). It is
part of the host settings and the translation fingerprint, so a translation made for an Intel card is
not taken on another. Nothing changes for other cards. The Intel-only pull requests build on this:
barycentrics, light clustering, wide indirect, legacy products, replay and the rest.

Only the vendor detection: Darner already leaves the light atlas unfolded on every card.

How it was tested

  • Tested revision: edec0fd5ed (rebased onto 1a5286a7; the gates re-run there)
  • Commands and results: both clippy gates clean; the shader cache key test, menu and panel tests pass.
  • Gameplay: the base branch on an Arc A770 logged the card as Intel and applied the Intel forms.
  • Coverage gaps: not run on NVIDIA or AMD with this branch alone (the fingerprint gains one byte, so
    their caches are rebuilt once).

Checklist

  • 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: #10 (also changes crates/darner-shader/src/emit/lower.rs); #25 (also changes crates/darner-gpu/src/host.rs).

🤖 Generated with Claude Code

## Contributor role (optional) - Fluxer ID: 1576376229534109696 ## What it changes The host's vendor is noted when the device is made (`indirect::intel`, `emit::set_host_intel`). It is part of the host settings and the translation fingerprint, so a translation made for an Intel card is not taken on another. Nothing changes for other cards. The Intel-only pull requests build on this: barycentrics, light clustering, wide indirect, legacy products, replay and the rest. Only the vendor detection: Darner already leaves the light atlas unfolded on every card. ## How it was tested - Tested revision: edec0fd5ed (rebased onto `1a5286a7`; the gates re-run there) - Commands and results: both clippy gates clean; the shader cache key test, menu and panel tests pass. - Gameplay: the base branch on an Arc A770 logged the card as Intel and applied the Intel forms. - Coverage gaps: not run on NVIDIA or AMD with this branch alone (the fingerprint gains one byte, so their caches are rebuilt once). ## Checklist - [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: #10 (also changes `crates/darner-shader/src/emit/lower.rs`); #25 (also changes `crates/darner-gpu/src/host.rs`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The vendor is part of the host settings and the translation fingerprint
(lower::host_intel, set when the device is made), for the Intel-only forms
that follow.

In VIctory-NVIDIA this came with leaving the particle light atlas
unfolded on Intel cards (the folded CS_lightAtlas programs hung an Arc
A770's device in the prison cell in three runs of three). Darner already
leaves it unfolded on every card (UNFOLDED_BY_DEFAULT), so only the vendor
detection is ported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 18e8c457d1c80244e9da74b094dc70311e397428)
kisekinopureya force-pushed kisekinopureya/pr/intel-host from b2a2b7e0bc to edec0fd5ed 2026-12-03 21:13:37 +00:00 Compare
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 'kisekinopureya/pr/intel-host:kisekinopureya-kisekinopureya/pr/intel-host'
git switch 'kisekinopureya-kisekinopureya/pr/intel-host'

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 'kisekinopureya-kisekinopureya/pr/intel-host'
git switch 'kisekinopureya-kisekinopureya/pr/intel-host'
git rebase 'main'
git switch 'main'
git merge --ff-only 'kisekinopureya-kisekinopureya/pr/intel-host'
git switch 'kisekinopureya-kisekinopureya/pr/intel-host'
git rebase 'main'
git switch 'main'
git merge --no-ff 'kisekinopureya-kisekinopureya/pr/intel-host'
git switch 'main'
git merge --squash 'kisekinopureya-kisekinopureya/pr/intel-host'
git switch 'main'
git merge --ff-only 'kisekinopureya-kisekinopureya/pr/intel-host'
git switch 'main'
git merge 'kisekinopureya-kisekinopureya/pr/intel-host'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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!31
No description provided.