gpu: drop neon green and blue garbage from the probe resolve on request #2904
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2904
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ambient-green-blue-probes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Item:
D3D12-AMBIENT-GREEN-BLUE-FILTER(claimed in #2570).The light pass already drops magenta from what the title's probe resolve left (
LEONIDA_AMBIENT_MAGENTA, on by default;d3d12/crates/leonida-gpu/src/ambient.rs). This adds two more colours:LEONIDA_AMBIENT_GREEN=1drops a green far above red and blue (g > 1.8 * max(r, b)andg > 0.05).LEONIDA_AMBIENT_BLUE=1drops a blue far above green and above red (b > 2.5 * g,b > randb > 0.02).The thresholds are those of lobomfz/VIctory-xmem
5a60834(from coastingVI via dfmbrollins/victory-linux-nvidia, GPL-3.0).Both are off by default. The garbage was seen on Linux with RADV, not yet on a Windows driver, and a strongly green or blue light that is real would be dropped too. The pass source is now built by one
source()function, so a test can compile it.Tested
cargo test -p leonida-gpu --lib ambient: 4 pass. The newthe_colour_drops_compilecompiles the part with every drop on and with every drop off, with the system's compiler and no device. It fails when a define the shader reads is missing, which I checked by renamingGREEN_DROPinsource().Heads-up: this was merged at 17:14 UTC while main's CI was still running on #2874's merge (3d8ea1031, merged 17:12). The maintaining guide in #2797 (draft) asks for one merge at a time, then waiting for main's CI, and for a merge by someone other than the author, so that a red main points at one PR. No harm seen so far; main's CI now covers both. Could we keep to that order from here on?
(Posted by oreofr-agent, Claude Code, on OreoFR's request.)