Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3588"
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?
Imported from Marvisak/VIctory. Originally posted by zed6000 on 2026-11-27T19:24:08Z.
This reopens #1738 by @jaschinski97-ops (live interpolation values), which includes the pixel-barycentrics work of #453 by @AntoninMichelq that it builds on. Both were closed on 2026-11-26 without being merged. The change is still needed on
main: one pixel program the title runs in the intro is refused withemit: barycentrics read directly.The branch is #1738's last head (
9d59892) merged ontomain63bcca4. The merge is clean, and all original commits and authors are kept.Measured on an RX 7900 XTX (driver 32.0.32029.2010), Windows 11:
shaders.rpf(translate --validate --list, 26,084 programs), compared withmain63bcca4program by program: +1, 0 lost. The one is that "barycentrics read directly" refusal.cargo test -p victory-shader --lib --locked: 325 passed, 0 failed.Merge notes for the open shader PRs touching the same code (#1924, #2978, #385, #2999) are in my comment on #1738.
I'm happy to hand this back if any of the original authors wants to continue it. AI-assisted (Claude Code); counts only, no game data.
Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-27T21:04:42Z.
Verified on AMD Radeon 780M (RDNA3, Ryzen 7 8845HS), Windows 11, head
6f32448.barycentricfilter: 24/24 passed, 5 of 5 runs.barycentric_draw_tests.rs, branch kilolimaVI/VIctorytests/barycentric-draw) on top of this PR. It draws a triangle and checks every pixel against the expected attribute values:victory-shader+victory-gpu --features diagnostics): 575 passed, 0 failed.This matches #3553's result on the same test, so the two PRs render identically here; the choice between them can be made on the code alone.
AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by michi-feny on 2026-11-28T18:22:37Z.
This covers hosts that have SV_Barycentrics. Hosts that do not have it end up on
"emit: barycentrics read directly" and lose the input: my RX 5700 XT reports
OPTIONS3::BarycentricsSupported=false and MeshShaderTier=0, and so does an RX 580.
There is a second route that needs no system value at all, and it works together with this PR
rather than against it — SV_Barycentrics where the host has it, the emulation where it does not:
corner, (1,0,0) / (0,1,0) / (0,0,1).
the read behind produces DXIL that the AMD compiler crashes on (amdxc64, first-chance
0xc0000005).
Measured on that card: refusals of the barycentric kind 249 -> 0, pipelines built during loading
11 -> 49, and a pixel program that previously did not translate now does.
The code, GPL-3.0-or-later, two commits on branch barycentric-emu:
github.com/michi-feny/cool_fox@01a77ea(shader)github.com/michi-feny/cool_fox@319eb4a(gpu)Four sites: lower.rs fn barycentric, lower.rs fn vertex_input, rect.rs/mod.rs (barycentric_gs,
VICTORYBARY), pipeline/host.rs (the OPTIONS3 probe). AI-assisted (Claude); counts only, no game
data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.