upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/kernel_writes_test.cpp
AgeCommit message (Collapse)Author
7 daystests: derive every test's scratch folder from test_temp_dir::temp_dir, not ↵thiefyzheng
GetTempPath (TEST-TEMPDIR-STRIPPED-ENV) With TMP, TEMP and USERPROFILE all unset, GetTempPathW returns C:\Windows\, and the throwing create_directories/copy_file/ofstream on C:\Windows\leonida_* aborts with 0xc0000409 before the test body runs. runtime/test/test_temp_dir.h grows one entry, testfiles::temp_dir(): LEONIDA_TEST_DIR when set, the current directory when the temp environment is stripped (Windows), else the standard temp resolution. Fifty-two test files and the tiny_game fixture that called GetTempPathA/W or temp_directory_path directly now use it; d3d12_queue_handover_test.cpp also checks the _sopen_s result in capture_stderr instead of silently returning empty stderr. One runtime source function needed the same fallback because tests exercise it: tls_host_clone_dir in runtime/src/pe_loader.cpp (the loader_tls tests). Rebased onto current main after its D3D-448 additions to d3d12_mesh_test.cpp (3-way; the mesh test keeps both). Verification on a Windows VM: stripped environment - the previously crashing d3d12 tests exit 77 (no usable Vulkan device) instead of aborting, file_system_test runs all 505 checks and loader_test all 95 with zero failures; normal environment - identical outcomes; LEONIDA_TEST_DIR honored under a fully stripped environment (the scratch folder observed mid-run inside it, cleaned up after the pass). The finding is whoalin1's (coordination issue #14, 02:37:44Z). AI-assisted.
10 daysIntegrate post-story-load memory, queue and Vulkan runtime changesMoriz82
Preserve physical window aliases across remaps, order console list values, and replay bounded indirect graphics with captured draw state. Coordinate pipeline lifetime, texture refresh and queue teardown. Add synthetic CPU and GPU coverage for the integrated paths. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-authored-by: ivanepsilondelta <264061546+ivanepsilondelta@users.noreply.github.com>
11 daysd3d12: pin the pages of a live host importJan Trencansky
RADV checks the pages of a VK_EXT_external_memory_host import again at every submission, and once one of them is read-only the kernel rejects that submission and every later one. The slot-133 shadow trackers and the geometry watch make copied title pages read-only to see the next write, and a page can be both under a shadow and under a live import. A new leonida::kernel_writes::hold pins a range until release() and opens it. Unlike begin_write it records the pin when no opener is set yet (no tracker exists), so a tracker made later passes over the pages too; ShadowPages and the geometry watch already pass over pinned pages. The slot-133 import (create_host_buffer) and the console descriptor heap import take the pin before vkAllocateMemory, so no guard lands between the writability check and the import, and end it on every path that frees the memory: a declined or failed import and the release. The finding and the design are NateWeav's (coordination issue #14, comments 7141859164 and 7142359977); this implements their description. As in their tree the pin is unconditional; a driver gate is not done. Tests: kernel_writes_test checks hold and release on the pin set (no opener, with an opener, alongside a file read's pin). d3d12_title_va_test in its imports-on mode makes a shadow over pages, checks that its tracker guards them, then imports the same pages and checks that two submissions leave them writable, that the pin ends with the import and that the tracker guards them again afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 days[integration] Linux/Proton and native Windows: boot through the story load ↵Moriz82
(RT-PROTON-STORY-LOAD) One squashed commit of a fork that was developed on a Linux/Proton machine and tested on two native Windows machines. On all of them the retail 1.0.2.1 package now launches, shows its launch movie, first-run pages and landing prompt, runs the story load to its end with the loading slideshow drawing its artwork, and enters the world phase. A first world frame is not verified yet. docs/linux_proton.md has the setup, a healthy boot's timeline, the machines and where it stops. Runtime: frames in the title's own window; DirectStorage pinned reads, page-list scatter/gather, BCPack and unshuffle with a locally generated predictor file; pooled, device-local and deferred image backing for streamed and placed textures; enhanced barriers into LAYOUT_UNDEFINED; a bindless table that degrades instead of refusing a submission; a descriptor hash finalizer (off until a library carries it); directly indexed heap offsets for compute dispatches and VS/PS/GS draws; title buffer windows outside a fragmented arena; opt-in device-local copies of streamed buffer views; write-fault retries under the tracker lock, shared trackers and write-watched title memory for native Windows; device-loss, compute-input and memory probes. Translator: loop bounds at structured exits, the eight FidelityFX programs that use a packed-dot form the disassembler skips, buffer bounds modes per view kind, a compaction option, the hash finalizer option. Tools and scripts: Linux boot scripts (Wine/Proton, no network), a Windows boot script, the paired compute translation script. No game data. AI-assisted (Claude Code and Codex agents), reviewed and booted by people on the machines named in docs/linux_proton.md. Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>