Compiling shaders fails on RDNA4 (9060XT), ProjectScarlett launchs with a black screen #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/brcly--TuxBox#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?
@brunoanesio on GitHub · 2026-11-24 08:17 UTC · original
OS: CachyOS/Arch, kernel 7.3.6-1-cachyos.
GPU: AMD Radeon RX 9060 XT (RADV GFX1200, Navi 44), Mesa / vulkan-radeon 26.3.1-5
Proton: experimental-11.0-20261112-x86_64, umu-launcher 1.4.3, steamrt4
Game package: RockstarGamesInc.28872443D20A7 1.0.2.1; game_scarlett_master.exe SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993; shaders.rpf present. tuxbox.py inspect reports GTAO Scarlett game_scarlett_master.exe present.
Warm-up was also exercised: python tuxbox.py run --prepare-only ... /home/frost/scarlett-run reported 1781 checked, 1 compiled, 1287 reused, 493 unsupported, 0 failed in 1.0 s.
scarlett-3.log
@Valdi320 on GitHub · 2026-11-24 14:55 UTC · original
The shader translation changes since the original report are substantial (including merged #45, #46 and #49). If you are able to retest using an authorized local copy, could you share one new log from current main, with its commit SHA, GPU/driver and Proton build, plus the final preparation counts (compiled/cached/unsupported/failed) and the last visible milestone? A fresh log would let us rank the remaining actual shader refusals rather than guess from the older 836 distinct failures. Please keep the game files, recorded shader binaries and cache private; logs/aggregate counts only, after reviewing/redacting personal paths and identifiers. If you already have recorded requests locally, a CPU-only same-request comparison using #44 is also possible; no need to upload the requests. Thanks!
@brunoanesio on GitHub · 2026-11-24 15:38 UTC · original
Retested from a clean tree. build/ was deleted and rebuilt in full, including a fresh xshader; all ten ProjectScarlett providers were restaged beside the executable.
Commit:
3086e0b045(main, equal to origin/main; clean worktree). Includes #45, #46 and #49.GPU/driver: AMD Radeon RX 9060 XT (RADV GFX1200), Mesa / vulkan-radeon 26.3.1-5, driverInfo = Mesa 26.3.1-arch3.5, Vulkan 1.4.363. CachyOS/Arch, kernel 7.3.6-1-cachyos.
Proton: 1794497090 experimental-11.0-20261112-x86_64, umu-launcher 1.4.3, steamrt4. Launch offline via UMU_RUNTIME_UPDATE=0 unshare --user --map-current-user --net --.
Preparation counts (--prepare-only, 231.2 s): 8,692 checked, 4,725 compiled, 0 cached, 3,966 unsupported, 1 failed. The single failure was one dxc -T cs_6_0 -O0 invocation timing out after 15 s.
scarlett-current-main.log
I'm still using only the DXC Linux, I haven't tried installing the dxcompiler.dll/dxil.dll you mentioned in PR #52.
Disclosure: I'm not tech savvy enough so I'm using an AI agent to help me build and test locally.
@Valdi320 on GitHub · 2026-11-24 17:52 UTC · original
Thanks for the clean retest and preparation counts! The log identifies 88 explicit live refusals (57 divergent wave reductions, 13 EXEC elections, 8 DPP and 6 saveexec prologues, 2 swizzles, 1 lane read, 1 scalar offset), but it cannot rank all 3,966 preparation refusals because the cached refusals lack reasons.
If convenient, a CPU-only emitter triage of your recorded requests would be particularly useful. Current main already has tools/triage_scarlett_shaders.py; #75 adds an aggregate-only mode that omits request digests, paths and raw errors:
python tools/triage_scarlett_shaders.py "$REQUESTS" --jobs 2 --aggregate-only --json scarlett-aggregate.jsonHere REQUESTS is your local recorded requests directory. The flag is in #75, not yet main. Please share only aggregate counts, plus tested commit; no shader or game files. On main without #75, the existing triage with --examples 0 is also useful after reviewing/removing personal paths from its output. No need to launch the game just for this triage. The new runtime log also shows 32 sampled unlinked raster pipeline failures and 131 host-memory import failure messages; those are separate runtime issues, not proven DXC problems. #52 is now merged; if you try the Windows DXC DLLs on a later launch, a short report of the last visible milestone and whether these errors persist would help. Thanks again!
@brunoanesio on GitHub · 2026-11-24 18:48 UTC · original
Test with PR #75 head
092e96f5a2(merge base3b1197301d), in an isolated worktree. --aggregate-only --jobs 2 over the local recorded request archive; 135 tests pass on that commit. No game or shader files were shared.Totals: 8,809 requests — 4,755 translated, 4,054 refused, 0 failed.
Refusal buckets (aggregate counts):
scalar_dynamic_offset 1,263 (31.2%)
other_refusal 1,187 (29.3%)
wave_divergent 860 (21.2%)
mesh 298 (7.4%)
exec_election 254 (6.3%)
wave_prologue 92 (2.3%)
readlane_uninitialized 55 (1.4%)
wave_saveexec 26 (0.6%)
wave_other 10 (0.2%)
compute_swizzle 6 (0.1%)
exec_other 2 (0.0%)
vector_op 1 (0.0%)
Test with the Windows DXC DLLs:
Commit:
3b1197301d(main, equal to fetched origin/main; clean tree). build/ was deleted first; full python build.py and a from-scratch xshader build both succeeded. All 10 providers plus xshader were verified and restaged; cmp confirmed the staged d3d12_xs.dll matches the fresh build. Unit tests: 132 passed.Preparation: 8,809 requests checked → 4,754 compiled, 0 cached, 4,054 unsupported, 1 failed in 238.0 s. The one failure was dxc -T cs_6_0 -O0 timing out after 15 s on dac3d1878bc23b20fd6f20788e88076e9db8f6adc4c700a53be91c9b00c92a72.dxbc.
Last visible milestone (verbatim): TuxBox d3d12_xs: recorded DrawIndexedInstanced list=0x74ebd590 indices=30 instances=1. Preceded by driver-tiled sampled image in device memory ... 5808x5808 format=71, null UAV for Scarlett depth format=53, shader cache skipped 4096 requests with known unsupported translations, and substituted null raster stream pipeline for an untranslated shader (2048 so far). No further TuxBox events followed; the Americas window stayed solid black with no Account Picker.
Changes vs previous retest: 4 PresentX presentations and 64 compute-pipeline failures (0x80070057) remain. The 0x8007007e missing-module failure is now absent, and the PR #52 preflight emitted no warning — consistent with the staged Windows DXC DLLs. Only 1 shader was compiled during the launch because the cache was warm; no runtime refusals occurred.
scarlett-3b11973.log
buffer-remapregression control fails on RADV, with host memory imports refused #191