d3d12-gpu: castable R9G9B9E5 views over R32_UINT/SINT textures without copying (D3D12-ALIAS-CAST-R9G9B9E5) #2660
Closed
zmasi wants to merge 12 commits from
upstream-pr/2660 into main
pull from: upstream-pr/2660
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Reference
ProjectLeonida/mandy!2660
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2660"
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?
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T23:56:20Z.
Claimed in the coordination issue as: D3D12-ALIAS-CAST-R9G9B9E5 (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7249716729, https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7264381245)
What and why
Eliminates the per-frame GPU copy and duplicate VRAM cost of
DXGI_FORMAT_R9G9B9E5_SHAREDEXP(67) shader views placed in the memory of shader-writtenDXGI_FORMAT_R32_UINT(42) andDXGI_FORMAT_R32_SINT(43) textures (d3d12/docs/findings.md"Aliased views of GPU-written textures:R9G9B9E5overR32_UINT" and "Open: the copies behind aliased views could go"):86reads,~390-395.6 MiB/frameacross radiance/reflection/fog targets, 4-mip probe atlases, and 6-face sky cubes) areR9G9B9E5SRVs placed over shader-writtenR32_UINTtextures because console shaders packRGB9E5manually forRWTexturestores whileD3D12_RESOURCE_DESCputsR32_UINTandR9G9B9E5_SHAREDEXPin different legacy typeless families.R9G9B9E5HostTexture(directly whenLEONIDA_ALIAS_DIRECT=1or through an intermediate staging buffer whenLEONIDA_ALIAS_DIRECT=0), costing1.6-3.6 ms/frameof GPU copy time plus duplicate texture and staging-buffer VRAM.Castable
R32_UINT/R32_SINTDefault-heap committed and placed texture creation (texture.rs,pool.rs,resource.rs):D3D12_FEATURE_D3D12_OPTIONS12(EnhancedBarriersSupported && RelaxedFormatCastingSupported) viaID3D12Device10(texture::relaxed_format_casting/texture::castable_r9g9b9e5, cached per adapter LUID without touchinghost.rs).R32_UINTandR32_SINT1D/2D/3D/array textures via bothID3D12Device10::CreateCommittedResource3(create_committed_r9g9b9e5_or_legacy) andID3D12Device10::CreatePlacedResource2(pool::texture_with_cast+create_placed_r9g9b9e5_or_legacywithID3D12Device12::GetResourceAllocationInfo3sizing/alignment) usingD3D12_BARRIER_LAYOUT_COMMON(HostTextureinitial state0 = COMMON) andpCastableFormats = &[DXGI_FORMAT_R9G9B9E5_SHAREDEXP], preserving legacyD3D12_RESOURCE_STATEStransitions (ResourceBarrier) everywhere else and falling back cleanly toCreateCommittedResource/CreatePlacedResourcewhen unavailable or refused.LEONIDA_ALIAS_CAST(default on;LEONIDA_ALIAS_CAST=0restores the copy path;LEONIDA_ABcan switchLEONIDA_ALIAS_CASTlive atPresent).Zero-copy in-place
R9G9B9E5SRV creation & stale-descriptor invalidation (descriptor/host.rs,resource.rs,draw.rs):make_twinned_infocreatesDXGI_FORMAT_R9G9B9E5_SHAREDEXPSRVs (including defaultNone/DXGI_FORMAT_UNKNOWN, 2D mip-range, 2D array,TextureCube, and 3D volume views viar9g9b9e5_srv_desc) directly on&source_copy.texture, skipping allocation ofplaced's duplicateHostTextureandThroughstaging buffer.HostTexture::serialinHostHeap::cast_serials,HostHeap::last_cast_on,ListViews::cast_serials,State::tablesfresh_tableskeys (table_r9g9b9e5_views), andStateentry_onceRecordHashkeys, plusTARGETS_CHANGED+levels_changednotifications onTARGETS_ATinsert/drop, so mid-frame or mid-list console virtual-address reuse and liveLEONIDA_ABflips invalidate cached static and dynamic SRVs immediately (and failed stale rebuilds inmake_listedoverwrites0withnull_forand returnNonewhile staying retryable).Same-pass UAV/RTV write + aliased SRV read hazard fallback (
draw.rs):WRITTEN_CAST_SOURCES(State::bindRAII guard, covering both direct andgroup.indexedentries with heap/alignment/bounds checks).source(e.g.mip m+1UAV) and samples a placedR9G9B9E5view ofsource(e.g.mip mSRV),State::tablesroutes that pass through dynamic table slots andplaced's separate copy so whole-resource legacy barriers keepsourceinUNORDERED_ACCESS/RENDER_TARGETandplacedinSHADER_RESOURCE, resuming zero-copy casting on subsequent read-only passes.Tested
--releaseD3D12 timestamp & VRAM benchmark (59views,86reads =395.6 MiB/frame,30measured frames after5warmup frames):cargo test --manifest-path d3d12/Cargo.toml --release -p leonida-gpu waterside_alias_cast_vs_copy_gpu_benchmark -- --ignored --nocapture --test-threads=1:castable-zero-copy (CAST=1):gpu_mean = 0.178 ms,gpu_median = 0.175 ms,cpu_record_median = 214.2 us,copies/frame = 0,dup_tex_vram = 0.0 MiB,stage_buf_vram = 0.0 MiB,extra_vram = 0.0 MiBcopy-direct-texture (CAST=0, DIRECT=1):gpu_mean = 1.115 ms,gpu_median = 1.063 ms(6.1xslower GPU,-0.888 ms/framemedian saved),cpu_record_median = 472.4 us(2.2xslower CPU),copies/frame = 86,extra_vram = 260.5 MiBcopy-through-buffer (CAST=0, DIRECT=0):gpu_mean = 2.417 ms,gpu_median = 2.212 ms(12.6xslower GPU,-2.037 ms/framemedian saved),cpu_record_median = 1009.8 us(4.7xslower CPU),copies/frame = 86,dup_tex_vram = 260.5 MiB,stage_buf_vram = 255.2 MiB,extra_vram = 515.7 MiB0diff lines inhost.rs):LEONIDA_D3D12_DEBUG=1 cargo test --manifest-path d3d12/Cargo.toml -p leonida-gpu --features diagnostics --lib alias -- --test-threads=4->10 passed; 0 failed; 1 ignoredwith0D3D12 debug-layer errors:committed_and_placed_r32_uint_textures_cast_to_r9g9b9e5_under_legacy_barriers(verifies bothCreateCommittedResource3andCreatePlacedResource2viapool::texture_with_cast+GetResourceAllocationInfo3and direct non-zero-offsetID3D12Heapplacement across 2D 2-mip, 2D 3-slice array, and 3D8x8x4R32_UINTtextures starting inD3D12_BARRIER_LAYOUT_COMMON, written via UAV, transitioned with legacyD3D12_RESOURCE_STATESbarriers, and sampled viaDXGI_FORMAT_R9G9B9E5_SHAREDEXPSRVs with0alias copies)make_listed_stale_rebuild_flushes_batched_copies_before_overwrite(verifiesHostHeap::make_listedflushes deferredLISTED_COPIESbefore overwritingviews.slot(at)on mid-table VA reuse)castable_r9g9b9e5_views_sample_written_r32_uint_and_sint_without_copying(2DR32_UINT&R32_SINT,DXGI_FORMAT_UNKNOWNdefault SRV, 4-mip probe atlas, 6-faceTextureCube, and 3D volume;0copies,made_copy(placed).is_none(), bit-exact match vsCAST=0)cast_alias_switches_live_and_tracks_replaced_source_at_same_addresssame_dispatch_source_uav_and_aliased_srv_falls_back_to_copy_without_state_conflictstate_tables_fresh_cache_tracks_mid_list_va_reuse_and_live_cast_flipresource::tests::*alias*(4/4),a_texture_made_where_nothing_lay_is_found_by_the_quick_way,partial_tests,pool::tests, andbook::tests(3/3) all passed.cargo clippy --manifest-path d3d12/Cargo.toml -p leonida-gpu --tests&--features diagnostics --tests, pluscargo check --manifest-path d3d12/Cargo.toml -p leonida --features diagnostics->0warnings in all new/modified code.python -I scripts/check_no_game_data.py-> clean (0issues).GPUs tested: NVIDIA GeForce RTX 3090, driver 610.88, Windows 11 Pro (26200)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T00:14:49Z.
Independent Wine A/B of the alias-cast tests on
fdfe5ccbf(GitHub mergedb94e6ab5). Same Win64 test binary and prefix, Wine 11.22 with VKD3D-Proton71cae091, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1).d3dcompiler_47, all six tests failed in each of three runs per GPU.D3DCompilereturned successfully, thenCreateRootSignaturerejected the resulting shader blob withE_FAILattexture.rs:3848, before PSO creation.d3dcompiler_4710.0.17134.12 selected viaWINEDLLOVERRIDES, all six passed in each of three runs per GPU. That includes the live UINT/SINT views, committed and placed textures under legacy barriers, and the same-dispatch copy fallback. The ignored benchmark stayed ignored.Synthetic fixtures only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-30T00:28:06Z.
Thanks for running the dual-GPU Wine A/B across RTX 4070 SUPER and Radeon Raphael!
Wine's builtin
d3dcompiler_47(vkd3d-shader) drops HLSL[RootSignature(...)]attributes instead of emitting anRTS0DXBC chunk, which is why passing the shader bytecode straight toCreateRootSignaturereturnedE_FAIL. Pushedf9d9312241updatingalias_cast_tests(texture.rstest module only) to serialize each test'sD3D12_ROOT_SIGNATURE_DESCexplicitly viaD3D12SerializeRootSignature(D3D_ROOT_SIGNATURE_VERSION_1) so the suite runs without needing a natived3dcompiler_47override (10/10passing withLEONIDA_D3D12_DEBUG=1).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by ItsYusei99 on 2026-11-30T00:29:00Z.
RUN: an in-game test on Windows, AI-assisted (Claude).
Setup:
mainat452d1d1b6plus this PR's diff (headfdfe5ccbf), applied withgit apply --3waywithout conflicts; diag profile with DLSS.Log, with
LEONIDA_ALIAS_CASTat its default:No device removed, no panic.
Picture: open sea from a boat in daylight, plus the area around a dock. The sky, clouds, sun glint, water and reflections looked normal. I saw no black or wrongly coloured patches where the radiance, fog or probe views are read. That was only a few minutes of play, and I have not yet looked at interiors or at night.
Numbers, compared with the previous build (
dd87aa405, no PR). The scenes were similar but not identical, so this is not a strict A/B:nvidia-smi)On this machine the frame is limited by the CPU: 22-28 ms a frame is spent preparing, and the GPU sits at about 73 %. So the copy time saved shows up mostly as less VRAM and GPU work, not as fps. An A/B with
LEONIDA_ALIAS_CAST=0on the same build and save would give a cleaner number. I haven't run that yet.Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-30T00:33:10Z.
Awesome live telemetry —
1,512.2aliased views/frame read in place with1.0same-pass write+read hazard caught cleanly byWRITTEN_CAST_SOURCES(-500 MBVRAM on a 12 GB card,0device removals) is great confirmation. If you want a same-scene A/B without restarting,LEONIDA_ALIAS_CASTis wired intoLEONIDA_ABso it can toggle1 <-> 0live acrossPresentphases on the same camera.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T00:38:00Z.
Same-tree Wine retest of the explicit root-signature fix
8aaf91fd9onf9d931224(GitHub merge37b30335aontob8bd37111). Wine 11.22 with VKD3D-Proton71cae091, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1). The loader trace confirmed Wine’s builtind3dcompiler_47in both arms on both GPUs.aliastests passed in each of three runs per GPU, including committed/placed castable textures and the same-dispatch copy fallback. The benchmark was ignored.8aaf91fd9on the same merge made all six tests fail in each of three runs per GPU. Each failed atCreateRootSignaturewithE_FAILafterD3DCompilesucceeded.The explicit serialization lets the fixture run with the builtin compiler on both adapters. Synthetic fixtures only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-30T01:22:50Z.
Native Windows 10 retest of
f9d93122413289069645bc9cc63bc1c4ffe98995merged locally into0eab02a8bcffbb9d1609f9c2fba40c2357513d06. Windows 10 22H2 (build 19045), RTX 5070, NVIDIA 610.88, Rust 1.98.1 MSVC, local test-executable loader exports for Agility SDK 1.614.1. Synthetic fixtures only.cargo test --locked --offline --profile diag -p leonida-gpu --features diagnostics --lib alias -- --nocapture --test-threads=1and two fresh-process reruns each reported 10 passed. The six new fixtures exercised UINT/SINT cast-versus-copy readback, live toggling and address reuse, committed and placed textures, the same-dispatch UAV conflict fallback, and descriptor re-batching.10.0.19041.7811: the adapter lacks relaxed format casting, so the six guarded casting tests returned early. The four existing alias tests passed, including the direct and staged copy cases.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-30T03:31:56Z.
Retested merge head
4a4fc668c157a967bcfaabfbc66fc5f63659da88with currentmain1d22590b9fb5c0f51a6a7c0405f1f136e0696c0dto cover the raw-twin conflict resolution indescriptor/host.rs. Windows 10 22H2 (build 19045), RTX 5070, NVIDIA 610.88, Rust 1.98.1 MSVC,--profile diag --features diagnostics, local test-executable loader exports for Agility SDK 1.614.1.LEONIDA_TWIN_BIAS=1, thealiasfilter had 10 passes anddescriptor::hosthad 53 passes. The six casting cases reached their assertions on the hardware path. The default run left the ignored microbenchmarks and descriptor probes alone.listed_off_alignment_raw_twin_readbackprobe separately withLEONIDA_RAW_VIEWS=1andLEONIDA_TWIN_BIAS=1. It stopped at the raw-twin heap prerequisite (heap.raw == 0) on both current main and main plus the PR. Coverage on this adapter includes casting, copy fallback and descriptor tests. End-to-end raw-twin readback remains unverified here.Synthetic fixtures only.
AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by ammonium231 on 2026-11-30T05:59:53Z.
RTX 3090 / 621.40, validation on,
4a4fc668cmerged onto main1d22590b9: alias tests 10 pass, 1 ignored (main 4). Release waterside bench, debug layer off, GPU median: cast 0.157 ms vs direct copy 1.125 ms (7.2x, +260.5 MiB) and copy through buffer 2.254 ms (14.4x, +515.7 MiB).Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-30T07:47:53Z.
Merged into
mainviad9a75eb8f/ce8118dfb(and measured live in6d26716aa) — closing since only the post-merge sync commit4a4fc668cremained on the branch. Thanks@ItsYusei99,@merzleckeier,@lixonik, and@ammonium231for the hardware runs!AI-assisted.
Pull request closed