Facial geometry broken on RDNA3 — four compute shaders fail to translate #39

Closed
opened 2026-12-05 17:23:02 +00:00 by github-bot · 2 comments
Owner

@⁠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 dropped

hash error
b22a16a178976e1b converter shader.dxil v2: GFX10 code at 0x22c: a wave sum of 16-bit floats where not every lane runs is not supported
a26a38d61f256901 converter shader.dxil v2: GFX10 code at 0x360: a wave sum of 16-bit floats where not every lane runs is not supported
926c46bab3b86bd6 converter shader.dxil v2: GFX10 code at 0x13c8: a lane mask holding lanes elsewhere read as data is not supported
6871d6e4b3ac9a10 converter shader.dxil v2: GFX10 code at 0x1f98: a lane mask holding lanes elsewhere read as data is not supported

Both look like GFX10 ISA translation gaps in the converter:

  • wave sum of 16-bit floats where not every lane runs — a half-precision cross-lane reduction under an active-mask condition (skin/deformation maths is commonly fp16).
  • a lane mask holding lanes elsewhere read as data — a v_cmpx / s_mov_b64 lane 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 926c46bab3b86bd6 and 6871d6e4b3ac9a10 both ship a replacement .dxil in bin/shader-replace, but the replacement is not used because the original does not translate:

WARN larp_gpu::shader_replace: shader replacement not used: the program does not
translate, and its binding interface comes from the translation

Also in the log

WARN larp_gpu::descriptor::host: host view heap: title slots past 606782 read a null slot  count=1245184
WARN larp_gpu::descriptor::host: unordered buffer view: the host would refuse it, left null  format=39

The title writes 1,245,184 view slots but only 606,782 are real.

Environment

  • GPU: AMD Radeon RX 7800 XT 16 GB (RDNA3 / GFX10.3)
  • CPU: Ryzen 7 5800X3D
  • RAM: 32 GB DDR4-3200
  • OS: Windows 11 Pro (build 26300)
  • Resolution: 3840x2160, FSR quality, frame generation 2x
  • Build: gamingwithhomie/larp at d5c2908, built locally with cargo build --release -p larp (rustc 1.98.1, x86_64-pc-windows-msvc), 0 errors

Notes

  • The view-heap fix from iceboerg00/larp-amd (45cc4f6, forcing PORTABLE_VIEWS so 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.
  • I am happy to test a patch for either translator case and report back.
**@⁠diogofreitasfreitas17-sketch** on GitHub · 2026-12-05 16:11 UTC · [original](https://github.com/gamingwithhomie/larp/issues/39) 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 dropped | hash | error | |---|---| | `b22a16a178976e1b` | `converter shader.dxil v2: GFX10 code at 0x22c: a wave sum of 16-bit floats where not every lane runs is not supported` | | `a26a38d61f256901` | `converter shader.dxil v2: GFX10 code at 0x360: a wave sum of 16-bit floats where not every lane runs is not supported` | | `926c46bab3b86bd6` | `converter shader.dxil v2: GFX10 code at 0x13c8: a lane mask holding lanes elsewhere read as data is not supported` | | `6871d6e4b3ac9a10` | `converter shader.dxil v2: GFX10 code at 0x1f98: a lane mask holding lanes elsewhere read as data is not supported` | Both look like GFX10 ISA translation gaps in the converter: - **wave sum of 16-bit floats where not every lane runs** — a half-precision cross-lane reduction under an active-mask condition (skin/deformation maths is commonly fp16). - **a lane mask holding lanes elsewhere read as data** — a `v_cmpx` / `s_mov_b64` lane 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 `926c46bab3b86bd6` and `6871d6e4b3ac9a10` both ship a replacement `.dxil` in `bin/shader-replace`, but the replacement is not used because the original does not translate: ``` WARN larp_gpu::shader_replace: shader replacement not used: the program does not translate, and its binding interface comes from the translation ``` ### Also in the log ``` WARN larp_gpu::descriptor::host: host view heap: title slots past 606782 read a null slot count=1245184 WARN larp_gpu::descriptor::host: unordered buffer view: the host would refuse it, left null format=39 ``` The title writes 1,245,184 view slots but only 606,782 are real. ### Environment - **GPU:** AMD Radeon RX 7800 XT 16 GB (RDNA3 / GFX10.3) - **CPU:** Ryzen 7 5800X3D - **RAM:** 32 GB DDR4-3200 - **OS:** Windows 11 Pro (build 26300) - **Resolution:** 3840x2160, FSR quality, frame generation 2x - **Build:** `gamingwithhomie/larp` at `d5c2908`, built locally with `cargo build --release -p larp` (rustc 1.98.1, x86_64-pc-windows-msvc), 0 errors ### Notes - The view-heap fix from `iceboerg00/larp-amd` (`45cc4f6`, forcing `PORTABLE_VIEWS` so 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. - I am happy to test a patch for either translator case and report back.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 17:23:06 +00:00
Author
Owner

@⁠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 added LARP_HOST_MAX_WAVE=32 (along with the PORTABLE_VIEWS black-textures fix). Could you test:

  1. Download larp-windows-amd.exe from v1.0.11-amd and rename it to Larp\bin\larp.exe.
  2. Launch with Wave32 enabled in PowerShell:
    $env:LARP_HOST_MAX_WAVE = "32"
    .\series-x.cmd
    

Let us know if the 4 shaders translate cleanly and fix the facial geometry on RDNA 3!

**@⁠gamingwithhomie** on GitHub · 2026-12-05 16:23 UTC · [original](https://github.com/gamingwithhomie/larp/issues/39#issuecomment-7441263629) 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]](https://github.com/gamingwithhomie/larp/releases/tag/v1.0.11-amd)** build (`larp-windows-amd.exe`), we added **`LARP_HOST_MAX_WAVE=32`** (along with the `PORTABLE_VIEWS` black-textures fix). Could you test: 1. Download **`larp-windows-amd.exe`** from **[v1.0.11-amd](https://github.com/gamingwithhomie/larp/releases/tag/v1.0.11-amd)** and rename it to `Larp\bin\larp.exe`. 2. Launch with Wave32 enabled in PowerShell: ```powershell $env:LARP_HOST_MAX_WAVE = "32" .\series-x.cmd ``` Let us know if the 4 shaders translate cleanly and fix the facial geometry on RDNA 3!
Author
Owner

@⁠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 the larp-amd fork.

Verified on the hardware in the report — RX 7800 XT (RDNA3/GFX10.3), 3840x2160, FSR quality, frame generation 2x:

  • Faces render correctly now. Confirmed by the user running the game.
  • All four shaders translate. The previous log had 4 does not translate warnings; the new log has 0, and none of these hashes appear any more:
    • b22a16a178976e1b
    • a26a38d61f256901
    • 926c46bab3b86bd6
    • 6871d6e4b3ac9a10

The 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.

**@⁠diogofreitasfreitas17-sketch** on GitHub · 2026-12-05 17:07 UTC · [original](https://github.com/gamingwithhomie/larp/issues/39#issuecomment-7441870167) **Fixed** by `750aabb` (*"AMD: translate the compute programs a 64-lane host refused"*) on the `larp-amd` fork. Verified on the hardware in the report — RX 7800 XT (RDNA3/GFX10.3), 3840x2160, FSR quality, frame generation 2x: - **Faces render correctly now.** Confirmed by the user running the game. - **All four shaders translate.** The previous log had 4 `does not translate` warnings; the new log has **0**, and none of these hashes appear any more: - `b22a16a178976e1b` - `a26a38d61f256901` - `926c46bab3b86bd6` - `6871d6e4b3ac9a10` The 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#39
No description provided.