shader: a store through a counter view writes its one integer channel #473

Open
github-bot wants to merge 1 commit from github-bot/gh-473 into main AGit
Owner

@⁠LOCKhart07 on GitHub · 2026-12-04 15:31 UTC · original
LOCKhart07:main-counter-store → main · +35 −6 · 3 files · 1 commits · draft

Split out of the hardware ray tracing stack (#468), where it rode in the lift commit without depending on its switch. It stands here on main alone. Draft: what it changes on screen is not known, see below.

What it changes

A view a program also counts in is one 32-bit integer channel. A store to it was taken as that integer only when its mask named channel 0 alone; a mask naming more (0x3, 0x7, 0xF) went the float way. Now:

  • any mask with channel 0 writes the first data register as the integer (the format has no other channel to take the rest);
  • a mask without channel 0 is refused. Whether the console keeps the texel or writes 0 there is not settled.

TRANSLATOR_VERSION goes from 20 to 21, because the translation of some shaders changes. That rebuilds every shader cache once.

Measured

On one machine (x86_64-pc-windows-msvc, tests under Wine on Linux, RADV), over the 25,694 shader containers of the title's archive, by victory shaders at version 20 translating again what main (0fd7614) had cached:

  • 2 of 25,694 came out different;
  • the same 195 containers that hold no program do not translate, so none is newly refused.

Tests: victory-shader --lib -- size_tests, 15 passed, 0 failed. The store test now holds the three wider masks to the program and the value of the one-channel store, and the mask without channel 0 to a refusal.

Not measured

  • Which two programs they are and what they draw. No run, no picture.
  • Whether a cache rebuild for everyone is worth two shaders is the maintainers' call; it could also wait and ride with the next change that bumps the version anyway.
  • The full test suites were not run on this branch; only the store tests above.

🤖 Generated with Claude Code

**@⁠LOCKhart07** on GitHub · 2026-12-04 15:31 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/473) `LOCKhart07:main-counter-store` → `main` · +35 −6 · 3 files · 1 commits · draft Split out of the hardware ray tracing stack (#468), where it rode in the lift commit without depending on its switch. It stands here on main alone. Draft: what it changes on screen is not known, see below. ### What it changes A view a program also counts in is one 32-bit integer channel. A store to it was taken as that integer only when its mask named channel 0 alone; a mask naming more (`0x3`, `0x7`, `0xF`) went the float way. Now: - any mask with channel 0 writes the first data register as the integer (the format has no other channel to take the rest); - a mask without channel 0 is refused. Whether the console keeps the texel or writes 0 there is not settled. `TRANSLATOR_VERSION` goes from 20 to 21, because the translation of some shaders changes. That rebuilds every shader cache once. ### Measured On one machine (`x86_64-pc-windows-msvc`, tests under Wine on Linux, RADV), over the 25,694 shader containers of the title's archive, by `victory shaders` at version 20 translating again what main (`0fd7614`) had cached: - 2 of 25,694 came out different; - the same 195 containers that hold no program do not translate, so none is newly refused. Tests: `victory-shader --lib -- size_tests`, 15 passed, 0 failed. The store test now holds the three wider masks to the program and the value of the one-channel store, and the mask without channel 0 to a refusal. ### Not measured - Which two programs they are and what they draw. No run, no picture. - Whether a cache rebuild for everyone is worth two shaders is the maintainers' call; it could also wait and ride with the next change that bumps the version anyway. - The full test suites were not run on this branch; only the store tests above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A view the program also counts in is one 32-bit integer channel. A
store to it was taken as that integer only when its mask named channel
0 alone; a mask naming more (0x3, 0x7, 0xF) went the float way. Now any
mask with channel 0 writes the first data register as the integer, and
a mask without channel 0 is refused (whether the console keeps the
texel or writes 0 there is not settled).

This rode in the hardware ray tracing lift commit without depending on
its switch; it is taken out there and stands here alone, unchanged.
TRANSLATOR_VERSION 20 to 21.

Measured, on one machine (Wine, RADV), over the 25,694 shader
containers of the title's archive, by `victory shaders` at version 20
translating again what main (0fd7614) had cached: 2 came out
different, and the same 195 that hold no program do not translate (so
none is newly refused).

Tests: size_tests' store test now holds the three wider masks to the
program and the value of the one-channel store, and the mask without
channel 0 to a refusal.

Not measured: any run; which two programs they are and what they draw.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 15:32:53 +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 origin '+refs/pull/473/head:github-bot/gh-473'
git switch 'github-bot/gh-473'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-473'
git switch 'github-bot/gh-473'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-473'
git switch 'github-bot/gh-473'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-473'
git switch 'main'
git merge --squash 'github-bot/gh-473'
git switch 'main'
git merge --ff-only 'github-bot/gh-473'
git switch 'main'
git merge 'github-bot/gh-473'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.