Facial geometry broken on RDNA3 — four compute shaders fail to translate #39
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp#39
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?
@diogofreitasfreitas17-sketch on GitHub · 2026-12-05 16:11 UTC · original
Character faces render with collapsed / folded mouth geometry. Hair, skin textures, glasses and clothing all render correctly — only the facial deformation is wrong. The lower mouth folds inward with lip geometry pushed through itself, and no normal jaw contour.
Screenshot (character seated at the table): the mouth is a dark slit with a bulbous pink mass protruding from the lower centre.
play.log— four compute shaders fail to translate, their draws droppedb22a16a178976e1bconverter shader.dxil v2: GFX10 code at 0x22c: a wave sum of 16-bit floats where not every lane runs is not supporteda26a38d61f256901converter shader.dxil v2: GFX10 code at 0x360: a wave sum of 16-bit floats where not every lane runs is not supported926c46bab3b86bd6converter shader.dxil v2: GFX10 code at 0x13c8: a lane mask holding lanes elsewhere read as data is not supported6871d6e4b3ac9a10converter shader.dxil v2: GFX10 code at 0x1f98: a lane mask holding lanes elsewhere read as data is not supportedBoth look like GFX10 ISA translation gaps in the converter:
v_cmpx/s_mov_b64lane mask used as a value rather than a branch predicate.Given that morph-target and skinning work is compute-heavy and fp16, these are the likely cause of the facial geometry fault.
Note
926c46bab3b86bd6and6871d6e4b3ac9a10both ship a replacement.dxilinbin/shader-replace, but the replacement is not used because the original does not translate:Also in the log
The title writes 1,245,184 view slots but only 606,782 are real.
Environment
gamingwithhomie/larpatd5c2908, built locally withcargo build --release -p larp(rustc 1.98.1, x86_64-pc-windows-msvc), 0 errorsNotes
iceboerg00/larp-amd(45cc4f6, forcingPORTABLE_VIEWSso the replacement shaders' baked slots stay valid) is applied in this build — without it the textures are entirely black. With it, textures are correct and only faces are wrong.github-bot referenced this issue2026-12-05 17:23:49 +00:00
@gamingwithhomie on GitHub · 2026-12-05 16:23 UTC · original
Thanks for the detailed report and shader hashes! Those 4 compute shaders fail on AMD's 64-lane (
Wave64) translation path, whereas they translate cleanly on the 32-lane (Wave32) path.In our new v1.0.11-amd [AMD] build (
larp-windows-amd.exe), we addedLARP_HOST_MAX_WAVE=32(along with thePORTABLE_VIEWSblack-textures fix). Could you test:larp-windows-amd.exefrom v1.0.11-amd and rename it toLarp\bin\larp.exe.Let us know if the 4 shaders translate cleanly and fix the facial geometry on RDNA 3!
@diogofreitasfreitas17-sketch on GitHub · 2026-12-05 17:07 UTC · original
Fixed by
750aabb("AMD: translate the compute programs a 64-lane host refused") on thelarp-amdfork.Verified on the hardware in the report — RX 7800 XT (RDNA3/GFX10.3), 3840x2160, FSR quality, frame generation 2x:
does not translatewarnings; the new log has 0, and none of these hashes appear any more:b22a16a178976e1ba26a38d61f256901926c46bab3b86bd66871d6e4b3ac9a10The fix retries a wave64 compute program that was refused "where not every lane runs" without its early-outs, then translates it with the 32-lane forms, and ships four replacement shaders declaring
WaveSize(32). Everything that translated before is unchanged.Source: https://github.com/iceboerg00/larp-amd commit
750aabb.Thanks — closing.