Cutscene faces on AMD: reads after a group barrier see other waves' writes #2664
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2664
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2664"
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?
@hatch8889 on GitHub · 2026-11-29 15:44 UTC · original
hatch8889:fix/amd-cutscene-faces→main· +81 −3 · 3 files · 1 commits · closed without mergingFor #1320. Wrong cutscene face expressions on an RX 6900 XT under Proton are
fixed here by this change together with descriptor heaps turned off:
Cause
In the face network's formula program (
0aa7934094794dbf) a wave reads whatanother wrote before a group barrier, and gets the old value from its compute
unit's cache.
NonWritable, though the same buffer is written through another handle. RADVtakes the load for reorderable and does not make it coherent.
nir_lower_memory_modeldoes not handleimage_heap_load, so these loads are not made coherent either. (Read from thesource; the measurements below agree.)
Change
VICTORY_GROUP_COHERENT=1(off by default): in compute programs withs_barrierand more than 32 threads a group, each typed UAV buffer load alsogets a store through the same handle, in a branch taken only at index
0xFFFF_FFFF. It changes nothing at run time and stops the handle beingdeclared
NonWritable.docs/linux-proton.md: both settings.With the switch unset, translations are as before.
Measured
RX 6900 XT, Mesa 26.3.1, GE-Proton11-15, CachyOS. One recorded frame, the card's
results against a processor calculation of the console's instructions. The
formula program stores 2446 16-bit values in that frame:
With both, the other 23 face network programs also match (821 dispatches). The
compiled formula program then has
glcon 32 of its 34 buffer loads, againstnone before.
In a game run the faces are right. That run and the measurements were made on this
change on top of local AMD-on-Linux changes; the two source files changed here
were otherwise as on
main.On this branch:
cargo test -p victory-shader --libpasses on Linux; clippyreports the same as on
main.The Windows test programs of this branch under GE-Proton on the same card:
victory-gpu,shader_cachevictory-shader, allvictory-shader, all1The same three fail both times, with the same messages:
split_lds_wave32_read_after_read_barrier_coalescing_and_parityandflat_global_stores_and_atomics_fence_uavs_at_group_barriers_across_waveswant aWARP adapter, and
stub_pipeline_is_createdexpects an unsigned shader to berefused, which this setup accepts.
Not done
needs the title's programs and a recorded frame.
covered.
🤖 Generated with Claude Code
6117c04fd7tob01879a924b01879a924tof73acfb7ef@hatch8889 on GitHub · 2026-11-30 16:41 UTC · original
Closing this as maintainer of this repo is not interested in supporting Linux and wider hardware.
Pull request closed