d3d12: every light disappears at close range (no visible flicker); the temporal resolves' 1280x720 HDR pair is empty on alternate frames #3021
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Reference
No Branch/Tag specified
main
github-pr/3295
beta
docs/changelog-3483-3500
github-pr/3294
github-pr/2975
github-pr/2815
feat/gate-driver-start
feat/skip-pipelines-release
perf/lazy-compare
perf/mwaitx-wait
test/prio-ceiling-main
fix/ab-cpu-stdout
fix/gate-old-crashes
diag/ab-cpu
test/main-0312
github-pr/3291
diag/indirect-clamp-census
feat/barrier-enhanced
perf/texture-frame-ceiling
perf/dstorage-threads
fix/console-queue-dma-tables
fix/port-descriptors-record-parts
fix/frame-waits-fence
fix/console-sampler-words
fix/graphics-userdata-spill
fix/xg-reserved-layout-rotation
fix/barrier-console-flags
fix/switches-wait-test-child
test/list-value-waits
test/lot-gxdk-0412
fix/bvh-compacted-size
docs/i18n-quickstarts
feat/native-pipeline-slots
fix/clippy-leonida-gpu
fix/list-value-producers
fix/descriptor-page-straddle
fix/xmem-low-window
fix/ffx-jitter-never-zero
fix/run-stdout-closed
github-pr/2892
github-pr/2896
feat/warm-save-every
github-pr/2980
github-pr/2994
github-pr/3005
github-pr/3010
github-pr/3136
github-pr/3303
github-pr/3220
github-pr/3143
github-pr/3330
github-pr/3226
github-pr/3187
carry/3395
github-pr/2946
github-pr/2947
github-pr/2945
github-pr/2983
github-pr/3001
github-pr/3372
github-pr/3128
github-pr/3296
github-pr/2588
github-pr/3119
github-pr/3378
fix/crash-diagnostics
feat/dlss-mip-bias
fix/retired-out-of-order
fix/dxr-postbuild-barrier
fix/amd-relay-default
fix/removed-report-wait
feat/heap-twin
feat/vram-margin
github-pr/2472
github-pr/3123
github-pr/3088
assets/annonce-v1
github-pr/2794
github-pr/3300
github-pr/3304
github-pr/3308
github-pr/3367
github-pr/3369
fix/launcher-dlss-diagnostics
github-pr/3269
github-pr/2957
github-pr/3205
fix/crash-zero-guard
github-pr/3185
github-pr/3099
github-pr/3104
github-pr/3348
github-pr/3379
github-pr/3377
perf/darner-title-priority-ceiling
github-pr/3376
gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github-pr/3373
github-pr/3368
github-pr/3198
gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github-pr/3346
github-pr/3375
github-pr/2958
github-pr/3151
github-pr/3307
github-pr/3278
github-pr/3374
fix/runtime-test-conservative-fixtures
github-pr/3366
ci/shard-semantic-linux
github-pr/3354
docs/fg-limit-fps-switch
github-pr/3365
fix/read-file-hard-link
github-pr/3364
fix/book-slot-heap-never-read
github-pr/3361
github-pr/3263
github-pr/3360
github-pr/3353
github-pr/3331
fix/alias-later-queued-submissions
github-pr/3352
github-pr/3228
github-pr/3349
claude/gallant-sagan-aamatr
github-pr/3200
github-pr/3132
github-pr/3323
github-pr/3332
github-pr/3340
github-pr/3311
github-pr/3334
github-pr/3297
github-pr/3256
github-pr/2567
github-pr/2851
d3d12/agility-sdk-621
github-pr/3164
github-pr/3114
github-pr/3050
github-pr/3113
github-pr/3326
github-pr/3144
github-pr/2642
github-pr/3072
github-pr/2789
github-pr/2643
github-pr/3009
github-pr/3035
github-pr/3031
github-pr/2686
github-pr/2834
github-pr/3321
github-pr/3325
github-pr/3290
github-pr/3324
github-pr/3130
claude/fervent-curie-m19lnr
github-pr/3309
github-pr/3305
github-pr/3306
github-pr/3302
github-pr/3301
github-pr/3345
github-pr/3211
github-pr/3027
github-pr/3286
github-pr/3235
github-pr/3265
github-pr/3275
codex/skip-no-hit-ray-passes
github-pr/2823
github-pr/2911
github-pr/3262
github-pr/3125
github-pr/3206
github-pr/3250
github-pr/3238
github-pr/3188
github-pr/2952
github-pr/3217
github-pr/3168
t3/preserve-fsr-sdk-restart-path
t3/propagate-host-failure-hresult
github-pr/3209
t3/launcher-custom-parameters
github-pr/3207
github-pr/3183
github-pr/3160
github-pr/3201
ci/less-to-run
github-pr/2930
github-pr/2797
github-pr/2999
perf/native-compute-shader-forms
github-pr/3191
github-pr/3011
github-pr/3019
github-pr/2996
gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
claude/blissful-franklin-ukp7ag
github-pr/3141
github-pr/3156
github-pr/3150
github-pr/3153
github-pr/3163
github-pr/3142
github-pr/3139
github-pr/2841
github-pr/3069
github-pr/3098
github-pr/3107
github-pr/3071
github-pr/2774
github-pr/2889
github-pr/3075
github-pr/2661
github-pr/3064
github-pr/3054
github-pr/3049
github-pr/2855
github-pr/2943
github-pr/3016
github-pr/2887
github-pr/3006
github-pr/3003
github-pr/2993
notes/card-time-and-plant-flicker
github-pr/2989
feat/vulkan-rs
github-pr/2985
github-pr/2951
github-pr/2982
github-pr/752
github-pr/792
github-pr/2877
github-pr/2654
github-pr/2893
github-pr/2948
github-pr/2944
github-pr/2919
github-pr/2915
archive/ci/less-to-run/20261202T1121Z
github-pr/2800
github-pr/2822
github-pr/2833
github-pr/2840
github-pr/2831
github-pr/2832
github-pr/2801
github-pr/2890
github-pr/2891
github-pr/2664
github-pr/2807
rt-call-trace
github-pr/2755
perf/ahead-split
github-pr/2587
github-pr/2698
github-pr/2609
github-pr/3219
docs/readme-runtime-proposal
github-pr/2017
github-pr/1741
github-pr/1667
codex/coord-claim-check-20261124-7e48
v1.1.0
v1.0.1
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy#3021
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?
What happens
A street lamp lit at a distance disappears as the camera approaches, and comes back when stepping back. Symmetric, steady — the reporter sees the light go away and stay away while close, not a flicker. It affects every light in the world (street lamps, vehicle lights, lit windows).
Both the pool on the ground and the glow in the air go with it, which is why this looked at first like a volume or a shading problem rather than a light's data.
A measured alternation that may or may not be this fault
Captures along the approach show something else as well, and I am reporting it without claiming it is the cause:
The lamp lives in two 1280x720
R9G9B9E5textures,0xfde97d1700and0xfde97d1800(in the lamp's region: mean 0.00876 and 0.00672, max 0.55 and 0.52). They alternate exactly and swap every frame:0xfde97d17000xfde97d1800The same alternation appears in two other capture groups on the same approach (3208-3211: 0.00545 / 0.00000 / 0.00563 and inverse) and (3323-3326: 0.01354 / 0.00000 / 0.01357 and inverse). It is absent in an earlier group further away (3099-3102).
Four programs write one member per frame, wholesale, and the member flips as a block between frames:
34fb51b8a0312e82(CS_ScreenProbes_TemporalResolve_ReflectiveCaustics)s1+152,s1+2001700180071883e40620a567a(temporal resolve)s1+128,s1+144170018006fad2980c2774c90s1+40,s1+4817001800dce085c07b9414b6s1+40,s1+4818001700No
Srvand noUavtable entry in the recorded operations of those frames names either address as a read — only the writes above. So the consumer of the pair does not read it through a recorded descriptor table.Why this may or may not be the reported fault: a consumer taking one fixed member would lose the light on half the frames, which the temporal upscaler could average into a steady-looking loss rather than a visible strobe. But the reporter sees no flicker at all, and no captured frame yet shows the lamp steadily dark, so this link is unproven.
Commit
b9fbb7b0aonintegration/upstream-pending(2026-12-01). Not checked againstmain— if this is a regression of the integration branch, this report should say so.System
Fedora Linux 45, kernel 7.3.4-300.fc45.x86_64, NVIDIA GeForce RTX 3060 Ti (GA104), NVIDIA driver 620.73.4,
leonida.exediagnostics build under Wine + VKD3D-Proton launched byscripts/play-linux.sh, Series S profile.Command and steps
Then, standing at the lamp,
printf 4 > "$HOME/leonida-capture/dump"; walk straight towards it without moving sideways and write the file again. Each write captures four frames.Note for the Linux path:
LEONIDA_CAPTUREmust be aZ:\...path. The runtime is a Windows process and nothing converts a Unix path, soLEONIDA_CAPTURE=~/dirsilently captures nothing — neither F9 nor thedumpfile, since both are behindif folder().is_some()(crates/leonida-gpu/src/capture.rs:139and:161).What it is not
Each of these was a run of its own; none of them changes the symptom:
LEONIDA_AMBIENT_FLOOR,LEONIDA_AMBIENT_NEAR,LEONIDA_AMBIENT_AIR, and the whole stand-in by turns (LEONIDA_AB=5,LEONIDA_AMBIENT_ON).LEONIDA_BVH_BUILDER=1(the title's own ray tracing, stand-in offcrates/leonida-gpu/src/ambient.rs:151) leaves it unchanged, so it is not what the rays find.LEONIDA_PORT_DESCRIPTORS=0changes nothing.CS_ClusterLightsWorldSpace(d3e5b737ea7cc150, 2),CS_FinalGather_0_1_1_0(2dc364df5d3278b8, 3),CS_FinalGather_1_1_1_0(940c2635dc1312f4, 3) andCS_Tiling_Generate_Opaque(2cc4c197ee29e291, 3).Not measured
Impact
Every light in the world goes out once the camera is close enough for it to cover a visible area; from a distance the same view is fine, which is why it reads as "the light goes out as you approach".
Captures and logs stay on the machine that produced them, per
docs/linux_d3d12.md; the frames above are our own renders (no game content). AI-assisted: diagnosis and capture analysis with Mistral Vibe (agent), on the machine and driver above.Correction to the section "Not measured": the captures did contain the steady dark frame, and the extinction is measured. I had only sampled a few frames and wrongly reported that no captured frame shows it. It is frames 4067 -> 4068, one frame apart, same camera, same pole.
The extinction
A red lamp on a utility pole, region around it, frames 4067 -> 4068. Everything else in that region is stable to 0.004:
0xe249b01f00R9G9B9E50xdfff2110000xe24cd0be00It reaches exactly zero, not a lower value: the light is gone from that target, in one frame, with no return.
The writers and the readers swap members wholesale
0xe249b01f00and its twin0xe249b01e00are two 1280x720R9G9B9E5textures. Between the two frames their roles are exchanged:71883e40620a567a(s1+128,s1+144),34fb51b8a0312e82(s1+152,s1+200), and a third record (s1+40,s1+48) — all into…1f00…1e00(71883e40620a567a,s1+80)dce085c07b9414b6writes…1f00(s1+40,s1+48)…1e00:2dc364df5d3278b8,940c2635dc1312f4(the twoCS_FinalGather),71883e40620a567a,dce085c07b9414b6,63381c3250b287fa,6d7fe7745ab9c6d8,7168dd781ca7efb9The frame where the readers bind
…1e00is the frame where…1f00stops being written by the resolves and the light goes to zero in it.dce085c07b9414b6writes whichever member the resolves are not writing, in both frames.The same quartet in a different run, a different address pair
In an earlier run the same four programs show the same wholesale swap on a different pair,
0xfde97d1700/0xfde97d1800(frames 3384 / 3385, group 3383-3386), with each member empty on the frame the other is written: 0.01153 / 0.00001 / 0.01126 and 0.00001 / 0.00894 / 0.00001. So the pattern reproduces across runs and across resource addresses — it is the schedule, not one resource.What is still not observed
Which heap slot each reader binds, and whether the index it uses follows the parity of the frame. The operations list records descriptor tables and root views, not the heap slot a bindless read goes through — that is the one link between "the roles swap" and "the light goes out".
The rest of the report stands: the stand-in family, the ray-traced path (
LEONIDA_BVH_BUILDER=1) andLEONIDA_PORT_DESCRIPTORS=0all leave the symptom unchanged; no light-related pass is dropped.Where it happens. Straight out of Jason's house in chapter one: the crossing at the end of that street, the lamp on the pole and its pool on the road. Nothing special has to be done — walk down that street and the light goes out before you reach it, and comes back if you step back up it.
The two screenshots are captured frames, bit for bit. They match two frames of the capture above with a mean absolute difference of 0.0:
Both frames have their full target dumps on disk (the
frame-3100-*andframe-3323-*files), so the comparison this report describes can be replayed from exactly these two frames rather than taken on trust.One more negative result, and the aliased-view path is where this report stops.
The aliased-view transfer is not the cause
The light's targets come in two families, 0x100 apart, and both alternate between the two frames:
0xe249b01d00,0xe249b01e00R32_UINT(f87)f0c91b4d2578f5bf(s1+24)0xe249b01f00,0xe249b02000R9G9B9E5(f42)71883e40620a567a(s1+128,s1+144),34fb51b8a0312e82(s1+152,s1+200),6fad2980c2774c90(s1+40,s1+48)That is the montage
d3d12/docs/findings.mddescribes for this title — anR9G9B9E5view placed over anR32_UINTtexture the compute programs write — and the two families swap member in the same frame. Note also thatf0c91b4d2578f5bfwrites0xdfff211000(f10), the second target whose region dims with the lamp: 0.055 -> 0.008.Run:
LEONIDA_AB=5,LEONIDA_ALIAS_CAST— no change to the symptom.That run is meaningful rather than inert, and the code says why:
alias_cast()reads throughcrate::toggled!per call (crates/leonida-gpu/src/texture.rs:313-320), soLEONIDA_ABreaches it at run time;descriptor/host.rs:286-290(last_cast_on) exists precisely to remake a view heap's placedR9G9B9E5slots whenLEONIDA_ABflips the switch;resource.rs:1752(cast_alias_of) returnsNoneand the copy path runs (alias_direct,=1fromscripts/play-linux.sh:265,texture.rs:273-289).So in a single run both transfer paths were exercised — in place, and the copy — and neither changes the picture.
LEONIDA_ALIAS_CAST=0as a whole-run setting would add nothing this run did not already cover.Where it narrows to
Both paths share the same decision about which resource a read reaches. If that decision is wrong, turning either transfer path off cannot help — which is what is measured. The remaining question is therefore no longer how the texel travels but which texture the binding lands on.
The operations list cannot answer it: it records descriptor tables and root views, not the heap slot a bindless read resolves through. Two frames would settle it with a
tracing::debug!at the point a slot resolves (descriptor/host.rs,view_at), compared onframe-4067andframe-4068: does the index follow the frame's parity, or is it fixed.Every negative result so far, each a run on the machine above
LEONIDA_AMBIENT_FLOOR,LEONIDA_AMBIENT_NEAR,LEONIDA_AMBIENT_AIR, and the stand-in by turns (LEONIDA_AB=5,LEONIDA_AMBIENT_ON);LEONIDA_BVH_BUILDER=1(the title's own ray tracing);LEONIDA_PORT_DESCRIPTORS=0;LEONIDA_ALIAS_CASTby turns (both paths, above);LEONIDA_*setting has moved the symptom by any amount.This report stops here: the reporter is not running further tests, and the next step needs code rather than a setting — the slot-resolution print above, or a maintainer reading
descriptor/host.rsanddraw.rswith these two frames.Triage Notes
What we've established so far:
b9fbb7b0a) was onintegration/upstream-pendingand was not checked againstmain.What we still need from you (@ajussak):
mainusing the stated route and Series S profile? Please report the tested commit and whether the effect remains; no screenshots, dumps, or game files are needed.