Linux / Proton on RX 5700 XT (RDNA1): reached credits, one partially rendered 3D frame #1410
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#1410
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?
@sigonor90 on GitHub · 2026-11-24 17:48 UTC · original
Environment
vkd3d-1.1-5742-g2576c0b4aVICTORY_SHOW_TARGET=2560x1440-f28-3)VICTORY_D3D12_DRED=1VICTORY_DEBUG_PS=1Result
The game progressed through its execution and reached the credits.
Most of the visible output consisted of 2D text and images from the credits. However, I observed one frame containing a partially rendered image:
This was a single observed frame, not a stable 3D scene. I could not confirm that the full game world rendered correctly.
Performance and rendering diagnostics
The final VIctory host statistics included:
The logs show multiple mesh and compute pipelines being refused or dropped.
Examples of shader translation failures:
The host pipeline library was saved:
The VKD3D-Proton log also shows repeated swapchain reallocations between 3840×2160 and 2560×1440.
Memory and termination
The run reached the credits without a reported OOM event.
No OOM kill, AMDGPU reset, or ring timeout was found in the kernel journal for the checked period.
Proton stopped after the run. However, the final lines of the available launch log do not contain an explicit crash, Vulkan device-loss error, or access violation. The exact termination cause is unknown.
Why this report may be useful
This is a data point from an RDNA1 GPU, which does not support hardware Mesh Shaders.
Although the full 3D scene did not render correctly, the recognizable police lights suggest that at least some graphics work produced meaningful visible output on this GPU.
It may be useful to distinguish between:
Full launch and VKD3D-Proton logs are available if needed.
AI-assisted report; testing and observations performed by the reporter.
launch.log
vkd3d-debug.log
@EduBertozzi on GitHub · 2026-11-24 17:49 UTC · original
Thanks for the RDNA1 data point. Without mesh shaders, every world mesh pipeline is refused on
main, which may account for much of what's missing from that frame.#961 adds a compute fallback for exactly this case. Each mesh program runs as a compute shader that writes its triangles to buffers, and a vertex shader draws them. It turns on by itself when the device reports no mesh shaders. Two in-game runs so far, on an RX 470 and a GTX 1070 Ti, got the world's geometry drawn after fixes now on the branch (
31568ceor later). RDNA1 would be a useful third, because it has 64-lane waves: the title's wave64 mesh programs can run there as written, without the 32-lane workarounds the NVIDIA runs need.If you try it, the interesting log lines are
mesh shader translated as compute(with itsMeshLayout), anyhost root signature refused, andno shader-writable buffer.AI-assisted (Claude Code).
@Lu-var on GitHub · 2026-11-24 20:10 UTC · original
Linux / Proton on RX 5700 (RDNA1): PR #961 mesh compute fallback telemetry
Part 1: Objective Telemetry & Results
(Direct measurements, verbatim log excerpts, and counts from
victory-diag.log,vkd3d-debug.log,vkd3d-shader-dumps/, and/home/luvar/.cache/victory/captures/.)Environment
7.3.5)Mesa 26.3.1-arch3.5)1.4.363umu-run)3.2.0(build: 2576c0b4adfae4a,VK_EXT_descriptor_heapenabled, SM 6.6 / 6.7 / 6.8)1.0.2.1(game_scarlett_master.exe,930.048.020-vb_sub_story)victory.exe), PR #994 merged with PR #961 (31568ce, merge commitd33b13c)2560×1440(VICTORY_SHOW_TARGET=2560x1440-f28-3)VICTORY_D3D12_DRED=1VICTORY_DEBUG_PS=1Result
18:57:41Zto19:12:35ZUTC).frame-1.pngthroughframe-1024.pngsaved; non-trivial file sizes atframe-128.png(14 KB),frame-256.png(3.8 MB),frame-512.png(184 KB), andframe-1024.png(1.9 MB).frame-128.png: Pre-loading account picker screen.frame-256.png: Intro screen animation frame.frame-512.png: Rockstar logo in the intro screen animation.frame-1024.png: Loading screen with artwork.Captures (frame-128, frame-256, frame-512, frame-1024)
PR #961 Log Counts (
victory-diag.log)mesh shader translated as computeMeshLayout { threads: 128, max_vertices: 128, max_primitives: 128, vertex_dwords: 4..72, primitive_dwords: 0 },expanded=falsehost root signature refusedno shader-writable bufferhost mesh fallback compute pipeline refusederror=Invalid parameter. (0x80070057)no host pipeline: the mesh shader does not translate as compute (logged once)shaders=[mesh c89489afd89ee7f0, pixel 59b1ba494f18c894]Sample lines from
victory-diag.log:Performance and Rendering Diagnostics
victory_gpu::hoststat:victory-diag.log): 359shader does not translatewarnings for GFX10 shaders, including:a descriptor read only as data is not supporteda scalar memory read as data is not supporteda biased image sample with 16-bit coordinates is not supporteda 64-bit image atomic is not supporteda lane-mask join of an untracked mask is not supporteda lane mask read as data is not supportedvkd3d-debug.log:Unsupported descriptor count 1507328 for heap type 0 (max 1000000)andUnsupported descriptor count 1310720 for heap type 0 (max 1000000)victory-diag.log:WARN victory_gpu::descriptor::host: title slot past the host heap index=999999 count=934464 for_draw=false(and adjacent indices)vkd3d-debug.logcompute pipeline / shader compilation counts (2,501 lines total):vkd3d-shader-dumps/vkd3d-shader-04d7693c7d220a9cf7682ae215c8fd47-cs_5_1.log:vkd3d-shader-dumps/vkd3d-shader-04d7693c7d220a9cf7682ae215c8fd47-cs_5_1-source.hlsl:vkd3d-debug.log): 44Reallocating swapchainentries alternating between3840 x 2160and2560 x 1440.Memory and Termination
19:12:35ZUTC with Breakpad crash telemetry invictory-diag.log:memory.load_percent:89system.memory.free:1656200KBupload_file_minidump:506478bytes (HTTP connection blocked destination=submit.backtrace.io:443)Part 2: Findings & Observations (AI-Assisted Analysis)
(Interpretation of the telemetry above; not raw measurements.)
VIctory detected
mesh=falseand enabled the compute fallback automatically (231mesh shaders translated as compute, with0host root signature refusedand0no shader-writable buffererrors).mesh_indirectcs_5_1FXC error (E5005) explains all 4830x80070057refusals:The 483
host mesh fallback compute pipeline refused (0x80070057)warnings invictory-diag.logmatch 1:1 with the 483vkd3d_compile_shader_stage(-3) /d3d12_pipeline_state_init_compute(0x80070057) failures invkd3d-debug.log. Becausemesh_indirectis compiled ascs_5_1(FXC) while calling.Load()onRWByteAddressBuffer(args,count), FXC rejects it (E5005), preventing host compute pipeline creation even though the mesh shaders themselves translated. (Under SM 5.1,.Load()is only defined on read-onlyByteAddressBufferSRVs, whereasRWByteAddressBuffer.Load()requires SM 6.0+ / DXIL.)Isolates a concrete Proton/
vkd3d-protonblocker on PR #961 (mesh_indirectcs_5_1vsRWByteAddressBuffer.Load()) separate from RDNA1 Wave64 mesh-shader translation itself.AI-assisted report; testing and raw data collection performed by the reporter, with Part 2 analysis generated by AI.
Telemetry & captures (
victory-diag.log,vkd3d-debug.log,mesh_indirectcs_5_1shader dumps,frame-{128,256,512,1024}.png):rdna1-pr961-telemetry.zip
@Marvisak on GitHub · 2026-11-25 10:17 UTC · original
Automated triage for the maintainers.
Run report: RX 5700 XT (RDNA1) under Proton, RADV (Mesa 26.2.5), vkd3d-proton. It reached the credits with one partly drawn 3D frame, at 0.1 fps. @sigonor90, please add the exact VIctory commit (
git rev-parse --short HEAD). "Based on PR #994" doesn't pin it, and #994 was closed unmerged.What the result fits: RDNA1 has no mesh shaders, and the README lists mesh shaders as a requirement for the world. On
main, the world's mesh pipelines can't be made on that GPU. Support for GPUs without mesh shaders is tracked in #3, with open PR #961 (compute fallback). #1612 summarises where it stands.@Lu-var, thanks for the #961 telemetry. The 483 refused fallback compute pipelines come from its runtime-compiled HLSL failing under Wine (
E5005). #170 is the same Wine compiler problem in the indirect argument clamp. Please post the finding on #961 so it is handled there.Generated by Claude Code
@2150272538-jpg on GitHub · 2026-11-26 12:15 UTC · original
In-game on RX 5700 XT: the world renders through a mesh→compute fallback (18 min 33 s, 13,176 draws/frame)
Context: this card reports
D3D12_OPTIONS7::MeshShaderTier = 0,BarycentricsSupported = false,HighestShaderModel = 0x60,int64 shader ops: true, wave lanes 32–64. I wrote a smalldevice_probeagainstCheckFeatureSupportto state that without ambiguity.I built a fallback along the same lines #961 describes — convert each mesh stage to compute that
writes vertices/indices to raw UAVs, generate a vertex stage that reads them back by
SV_VertexID,Dispatch+ UAV barrier +ExecuteIndirect(DRAW_INDEXED)— before I found #961, so this is anindependent confirmation of the shape rather than a competing design. What #961 lists as still open
is now measured on this card:
1.0 fps at 1080p;
A pristine build of this tree shows the same 19.6–19.9 GB plateau, so it is the title plus our
host-side mirrors, not the fallback. That is exactly
GPU-HOST-MEMORYin #1633.Four things that were not in either #961's plan or #1648, and cost real time:
DispatchMeshXthrough aMESHcommand signature removes the device. On a card without meshshaders the record is rejected at execution:
0x887A0004then0x887A0006, no validation errorunless the debug layer is on, and the loss looks like a random hang 2 s earlier. The indirect path
must be synthesised: a one-thread pass turns the console's argument record into a
DISPATCHrecordand a
DRAW_INDEXEDrecord, then twoExecuteIndirectcalls. Dropping indirect mesh dispatchesinstead keeps the title alive but leaves the world empty.
SV_Barycentrics(the class #1247 measures as 207 programs): emulate by having every producerwrite the triangle-corner basis
(1,0,0)/(0,1,0)/(0,0,1)as one extra output element and reading itin the pixel stage, letting the rasteriser interpolate with the element's mode. Exact at 1× MSAA for
centroid/sample. The mesh-compute path packs the corner into the low bits of the index word so the
generated vertex stage can rebuild it. Matches #453's category.
atomicBinOp.i64(unsigned maxon a packed
(a<<32)|b, result never read) setsATOMIC_TYPED64, andCreatePixelShaderreturnsE_INVALIDARGon an SM 6.0 card. Dropping the atomic when the host is below SM 6.6 makes 366 drawsper frame of interior architecture appear — the "missing roof" symptom. Matches #305/#539.
address was not 256-byte aligned was bound null, so every constant in that shader read 0 (one line
per pipeline, 13,300 times a run), and unordered textures the title places itself were not mirrored,
so lighting inputs were null too. Same scene after the fixes: mean luminance 43.9 → 153.6, pixels
below 8 % grey 62.4 % → 6.9 %.
Also relevant to
SHADER-MESH-LANES-AMD: the "all lanes participate, masked lanes add 0" wave sums onlytranslate on a host whose waves are exactly the console's 32 lanes; on this card (32–64) I had to retry
those programs as a 32-lane host. That is the task as written in #1633.
I have a self-contained fork (21 files changed, 4 added, 0 removed, GPLv3 kept) and can turn any of
these into pull requests against the tree of your choice. Which would help most — the indirect-argument
pass (#961's
mesh_indirect.rs), the barycentrics emulation, or the descriptor fixes? I would ratherland them where they are wanted than duplicate work, so I will hold off and follow
claiming:in #1633if you prefer that route.
No game files were used in what I describe; numbers come from running the title.
AI-assisted development; hardware runs and measurements on the machine described above.