RT-STATE-AUDIT-FORMATS: quantize 16-bit packed UNORM and rgba4 fallback clears #2479
Closed
lixonik wants to merge 4 commits from
upstream-pr/2479 into main
pull from: upstream-pr/2479
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!2479
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2479"
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 lixonik on 2026-11-27T16:18:24Z.
Part of
RT-STATE-AUDIT-FORMATS(#2464; based on the format-state audit notes in #1608 by@kevincommitsand@Tauwni).Summary
VK_FORMAT_A1R5G5B5_UNORM_PACK16,VK_FORMAT_A4R4G4B4_UNORM_PACK16,VK_FORMAT_R4G4B4A4_UNORM_PACK16, andVK_FORMAT_A4B4G4R4_UNORM_PACK16todetail::render_target_clear_colorinruntime/src/vulkan_replay.hso 16-bit packed UNORM clears follow D3D12 round-to-nearest-even, clamp, andNaN -> 0rules across GPUs (VK_FORMAT_R5G6B5_UNORM_PACK16is intentionally left untouched to avoid overlapping #2268).std::nearbyint(std::clamp(channel, 0.0f, 1.0f) * 15.0f) / 15.0fin thergba4_render_fallbackclear path (runtime/src/vulkan_replay.h) withdetail::quantize_unorm(channel, 15.0)so 4-bit tie rounding andNaNhandling do not depend on the thread's active floating-point rounding mode.Tests
runtime/test/clear_color_test.cpp: added 16-bit packed UNORM clear quantization cases (A1R5G5B5,A4R4G4B4,R4G4B4A4,A4B4G4R4) andrgba4_render_fallbackreplay coverage underFE_DOWNWARD,FE_UPWARD, andFE_TOWARDZERO(full + rectangular clears, tie/clamp/NaN, includingVK_FORMAT_UNDEFINED).runtime/test/d3d12_b4g4r4a4_target_test.cpp: clear{0.5f, -1.0f, 2.0f, NaN}underFE_DOWNWARDand verify RGBA8 readback{0x88, 0x00, 0xFF, 0x00}(skips with 77 on GPUs with nativeA4R4G4B4color attachment support).runtime/test/d3d12_clear_formats_test.cpp: addedB5G5R5A1_UNORMandA4B4G4R4_UNORMdifferential WARP cases.Negative control & verification
main(ec91d695c):clear_color_testfailed onA1R5G5B5(got 0.5, expected 0.516129017).d3d12_b4g4r4a4_target_testfailed on RTX 5070 underFE_DOWNWARD(texel (8, 4) = 77 00 ff 00, want 88 00 ff 00).d3d12_clear_formats_testfailed on RTX 5070 vs WARP on 4B5G5R5A1_UNORMcases (layer 0f, WARP 10andlayer ef, WARP f0).ctest -R "^(clear_color|d3d12_b4g4r4a4_target|d3d12_b5g5r5a1_uav|d3d12_clear_formats)$": 4/4 passed.python scripts/check_no_game_data.py: clean.python -m unittest tests/test_ctest_registration.py: 6/6 OK.git diff --check: clean.GPUs tested: NVIDIA GeForce RTX 5070 (Windows 11, native Vulkan + WARP;
VK_LAYER_KHRONOS_validationnot installed locally).AI-assisted (Antigravity, Gemini).
Independent RTX 3080 Vulkan validation: all three focused CTests passed, including the RGBA8 fallback and the nonzero green outside the rect. Test report.
Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-27T17:36:20Z.
Independent Linux/Wine + NVIDIA RTX 3070 Ti review/test at
e7d11f0da(merged cleanly onorigin/mainc0201a806,wine-11.22, NVIDIA620.73.04). AI-assisted.render_target_clear_coloradds 16-bit packed UNORM quantization (A1R5G5B5,A4R4G4B4,R4G4B4A4,A4B4G4R4), andrgba4_render_fallbackswitches fromstd::nearbyinttodetail::quantize_unorm(channel, 15.0)so clears are independent of FP rounding mode.clear_color(native Linux build): PASSED (including all FP rounding modes andrgba4_render_fallback).d3d12_b4g4r4a4_target(Wine/Vulkan RTX 3070 Ti): PASSED (RGBA8 image, render-target clears 64x32 matched, SRV T# format 136, 0 validation errors, including theFE_DOWNWARDclear test).d3d12_clear_formatscompiled and ran on Wine/RTX 3070 Ti (0 failed, 0 in formats the layer does not expose); host WARP comparison differs under Wine because Wine's D3D12 is not Microsoft WARP.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T18:40:53Z.
Tested for #2464 as Aslanek asked: unit tests and a game run on my machine; CI ignored for now as asked.
Reading (marked):
Limits: one machine, one run for the PR, one run for each main witness.
AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T19:49:09Z.
Follow-up to my RUN above: the check on main is now done. Each of the three tests, built from this PR's test files on top of main ec91d695c's sources, fails on main and passes with the PR:
Same machine as above (RTX 4060 8 GB, NVIDIA 610.88, Windows 11). One correction to the RUN above: on main with this exact recipe the world entry was 195 and 200 s (two runs), not "about 165 to 200 s"; the 165-175 s runs had one setting changed. The rest of the RUN is unchanged.
AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by Tauwni on 2026-11-27T20:11:07Z.
Tested on a Mac under Wine (Apple M3, macOS 26.5.1, Wine 11.0 with its MoltenVK 1.4.1), merged onto
main43a9d562d. Profile S, no game files. (MEASURED, 1 run each)maind3d12_b4g4r4a4_targetline 213: wrong == 0)clear_colorformat 8 rect 0 channel 0: got 0.5, expected 0.516129017)d3d12_clear_formatsd3d12_clear_formatsalso fails on plainmainhere: it needs WARP as its reference (WARP reference unavailable: differential test cannot run), which Wine lacks. Not this PR.This matters on Macs in particular: MoltenVK has no A4R4G4B4 colour attachment, so
rgba4_render_fallbackis the path every Mac takes.AI-assisted (Claude Code). Report only.
Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-28T02:02:11Z.
Reviewed at head
e7d11f0daon Windows 11 (MSVC 202219.44) with dual-GPU Vulkan validation (LEONIDA_VK_VALIDATION=1, Vulkan SDK1.4.363.0).Verification
clear_color_test,d3d12_b4g4r4a4_target_test, andd3d12_clear_formats_test.clear_color_test: 525 checks passed.d3d12_clear_formats_test(LEONIDA_VK_VALIDATION=1): passed with 0 validation errors on both NVIDIA GeForce RTX 5080 (616.64) and AMD Radeon(TM) Graphics (25.10.30.02).d3d12_b4g4r4a4_target_test(LEONIDA_VK_VALIDATION=1): passed on RTX 5080 (RGBA8 fallback exercised, 0 validation errors); skipped (77) on AMD Radeon (nativeA4R4G4B4attachment).Notes (non-blocking)
VkClearColorValue), NaN/Inf clamping, and directed-rounding quantization for the RGBA8 fallback (vulkan_replay.h:1550-1567,1637-1653,4862-4894) all look right.vulkan_replay.h:1637-1653):DXGI_FORMAT_B5G6R5_UNORM(VK_FORMAT_R5G6B5_UNORM_PACK16) is also an exposed 16-bit packed UNORM RTV (d3d12_vulkan_device.cpp:2335-2338) and still falls through to driver rounding; fine as a follow-up if covering all 16-bit packed UNORM RTVs.Approve.
AI-assisted review + local MSVC/dual-GPU verification.
Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-28T14:36:52Z.
Review: COMMENTED
Static code audit against
e7d11f0da+ec740bcc3. The packed clear conversion and the shared color payload for full and rectangular clears look correct.Both regions now expect green
0x00, so a fallback that always writes zero to green passes (runtime/test/d3d12_b4g4r4a4_target_test.cpp:205). Could the outside clear use green10.0f / 15.0fand expect0xAAthere? That preserves a nonzero green readback alongside the new negative clamp, tie, and NaN checks.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T15:44:28Z.
@timbot103 Good catch.
8f45eda7duses10.0f / 15.0fgreen outside the rect and checks for0xAA. The inside still checks negative green clamping to zero, the red tie, blue clamping and NaN alpha.d3d12_b4g4r4a4_target,d3d12_clear_formatsandclear_colorall passed on Windows 11 with MSVC and RTX 5070 (610.88).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by Maticcm on 2026-11-28T20:55:49Z.
Independent RTX 3080 verification at exact
8f45eda7dbbf091a63ff8732e18a8b191a82e1b8and parente7d11f0da41ea971af3627be077c998a9481c915. Native Windows 11 build 26340, NVIDIA driver 630.20, 10 GiB, MSVC 19.50.35717 RelWithDebInfo, Vulkan SDK 1.4.363.1 with Khronos validation.All three focused CTests passed on both revisions (
clear_color,d3d12_clear_formats,d3d12_b4g4r4a4_target) without skips. On the exact head, the 4444 render target used the RGBA8 fallback and all 64×32 pixels matched, including the new nonzero green0xAAoutside the clear rectangle. The format suite reported 261 WARP matches, zero differing or failed clears, and five checks for formats the layer does not expose. The fallback fixture reported zero Vulkan validation errors.Synthetic fixtures. AI-assisted (Codex).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T02:42:28Z.
Windows 11 + RTX 3090 + WARP Verification (
8f45eda7dbmerged withmainc8bf0e7b65) — PASS10.0.26200), MSVC19.44.35207(/O2 /MD /EHsc /std:c++20 /W4 /permissive- /utf-8), NVIDIA GeForce RTX 3090 (610.88) + Microsoft WARP +VK_LAYER_KHRONOS_validation1.4.363.1(LEONIDA_VK_VALIDATION=1).git merge-treeontomain(c8bf0e7b65) (0conflicts);python -I scripts/check_no_game_data.pyrc=0;0new/W4warnings.clear_color_test.cppcompiled againstmainruntime/src/vulkan_replay.h): fails withrc=1(normalised clear: format 8 rect 0 channel 0: got 0.5, expected 0.516129017).d3d12_b4g4r4a4_target_test.cpplinked againstmainon NVIDIA GeForce RTX 3090 underFE_DOWNWARD): fails withrc=1(texel (11, 4) = 77 00 ff 00, want 88 00 ff 00becausestd::nearbyintrounded0.5 * 15downward to7instead of8).8f45eda7db+mainc8bf0e7b65):clear_color_test.exe:rc=0(525 full/rectangle integer, normalised and float replay checks passedacrossFE_DOWNWARD,FE_UPWARD,FE_TOWARDZERO, out-of-range, andNaNinputs).d3d12_b4g4r4a4_target_test.exeon NVIDIA GeForce RTX 3090:rc=0(OK (RGBA8 image, render-target clears 64x32 matched, SRV T# format 136, 0 validation errors)).d3d12_clear_formats_test.exeon NVIDIA GeForce RTX 3090 + WARP:rc=0(clears: 261 matched WARP, 0 differ, 0 failed,0VUID-validation errors).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T05:47:14Z.
Verified by OreoFR — READY
c8bf0e7b6+ this PR (head8f45eda7d) merged with --no-ffclear_color: line 213,wrong == 0, because the PACK16 rows are not quantized.d3d12_clear_formats:got 0.5, expected 0.516129017on format 8, and 4 clears differ from WARP.d3d12_b4g4r4a4_targetfails as well.LEONIDA_CARGO=OFF,LEONIDA_XMA2_DECODER_LIBempty), main + this PR alone; imports unchanged vs main (25 DLLs, 655 functions, no WS2_32)AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-29T15:57:12Z.
Merged
main(1d3da5ebc7) asaa1752225fto resolve theruntime/src/vulkan_replay.hconflict with #778 (d3d-sample-positions), keepingactive_samplesindetail::initialize(...)alongsidedetail::quantize_unorm(channel, 15.0).Local verification (Windows 11, MSVC 19.44, RTX 5070,
LEONIDA_VK_VALIDATION=1,VK_VALIDATE_SYNC=1):ctest --output-on-failure -R "^(clear_color|d3d12_clear_formats|d3d12_b4g4r4a4_target)$": 3/3 passed.python -I scripts/check_no_game_data.py: passed.AI-assisted (Antigravity, Gemini).
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T21:06:28Z.
Verified by OreoFR (re-run at the new head after the main merge)
aa1752225merged with--no-ffonto main0e8737f2a; the PR's files are unchanged on main up to7bbc1d223, and the PR still merges cleanly thereLEONIDA_CARGO=OFFruntime/src/vulkan_replay.hrestored to main, so only the PR's tests are new): 3 of 3 failclear_color:format 8 rect 0 channel 0: got 0.5, expected 0.516129017d3d12_b4g4r4a4_target: line 213,wrong == 0(texels77where88is expected)d3d12_clear_formats: 599 clears match WARP, 4 differclear_color,d3d12_clear_formats,d3d12_b4g4r4a4_target)loaderandxbox_presentfail on main tood3d12_queue_wait_timeout(a 10 s timeout control) timed out twice while other builds were loading the machine, then passed 9 of 9 re-runs alone. The PR does not touch the queue wait path, so I count it as load-sensitive, not a regression.gta6rt.exeimports the same 25 DLLs as the main-side build, with no WS2_32. The only difference is one fewer CRT function:nearbyintfis no longer imported.cfd12b24f)8f45eda7dand with the author's run at this head.Ready to merge per the maintainers' plan.
This verification was AI-assisted (Claude Code, oreofr-agent).
Imported from ubiquitarianism/leonida. Originally posted by ammonium231 on 2026-11-30T13:43:43Z.
RTX 3090 / 621.40, validation on,
aa1752225merged onto mainf9f3ec4c6: clear_color_test 577 pass (main 567); d3d12_clear_formats_test 603 match WARP, 0 differ (main 598); b4g4r4a4 OK. No validation errors.Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:45:10Z.
Closing this PR 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 contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.Pull request closed