GPU test: runtime ctest under Wine 10.0 on Linux (GTX 1050 Ti, NVIDIA 555.58, Parrot/Debian 13) — 92% pass at 3aa97542, 3 hangs classified #1150
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#1150
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?
Setup: Parrot Linux (Debian 13 base), real Plasma X11 session, Intel UHD 630 + GTX 1050 Ti (NVIDIA 555.58; the layer picks the 1050 Ti), Wine 10.0 (
10.0~repack-6),WINEPREFIXdedicated, cross-build clang-cl 21.1.8 + lld-link 21 + SDK 10.0.26100 (xwin 0.10.0). No game files at any point. AI-assisted runs; commands below are byte-for-byte what I ran.Two full baselines, one day apart
5d74c2723aa97542The
5d74c272..3aa97542wave added 32 tests and: fixedxdxr_build_check(was hanging, now passes), turnedd3d12_dxr_validation_khrinto a skip, and healedd3d12_depth_resolve— but brought 10 new failures on this rig (root_sig, xmem, bcrypt_rng + bcrypt_rng_seeded, dstorage, vk_device_filter_tools, d3d12_existing_heap, d3d12_xmem_placed, dxgi_host_parity, dxgi_waitable_latency).Run:
WINEPREFIX="$HOME/.local/share/leonida-wine" ctest --test-dir runtime/build/windows --timeout 120(the--timeoutvalve matters — see the hangs).The 24 failures at
3aa97542, classifiedRuntime bugs (our code), reproduced twice (5d74c272 and 3aa97542):
d3d12_buffer_tiles,d3d12_texture_tiles— hang: the layer refuses the firstUpdateTileMappings("sparse residency unavailable") while the standalone probedevice_sparse_buffer_tiles()accepts, EXPECT fails, and teardown deadlocks on the still-blocked queue (queue->Wait(gate, 1)). Filed on #14.dxgi_host_parity,dxgi_waitable_latency— page fault on write to 0x0 in our 64-bit code; under Wine the attached winedbg turns the crash into a hang.HKCU\Software\Wine\WineDbgShowCrashDialog=0in the prefix converts them to clean ~5 s failures. Filed on #14.root_sig—FAIL shim deserializer accepts an all-zero-checksum Xbox blob with the high byte cleared; new test in the wave; a Windows cross-check would confirm it is ours (likely) vs host-serialization chained.Wine host limits (Windows semantics our tests expect, Wine's host DLLs don't provide):
xmem— 5/217 checks, all Windows virtual-memory semantics (protection windows, page charging, read-only faults). New test.file_system— hostReadFileinto uncommitted pages doesn't failERROR_NO_ACCESSunder Wine.bcrypt_rng,bcrypt_rng_seeded— unknown-algorithm probe expectsSTATUS_NOT_FOUND; the shim delegates to Wine's bcrypt, which answers differently.d3d12_clear,d3d12_clear_formats— "WARP reference unavailable: differential test cannot run" → fail rather than skip; no WARP under Wine/Proton (the dxgi answers hardware instead — the documented Proton caveat).Host-comparison family (the documented Wine/Proton one; compared against Wine's vkd3d/dxgi here):
d3d12_vulkan_device,d3d12_fence_timing,d3d12_residency,d3d12_heap_properties(MISMATCH ours 0xc0 host 0x0),dxgi_swapchain(CreateSwapChainForHwnd … ours 0x887a0001, host 0x00000000),d3d12_subresource_copy,d3d12_r9g9b9e5_uav,d3d12_indirect_dispatch_count.Test tooling on Linux/Wine:
vk_device_filter_tools—runtime/test/check_device_filter_tools.pyruns as host python and launchesvk_descriptor_bench.exedirectly →OSError: [Errno 8] Exec format error; it never goes through Wine. Filed on #14.run_startup_cmdline— the native startup command line fails (tiny_startup_cmdline: FAIL); the known Wine init-message issue (the pre-migration PR that fixed it did not survive the repo move).dstorage— timeout with no further output after theOpenFile: null or empty pathprobe; not yet classified (needs a targeted WINEDEBUG session).d3d12_existing_heap,d3d12_xmem_placed— new tests in the wave; E_INVALIDARG/heap-placement related, not yet classified.Reproduction budget
Build ~13 min (cmake +
cmake --build --parallel 8), full suite ~16-19 min with--timeout 120(about 3 extra minutes consumed by the five hangs at 120 s each; halve the ctest--timeoutto cut that).Happy to run any targeted follow-up (WINEDEBUG on dstorage, a
-Rsubset, the winedbg registry tweak) — comment here or on #14.Thanks @PierreEbele for the detailed testing report and for separating runtime bugs from Wine compatibility issues.
One actionable item that caught my attention is vk_device_filter_tools, where the Python test helper attempts to execute a Windows .exe directly on Linux.
Would it make sense to update the test helper to detect the target executable format and invoke it through Wine when appropriate, while preserving native execution on Windows?
I could help investigate this as a focused cross-platform CI/test-runner improvement, without requiring game assets.
Before starting, I’d like to confirm whether anyone is already working on this particular issue to avoid duplicate efforts.
Native Windows 10 cross-check on the same GPU model, to separate our bugs from Wine's host limits.
Rig: Windows 10 Pro 19045 (no Wine), Intel i7-2600 + NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Vulkan device 1.4.312. MSVC 19.44/x64,
cmake --build --parallel 4,ctest --timeout 120, commit58be9cdf(main today). 308 tests configured, 307 run, 1 disabled. Nothing of the game at any point.Result: 279 passed, 47 skipped, 11 failed — 96%, 452 s. No ctest hang at all.
19 of your 24 failures pass natively
They are host limits, not our code:
xmem,file_system,bcrypt_rng,bcrypt_rng_seeded,d3d12_clear,d3d12_clear_formats,dxgi_swapchain,dstorage,run_startup_cmdline,vk_device_filter_tools,root_sig,d3d12_residency,d3d12_fence_timing,d3d12_indirect_dispatch_count,d3d12_xmem_placed, and the four hangsd3d12_buffer_tiles,d3d12_texture_tiles,dxgi_host_parity,dxgi_waitable_latency.So
root_sigwas Wine's chained serialization, as you guessed;dstoragewas not our timeout; the WARP-family failing instead of skipping and the sparse-residency deadlock do not reproduce.5 do reproduce without Wine (ours)
d3d12_vulkan_device,d3d12_subresource_copy,d3d12_heap_properties(ours0x8007000evs host0x0),d3d12_existing_heap(placed resource in an existing heap unsupported),d3d12_r9g9b9e5_uav(falls back to R32_UINT, thenGetResourceAllocationInfodoes not know the format).5 that only fail here, all deterministic 3/3
d3d12_subgroup— SEGFAULT, 1.4 s, afterdevice slot 16 (CreateRootSignature).d3d12_set_descriptor_heaps—CHECK failed: !blob.empty()(line 341).d3d12_close_parity— steps differ from the host from the third case on.d3d12_pso_validation— a run of depth-stencil formats logged "not supported" (9999, 39, 53, 44, 19, 28, 41).xdxr_build_check— not a hang: it passes in 212 s with--timeout 400. The 120 s valve is just too short for a DXR build on a 4 GB Pascal card; you passed it under Wine because the path there differs.The first three were reproduced three times each with
--repeat until-fail:3.Happy to take any of the five on.
d3d12_subgroup's crash is the cheapest to chase and would be a hard failure the one-second tests never hit.Yes to the shape you describe, and nobody has it: I just claimed it as
VK-DEVICE-FILTER-WINEin #14.What I will do, since the split matters more than the detection:
runtime/test/check_device_filter_tools.pygets one helper that returns the prefix to run a tool with --[]on Windows and for a non-PE,winewhen the target starts withMZon a non-Windows host (LEONIDA_WINEoverrides the binary name). If the host is not Windows and wine is not installed, the script exits 77 withwine not foundinstead of pretending the tool failed. Native Windows behaviour is unchanged.A unit test covers the choice itself with a fake
MZfile and a stubbed lookup, so the branch is exercised on Windows CI too, where no wine exists.One data point for the priority: this test passes on native Windows 10, so it is purely a runner bug, not a tool bug -- the tools are right to be Windows executables.
Implemented as #1219, in the shape you proposed: launcher() returns []\ on Windows (and for a non-PE), \wine\ for a PE on any other host, LEONIDA_WINE to name another loader. Two tools, not just the devicer that lists, and 77 with \SKIP: ... is not on PATH\ when there is no loader, so a Linux run without wine stops being a failure. Seven unit tests, native behaviour verified unchanged against both real tools.
Nice, that was quick! The launcher approach makes sense, especially handling missing Wine as a skip instead of a test failure.
I noticed the actual Wine run is still untested. Happy to help review that side or check for any Linux edge cases if needed. Thanks for picking this up!
Closing this issue because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the report/contribution! If you believe this issue was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.