runtime: LEONIDA_TITLE_PATCH, checked byte patches of the title from the environment (RT-TITLE-PATCH-ENV) #2554
Closed
4ld0-vito wants to merge 2 commits from
upstream-pr/2554 into main
pull from: upstream-pr/2554
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!2554
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2554"
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 4ld0-vito on 2026-11-28T02:17:58Z.
Claimed in the coordination issue as: RT-TITLE-PATCH-ENV (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7232261469)
What and why
gta6rt had no general way to try a patch of the title's code: the watchdog kick is the only one, with a variable of
its own.
LEONIDA_TITLE_PATCH=<rva>:<expected hex>:<new hex>(several, separated by,or+;+fits alauncher whose own list is comma-separated) rewrites places of the executable before it runs:
bytes) and the place lies inside the image;
appliedorleft alone: ...for each, and names malformed items;LEONIDA_TITLE_WATCHDOG_KICK, the values stay out of the runtime: this is the mechanism, not a list ofpatches (
runtime/src/title_patch.h).docs/running.mdgets one use, measured on NVIDIA withLEONIDA_DEVICE_TYPE=6(Series S):eight
fspx/amd_fidelityfx_upscaler_xbox_*dispatches (wave32, not emulated) at about 400 ms of GPU time perworld frame on an RTX 4070, the largest single item of the frame.
OWN_UPSCALERpatch (d3d12/crates/leonida-loader/src/hooks.rs) switches the title to itsown temporal upscaler. With that patch alone the title stops about 30 s in on its out-of-memory
int3:a title allocator over a 1,277 MiB range (FidelityFX fills it to 1,245 MiB) cannot give a 2.1 MiB block,
because the own upscaler sizes its targets for its largest scale. Traced with the fault report of the companion
pull request (RVA, registers, the allocator's vtable) and the range's fields read with
LEONIDA_PEEK.run goes on.
Tested
title_patch_test(new): parser (both separators, upper-case hex, six kinds of malformed items) and the checkedwrites into a page of executable memory (applied, protection restored, neighbours untouched, a second run refused,
past-the-end refused). 13/13.
cteston this branch (Windows 11, MSVC 2022, Ninja, RelWithDebInfo): 508 of 510 passed, 11 skipped (needthe game or a validation layer). The two failures,
xbox_present(present failed (VkResult -11)) andd3d12_set_descriptor_heaps(recorded_commandscheck), are separate executables that do not buildsrc/main.cppor the new header.tests/test_docs_env_vars.py,test_docs_encoding.py,test_docs_repeated_lines.py,test_docs_list_items.py,test_docs_links.py,test_ctest_registration.py,test_text_encoding.py: OK.scripts/check_no_game_data.pyon the changed files: clean.
935a2cd5bplus local changes) andlibrary/lib_cs_03010translated by #2501's branch: world median over 280-600 s 0.99 frames/s without the two patches, 1.75 with them
(one 600 s run each, no exception). The picture changes from near black to a lit scene in that run; not compared
frame by frame. Not yet measured on this
main.GPUs tested: NVIDIA GeForce RTX 4070 12 GB, driver 621.40, Windows 11 (ctest and the game runs above)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T03:18:22Z.
#2554 | head
5039a8dd17(merged cleanly with main02f71ccfe7) |ctest --test-dir runtime/build -C RelWithDebInfo -R "^title_patch$" --output-on-failure| red on main:title_patch_test.cppfails to compile (C1083: missingtitle_patch.hfor the newLEONIDA_TITLE_PATCHloader feature) | green on PR+main:title_patchpasses (13/13checks in0.05s),gta6rtbuilds cleanly,test_docs_env_vars.py5/5OK,test_ci_registration.py18/18OK,check_no_game_data.py0violations | Windows 11, RTX 3090 (610.88), Vulkan SDK 1.4.363.1 | AI-assisted: yesMinor non-blocking note on
rt::title_patch::apply:VirtualQuery(where, &mbi, sizeof(mbi))checksMEM_COMMITon the region containingwhereonly, so a multi-byte patch straddling into an adjacent uncommitted (MEM_RESERVE) orPAGE_NOACCESSregion still insidesizewould read pastmbi.BaseAddress + mbi.RegionSizeinstd::memcmpunless the committed span is checked throughwhere + p.expect.size().Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T09:20:39Z.
Review: APPROVED
Reviewed the diff and tested merged onto
main(493867366) with Ninja Release (MSVC).The
LEONIDA_TITLE_PATCHparser and checkedapply()path (VirtualQuery+ exactmemcmp+VirtualProtectrestore +FlushInstructionCache) are clean, bounds-checked against overflow, and well covered bytitle_patch_test.Tests run
ctest --output-on-failure -R "^title_patch$": 1/1 passed (title_patch0.02 s).python -m unittest tests/test_ctest_registration.py: 7/7 passed.tests/test_docs_env_vars.pyconfirmsLEONIDA_TITLE_PATCHis documented (its only failure on currentmainis the unrelated pre-existingLEONIDA_CLWB_PATCH).AI-assisted (Antigravity, Gemini).
Imported from ubiquitarianism/leonida. Originally posted by 4ld0-vito on 2026-11-28T12:25:58Z.
@zmasi thanks, you were right: with a patch running from a committed page into a reserved one, the old
apply()read the reserved page (the new test case crashes with it).c556144d8checks every region the patch covers first (committed, readable, not a guard page; otherwiseleft alone: not all of it is committed, readable memory) and changes and restores the protection region by region.title_patch_testcase 6 covers a reserved page, a no-access page and two committed pages with different protections: 20/20 checks. AI-assisted (Claude Code).Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T12:38:50Z.
Re-verified updated head
c556144d8con Windows 11 (10.0.26200.9974) with MSVC19.44.35228(x64,/std:c++20 /EHsc /W4 /permissive- /utf-8 /O2) againstmaind48a957bb(claim#2570#issuecomment-7239309422):5039a8dd17..c556144d8c& full PR): Clean (docs/running.md,runtime/CMakeLists.txt,runtime/src/main.cpp,runtime/src/title_patch.h,runtime/test/title_patch_test.cpp);apply()now walks everyMEMORY_BASIC_INFORMATIONregion covering[where, end)beforestd::memcmp, rejecting uncommitted,PAGE_NOACCESS, orPAGE_GUARDregions (Result::unreadable), rolls back earlierVirtualProtectpieces on partial failure, restores per-region protections after writing, and flushes the instruction cache.check_no_game_data.pyandtest_docs_encoding.pyclean.d48a957bb/ prior5039a8dd17+ new test): Fails to build againstd48a957bb(C1083: Cannot open include file: '../src/title_patch.h') and5039a8dd17(which lackedResult::unreadableand read past committed pages into reserved memory).d48a957bb+c556144d8cmerge): Auto-merges cleanly (rc=0), compilestitle_patch_test.exewith0warnings under/W4 /permissive-, passes all 20 checks including reserved-page,PAGE_NOACCESS, and two-page split-protection patches (20 checks, 0 failures,rc=0), and compilesruntime/src/main.cppcleanly (0new warnings).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T00:47:09Z.
Run of #2554 (
title_patch), red then green.c556144d8c(base1a441d336). Current main:1bc055e6c2.git merge-tree --write-tree main <head>merges cleanly.Commands (in a vcvars64 shell, build folder inside the worktree):
Green (PR head): builds,
title_patchPassed (1/1, 0.02 s).Red (non-test changes reverted:
runtime/src/title_patch.hremoved andruntime/src/main.cppback to the base, test and CMake registration kept): the target does not build (C1083: cannot open include file '../src/title_patch.h') and the same ctest endstitle_patch (Not Run), 0 of 1 passed. Since the PR adds a new header, red here is a build failure and not an assertion failure. The stale test executable from the green build was deleted before this ctest.Link check: merged into main
1bc055e6c, gta6rt.exe builds and links (RelWithDebInfo, MSVC 19.44); one new import vs main: strcspn (C runtime, api-ms-win-crt-string).Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-29T01:06:26Z.
Review: COMMENTED
Static review of
c556144d8against48bae6cad. Three changes requested.runtime/src/main.cpp:701runs the patch hook afterLoader::initialise()can execute the main image's TLS callbacks. Apply on the--runpath before initialization and before starting the watchdog worker.runtime/src/title_patch.h:58accepts signed and overflowing RVAs throughstrtoull. A negative field can become a valid in-image offset. Reject signs and out-of-range values before applying.runtime/src/title_patch.h:98,:105, and:107discard restore and cache flush errors. Check rollback and restoration, report distinct failures, and stop startup if protections or cache synchronization cannot be confirmed.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-29T17:34:24Z.
Verified on the C++ runtime here: it applies, both test and runtime build, and the test passes.
Applied onto
origin/main4364a4fa6(branch 1780 commits behind):The test covers what a checked byte patch has to get right without a title: parse, the values it accepts and refuses, and the protection of the pages it writes
(
both pages written,each page keeps its protection). That is the half that can be checked on a machine, and it holds.What is not covered: applying a patch to a real title. That needs the game, and the part that matters most there - that a refused patch stops instead of leaving
the title half-written - is only exercised by the synthetic cases in the test, which is a reasonable proxy but not the same thing.
One small thing for the reviewer, not for me to change: the branch is 1780 commits behind and
runtime/src/main.cppis one of the files it touches, so a rebasebefore merging keeps the diff to these five files.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T06:02:46Z.
Independent verification on this machine (Windows 11, MSVC 19.44.35226). It applies, builds and passes; the negative control is impossible by construction, same shape as #2651, #2645 and #2555.
1. It applies.
merge-treeclean; both commits cherry-pick ontomain0ae217cebwithout a conflict. Five files:title_patch.h(new),main.cpp, the test, its CMake registration anddocs/running.md.2. It builds and passes, three times:
title_patch_test.exe-> exit 0, 0, 0.3. There is no
mainversion of the subject to run against.runtime/src/title_patch.hdoes not exist onmainand the test includes it (18 references), so reverting the sources leaves nothing to compile - the test cannot exist without the feature. What that establishes is that the test exercises the new code; it does not establish that the patch validation is right.What the tests do cover, from the diff: that a patch is checked against every page it covers before applying, and that an out-of-range or misaligned byte patch is refused rather than written. Whether the title in a real run survives a patch is the run-level question, and it needs the executable this machine has in
E:\Games\Leonidabut not the patched scenario.What I did not test:
LEONIDA_TITLE_PATCHend to end - the environment variable read, a patch file applied to a loaded title, and the boot after it. That is the part the documentation indocs/running.mddescribes, and it is worth someone running once with a known-good patch before this lands.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-11-30T11:21:01Z.
Verified with a negative control, and the result is worth knowing: the tests pass with the header reverted, so they do not observe the change.
1. It applies and builds. merge-tree clean onto main
d367675c7.2. With the branch:
3. The control - revert only the source change, keep the test, rebuild:
What that says: the
LEONIDA_TITLE_PATCHparsing and the byte-patch application is not observed by $(System.Collections.Hashtable.test). The test keeps passing when both the header and its wiring in main.cpp are put back to main's versions.What I am not saying: that the change is wrong. Two readings are possible and I did not choose between them - the test may be a unit test of a header whose behaviour is unchanged in the cases it covers (in which case green either way is correct and the change is elsewhere), or it may be a test that was written beside the change rather than against it.
What would settle it in one case: a test that drives the path through the new code - e.g. for this one, the
LEONIDA_TITLE_PATCHparsing and the byte-patch application with an input that only the new code handles - and asserts on the result. If no such input exists, the change is additive and the control is expected to be green, which is also a useful thing to write in the pull request.Why I am commenting: I verify open pull requests that replay onto current main, build the binaries their tests name, run them, then revert only the source change. A green control is a real result, and it is the one a reviewer cannot get from the diff.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T16:59:42Z.
Independent check on Windows (not the author), at
c556144d8.title_patch_testand ran it: 20 checks, 0 failures — including the no-access page refused, a patch across two committed pages applied, both pages written, and each page keeping its protection.Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:26:15Z.
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