mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-04 00:20:50 +00:00
3.3 KiB
3.3 KiB
AGENTS.md
AnyPS5 relinks PS5 executables into native Linux or Windows programs that run against reimplemented system libraries; it is not an emulator. The rules are CONTRIBUTING.md and CONVENTIONS; these are the ones agents break.
- No comments in code, except
#endif, namespace ends, and the licence and copyright notice of code adapted from an upstream source (for example ICU or WebRTC). That notice stays verbatim at the top of the file, with a link to the pinned upstream commit. Attribution facts and known gaps still go indocs/dev/debt/<library>.md. - An export you cannot implement calls
NotImplemented_nid_no_patch(__func__); never return a made-up success. - Implement the function for every input. Never special-case a value, ID or path seen in one title's trace; if the general behaviour is unknown, throw and record it in
docs/dev/debt/<library>.md. - New third-party code is a submodule at
3rdparty/<name>: add its.gitmodulesentry (git submodule add <url> 3rdparty/<name>) and build it from source with CMake. Neverfind_packageor copy sources in, except for the system packagestools/check_conventions.pyallows:Python3,Threads,GitandLLVM. - Known gaps go in
docs/dev/debt/<library>.md, added, changed or removed through a fragment indocs/dev/debt/changes/(format); notes, reports and logs go in the pull request. Add no other files. - Commit subjects and PR titles are Conventional Commits.
- PR body: copy the template, keep every line, tick every box, and fill
What,Tested,Depends on(#N or none),Fixes(Fixes #N or none),Unblocks(title ID and discussion, or none),GPUs tested(AGC, shader recompiler, VideoOut; otherwise n/a) andAI-assisted(yes or no). - Before starting a function run
python3 tools/pr_overlap.py --names <function>; before pushing runpython3 tools/check_conventions.py, which compares withupstream/mainbeforeorigin/main; before opening runpython3 tools/pr_overlap.py --branch <branch>. - Build and test: BUILD; a relinker-only change builds with
-DANYPS5_RELINKER_ONLY=ON. - A speed claim shows
tools/trace_digest.pysummaries ofmainand of the change from the same machine and scene. - AGC, shader recompiler and VideoOut changes: run the same focused tests on
mainand the change withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layerusingctest --test-dir build -R <pattern> -Vfrom the same machine and GPU. Confirm each log shows the loader inserting the layer (Insert instance layer "VK_LAYER_KHRONOS_validation") and neither containswas not found but was requested by env var VK_INSTANCE_LAYERS, then compare the logs and confirm the change adds no newVUID-validation errors (ctestcan reportPassedwhen validation errors are logged). Use a validation layer at least as new as the3rdparty/Vulkan-Headerssubmodule (VK_HEADER_VERSION335, i.e. layer 1.4.335 or newer); an older layer does not know thepNextstructs the driver chains (for exampleVK_KHR_shader_fma) and logs a spuriousVUID-VkDeviceCreateInfo-pNext-pNextthat fails every GPU test.