Fluid simulation bug #2248
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2248
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Naroa32 on GitHub · 2026-11-25 08:47 UTC · original
Environment & Issue Summary
fxceless/victory-fork(9376fd6).VICTORY_WINDOW_MAX), async relay settings (VICTORY_RELAY=0/2), page sync parameters (VICTORY_PAGE_WRITES=guards/all), and shader loop limits (VICTORY_SHADER_LOOP_LIMIT), all of which reproduced the issue. Logs indicate dropped compute dispatches (pipeline=0x22c6a8c1740) and unannounced modifications on 4-tier dynamic water simulation textures (356352->176128->90112->45056bytes).Note: Logs and issue report structured with the assistance of AI.
@Naroa32 on GitHub · 2026-11-25 10:04 UTC · original
Follow-up Investigation:
ShallowWaterSimShaders Compiled Cleanly (Root Cause Narrowed Down)Following a review of the compute shaders in
shaders.rpf, the vast majority compiled cleanly, including physics shaders forShallowWaterSimandOceanSim, while a small number of isolated visual effect shaders remain untranslated.Potential Root Causes:
(Note: Investigation and summary structured with the assistance of AI.)
@Marvisak on GitHub · 2026-11-25 15:51 UTC · original · edited 2026-11-25 18:46 UTC
Automated triage for the maintainers.
The boat sinking to the seabed in the opening scene is now reproduced on this repository's
mainby two AMD testers. Both report it as a rendering/simulation failure, not a crash.67e8ae1, diag build13f91ca, release buildNeither log has
texture to buffer copies not implemented, so the readback path (5cb63d8) is not the cause. Both runs share the same set of shaders that do not translate:a lane mask read as data(compute82a2ad6d07417d36,90a0692af4320129)v_cvt_f32_f64(compute5dc3b25986622949,6f225b641c5b0708,926c46bab3b86bd6).maindecodes this opcode (crates/victory-shader/src/gfx10/opcodes.rs) but has no lowering for it.v_permlanex16_b32(computea929109552ce1e84)a descriptor read only as data(computeceb5eb68cd99cb07)barycentrics read directly(pixel5067d502a1b4ffb4)13f91caadds computea10179ab7eda0dc3, which appears as the boat scene loadsEach run also has one dispatch dropped without a host pipeline. The RDNA 3 run has one mesh pipeline refused with
0x80070057(f5e50eb2108c425b+ce3f0432a08f1d35).Which of these compute programs drives the water simulation cannot be told from hashes alone. A maintainer would need to check whether one of the dropped compute programs feeds the boat's buoyancy. The
a10179ab7eda0dc3reason was not quoted; posting itsshader does not translateline would help.Generated by Claude Code
@FrozenGuy7 on GitHub · 2026-11-25 16:29 UTC · original
Retested on current
mainas asked: the boat still sinks to the seabed.Setup
main@67e8ae1,cargo build --profile diag -p victory --features diagnosticsvictory run game_scarlett_master.exe --execute --console series-x,VICTORY_PRESENT_TARGET=1x1:1, fresh cache dirLog,
main@67e8ae1texture to buffer copies not implementedwarning, so5cb63d8is in and that path does not seem to be the cause.host pipeline refusedlines.a dispatch without a host pipeline droppedwarning.82a2ad6d07417d36,90a0692af4320129: a lane mask read as data is not supported5dc3b25986622949,6f225b641c5b0708,926c46bab3b86bd6:v_cvt_f32_f64is not supporteda929109552ce1e84:v_permlanex16_b32is not supportedceb5eb68cd99cb07: a descriptor read only as data is not supported5067d502a1b4ffb4: barycentrics read directly is not supportedAlso seen on the
Belobug/VIctory-Belobug-AMDfork (01aadd1, based on8e79c80)The boat sinks there too. That build has 35 untranslated compute shaders (
an address in an SGPR that is no root parameter is not supported), and the driver refuses one compute pipeline (f16876929fa64f9f,0x80004005).So the sinking happens on both builds, with very different sets of missing shaders. If one of the 8 above is a
ShallowWaterSim/OceanSimkernel, thev_cvt_f32_f64ones look like candidates, but I can't map hashes to names. Happy to run a build with shader-name logging, or anything else you'd like tested on RDNA4.(AI-assisted: summary drafted with Claude from my run logs.)
@Naroa32 on GitHub · 2026-11-25 17:46 UTC · original
Retested on upstream
main(13f91ca) with RX 7900 XT (RDNA3): the boat still sinks into the water during the cutscene and floods/soft-locks upon taking control.Environment
origin/main@13f91ca(cargo build --release -p victory)victory.exe run game_scarlett_master.exe --executewithVICTORY_WINDOW_MAX=1920x1080Log Findings on
13f91catexture to buffer copies not implementedwarning appeared, confirming5cb63d8/ebdbcc3are active and that path is not the cause.WARN victory_gpu::draw: a dispatch without a host pipeline dropped pipeline=0x1bd4b1e3e800x80070057/E_INVALIDARG):WARN victory_gpu::pipeline::host: host mesh pipeline refused error=0x80070057 shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]shader does not translatewarnings (matches the 8 reported on RDNA4 in67e8ae1, plus one additional compute shadera10179ab7eda0dc3triggered right as the boat scene loads):stage="compute" hash=90a0692af4320129stage="compute" hash=82a2ad6d07417d36stage="compute" hash=a929109552ce1e84stage="compute" hash=ceb5eb68cd99cb07stage="compute" hash=5dc3b25986622949stage="compute" hash=6f225b641c5b0708stage="compute" hash=926c46bab3b86bd6stage="compute" hash=a10179ab7eda0dc3stage="pixel" hash=5067d502a1b4ffb4WARN victory_gpu::descriptor::host: placed unordered texture view not mirrored dimension=3WARN victory_gpu::object: method not implemented object="command queue" slot=0xb8 caller="+0x24900a5"(Note: Logs and summary structured with the assistance of AI.)