feat(libSceGnmDriver): add mode-aware draw command writers #18251

Merged
johnohhh1 merged 1 commit from upstream-pr/18251 into main 2026-11-16 02:24:41 +00:00
johnohhh1 commented 2026-11-11 00:15:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnohhh1 on 2026-11-11T00:15:21Z.


What

Adds nine normal-provider draw writers requested by #17581, inFAMOUS Second Son (CUSA00223 01.07, bring-up #8214). The report stops at FAIL: unresolved ELF import HlTPoZ-oY7Y and other missing imports. This supplies nine of 47; it does not claim the complete load stop or title startup is fixed.

The direct/indexed/indirect/multi/count writers choose base/Neo packets through sceKernelIsNeoMode, preserve full-width addresses, predication and NOP payload, and refuse invalid arguments or unsupported metadata without writing. Existing Neo providers stay unchanged. _nid_disambig1 keeps host names distinct while retaining the guest NIDs.

Packet semantics: shadPS4 a808e762. Normal-provider identities: PS5 3.20 inventory b2a77c09. Console packet equivalence and optional Neo compatibility rejection remain debt. #17942 and #17711 cover different functions; neither is a prerequisite.

Tested

Head e7dbe41996149e69467defaa91298eb32ed4219b.

Evidence Result
Author's paired Linux main bc94a8e423ea026aadbb29165fed1ad2db471154 /PR, identical fixtures, RTX 5070 /595.99.02 13/17→17/17
Same paired run, llvmpipe /Mesa 26.0.8 /LLVM 21.1.8 13/17→17/17
Hosted Windows, main b9474f01fd0231accb36b8d0c6b98a40307aabf3 + this head All eight new draw cases pass; 0 failures/3909 selected tests, including project skips

Linux uses Ubuntu 26.04.1/GCC 15.2/Release, required Vulkan, disabled shader cache, explicit ICDs and Khronos validation. No skips/VUIDs/missing-layer warnings. The four normal-provider cases fail on main at the missing symbol; fixed-Neo and existing controls pass. These new cases check CPU packet words; the existing submission regression performs GPU work.

Six writable cases each check 222,210 packet/refusal outcomes; absent-metadata cases check 203. Coverage includes stages and 16×16 SGPR pairs, boundary/alignment errors, untouched words/guards and full-width addresses. All eight cases also pass against actual NID-patched PRXs; the normal PRX exports all nine NIDs without a Neo dependency.

Full configured Linux build, public-header audit/standalone compilation, whitespace and conventions pass. JJenkx's Windows three-repeat report and Kikoarl's Linux/Intel three-repeat report are independent integrations of the same head. Current-main merge preview is clean. No title, console, native AMD or local Windows run claimed.

The existing-main name warnings are the intentional normal/Neo providers. The prior failed-closed #14212 comparison changes only blank lines in the shared debt file; no confirmed peer implementation overlap was found. Approved review retained.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA RTX 5070 /595.99.02; llvmpipe /Mesa 26.0.8 /LLVM 21.1.8; Ubuntu 26.04.1. New draw tests are CPU packet checks; hosted/peer reports are separately identified
  • AI-assisted: yes (Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5251263587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18251). Originally posted by [johnohhh1](https://github.com/johnohhh1) on 2026-11-11T00:15:21Z. --- ### What Adds nine normal-provider draw writers requested by [#17581](https://github.com/boykopovar/AnyPS5/issues/17581), inFAMOUS Second Son (CUSA00223 01.07, [bring-up #8214](https://github.com/boykopovar/AnyPS5/discussions/8214)). The report stops at `FAIL: unresolved ELF import HlTPoZ-oY7Y` and other missing imports. This supplies nine of 47; it does not claim the complete load stop or title startup is fixed. The direct/indexed/indirect/multi/count writers choose base/Neo packets through `sceKernelIsNeoMode`, preserve full-width addresses, predication and NOP payload, and refuse invalid arguments or unsupported metadata without writing. Existing Neo providers stay unchanged. `_nid_disambig1` keeps host names distinct while retaining the guest NIDs. Packet semantics: [shadPS4 a808e762](https://github.com/shadps4-emu/shadPS4/blob/a808e7626e3c7de8d0f0fda6a91f620b42f6c762/src/core/libraries/gnmdriver/gnmdriver.cpp). Normal-provider identities: [PS5 3.20 inventory b2a77c09](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceGnmDriver.c). Console packet equivalence and optional Neo compatibility rejection remain debt. #17942 and #17711 cover different functions; neither is a prerequisite. ### Tested Head `e7dbe41996149e69467defaa91298eb32ed4219b`. | Evidence | Result | |---|---| | Author's paired Linux main `bc94a8e423ea026aadbb29165fed1ad2db471154` /PR, identical fixtures, RTX 5070 /595.99.02 |13/17→17/17| | Same paired run, llvmpipe /Mesa 26.0.8 /LLVM 21.1.8 |13/17→17/17| | [Hosted Windows, main `b9474f01fd0231accb36b8d0c6b98a40307aabf3` + this head](https://github.com/boykopovar/AnyPS5/actions/runs/42929908789/job/130225807964) |All eight new draw cases pass; 0 failures/3909 selected tests, including project skips| Linux uses Ubuntu 26.04.1/GCC 15.2/Release, required Vulkan, disabled shader cache, explicit ICDs and Khronos validation. No skips/VUIDs/missing-layer warnings. The four normal-provider cases fail on main at the missing symbol; fixed-Neo and existing controls pass. These new cases check CPU packet words; the existing submission regression performs GPU work. Six writable cases each check 222,210 packet/refusal outcomes; absent-metadata cases check 203. Coverage includes stages and 16×16 SGPR pairs, boundary/alignment errors, untouched words/guards and full-width addresses. All eight cases also pass against actual NID-patched PRXs; the normal PRX exports all nine NIDs without a Neo dependency. Full configured Linux build, public-header audit/standalone compilation, whitespace and conventions pass. [JJenkx's Windows three-repeat report](https://github.com/boykopovar/AnyPS5/pull/18251#issuecomment-6783218237) and [Kikoarl's Linux/Intel three-repeat report](https://github.com/boykopovar/AnyPS5/pull/18251#issuecomment-6783378547) are independent integrations of the same head. Current-main merge preview is clean. No title, console, native AMD or local Windows run claimed. The existing-main name warnings are the intentional normal/Neo providers. The prior failed-closed #14212 comparison changes only blank lines in the shared debt file; no confirmed peer implementation overlap was found. Approved review retained. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: NVIDIA RTX 5070 /595.99.02; llvmpipe /Mesa 26.0.8 /LLVM 21.1.8; Ubuntu 26.04.1. New draw tests are CPU packet checks; hosted/peer reports are separately identified <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes (Codex) <!-- yes / no -->
MarcZX10 commented 2026-11-11 00:48:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-11T00:48:48Z.

Review: APPROVED


Reviewed — looks good

The nine mode-aware writers match the pinned packet reference, and all eight new Windows cases pass; PS5 console equivalence remains an explicitly documented limitation.

What I ran

Reviewed head e7dbe41996149e69467defaa91298eb32ed4219b; current main base for the clean merge preview and no-build precheck was 459eb5a98f92dbdfa259c8e527a7ec94532c5802. Environment: Linux 6.1, Python 3.11.2, GCC 12.2.0. The Windows workflow tested the same PR head merged onto b9474f01fd0231accb36b8d0c6b98a40307aabf3, before main advanced.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --base refs/review/main-20261111-c --head refs/review/18251/20261111 --title 'feat(libSceGnmDriver): add mode-aware draw command writers' --body-file /tmp/anyps5-pr18251-body.md --output-dir /tmp/anyps5-pr-precheck-18251-post
python3 tools/pr_stack_check.py 18251 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-18251-post
gh run view 42929908789 --job 130225807964 --log | grep 'guest_gnm_draw_'

Results

Check Result Note
Diff, conventions and ABI audit passed Exact head and current base.
Current-base merge preview passed Clean against f2efd2ddb836.
Windows build and new packet tests passed All eight new cases passed on this head.
Other product jobs not run GitHub skipped them by workflow filters.
Local build and CTest not run I relied on the Windows job and separately identified Linux runs reported by the author.
Exact no-build precheck table and command output

The precheck excludes build-dependent checks by design. Its registration heuristic flagged the new C++ test, which I manually confirmed is explicitly registered by core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt.

Check Status Why / command
build_and_compile not_run Builds are intentionally excluded from this fast, no-build check pass.
diff_check passed Command ran; see raw output below. Command: git diff --check 459eb5a98f92dbdfa259c8e527a7ec94532c5802...e7dbe41996149e69467defaa91298eb32ed4219b
conventions_and_pr_template passed Command ran; see raw output below. Command: /usr/bin/python3 tools/check_conventions.py --base 459eb5a98f92dbdfa259c8e527a7ec94532c5802 --head e7dbe41996149e69467defaa91298eb32ed4219b --title feat(libSceGnmDriver): add mode-aware draw command writers --body /tmp/anyps5-pr-precheck-18251-post/pr-body.md
changed_export_abi_audit passed Command ran; see raw output below. Command: /usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 459eb5a98f92dbdfa259c8e527a7ec94532c5802 --head e7dbe41996149e69467defaa91298eb32ed4219b --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed Python tool module has a related tools/tests/test_.py suite.
python_test_registration not_applicable No changed Python test files need registration.
live_dependency_and_mergeability_check not_applicable No GitHub PR metadata was supplied.
build_dependent_cpp_tests not_run Changed C/C++ source or test files need exact-head binaries; this fast pass does not build.
test_quality_heuristics passed Command ran; see raw output below. Command: /usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18251-post/head-e7dbe4199614-7aaf8e00 --json core/libs/prx/libSceGnmDriver/CMakeLists.txt core/libs/prx/libSceGnmDriver/Export.Draw.cpp core/libs/prx/libSceGnmDriver/include/DrawApi.hpp core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt core/libs/tests/GuestGnmDrawWriters.cpp docs/dev/debt/libSceGnmDriver.md
negative_controls not_applicable No changed tools/ Python test module is eligible for a base-source negative control.

Command output from check_conventions.py:

All conventions checks passed.

Command output from pr_abi_audit.py:

{
  "status": "passed",
  "symbols": [
    {
      "name": "sceGnmDrawIndexAuto_nid_disambig1",
      "computed_nid": "GGsn7jMTxw4",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndexIndirectCountMulti_nid_disambig1",
      "computed_nid": "thbPcG7E7qk",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndexIndirectMulti_nid_disambig1",
      "computed_nid": "5q95ravnueg",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndexIndirect_nid_disambig1",
      "computed_nid": "ED9-Fjr8Ta4",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndexOffset_nid_disambig1",
      "computed_nid": "oYM+YzfCm2Y",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndex_nid_disambig1",
      "computed_nid": "HlTPoZ-oY7Y",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndirectCountMulti_nid_disambig1",
      "computed_nid": "cUCo8OvArrw",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndirectMulti_nid_disambig1",
      "computed_nid": "f5QQLp9rzGk",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceGnmDrawIndirect_nid_disambig1",
      "computed_nid": "4v+otIIdjqg",
      "declarations": [
        "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceGnmDriver/Export.Draw.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    }
  ],
  "findings": [],
  "limitations": [
    "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.",
    "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects."
  ]
}

Command output from pr_test_quality.py:

{
  "findings": [
    {
      "path": "core/libs/tests/GuestGnmDrawWriters.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}
Current-base merge preview
# PR stack check — fresh

Target: https://github.com/boykopovar/AnyPS5/pull/18251
Target branch tip: `459eb5a98f92dbdfa259c8e527a7ec94532c5802`
All heads unchanged: **True**
Dependency order: #18251

## Individual merge previews

- PR #18251: **clean** against current base; head `e7dbe41996149e69467defaa91298eb32ed4219b`; changed paths: none reported

## Dependency relationships

No declared PR dependencies were found in the target PR chain.

## Limits

Merge previews apply each exact PR head independently to the current base. A dependency head that is absent from its dependent is reported separately from merge conflicts; file overlap is only a signal and does not prove a conflict. This tool does not build, resolve conflicts, publish comments, or update branches.
Exact Windows CI lines for the new tests

The hosted Windows job built the test executable and ran these cases for this head merged onto base b9474f01fd0231accb36b8d0c6b98a40307aabf3:

windows	Build and run changed guest core/libs tests	2026-11-11T00:21:45.2318489Z guest_gnm_draw_writers_tests
windows	Build and run changed guest core/libs tests	2026-11-11T00:23:35.7282129Z [806/1472] Building CXX object core/libs/prx/libSceGnmDriver/tests/CMakeFiles/guest_gnm_draw_writers_tests.dir/__/__/__/tests/GuestGnmDrawWriters.cpp.obj
windows	Build and run changed guest core/libs tests	2026-11-11T00:24:17.5645201Z [1377/1472] Linking CXX executable tests\guest_gnm_draw_writers_tests.exe
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.1362054Z           Start 3135: guest_gnm_draw_normal_base
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.1553791Z           Start 3136: guest_gnm_draw_normal_neo
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.4374232Z           Start 3137: guest_gnm_draw_normal_json
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.4645965Z 2371/3909 Test #3137: guest_gnm_draw_normal_json ............................................   Passed    0.03 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.4688926Z           Start 3138: guest_gnm_draw_normal_none
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.5067467Z 2372/3909 Test #3138: guest_gnm_draw_normal_none ............................................   Passed    0.04 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.5081791Z           Start 3139: guest_gnm_draw_neo_base
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.5210679Z 2373/3909 Test #3135: guest_gnm_draw_normal_base ............................................   Passed    0.38 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.5223693Z           Start 3140: guest_gnm_draw_neo_neo
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.5461219Z 2374/3909 Test #3136: guest_gnm_draw_normal_neo .............................................   Passed    0.39 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.5480876Z           Start 3141: guest_gnm_draw_neo_json
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.9563893Z 2375/3909 Test #3139: guest_gnm_draw_neo_base ...............................................   Passed    0.45 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.9612998Z           Start 3142: guest_gnm_draw_neo_none
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.9907867Z 2376/3909 Test #3140: guest_gnm_draw_neo_neo ................................................   Passed    0.47 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:47.9976720Z 2377/3909 Test #3141: guest_gnm_draw_neo_json ...............................................   Passed    0.45 sec
windows	Build and run changed guest core/libs tests	2026-11-11T00:27:48.3595650Z 2387/3909 Test #3142: guest_gnm_draw_neo_none ...............................................   Passed    0.40 sec

main advanced after the Windows run; the current-base merge preview is clean. The intervening diff includes .github/workflows/build.yml and other unrelated project files, but no GNM Driver source. The Windows workflow has not been rerun on the newer base.

Negative control

Assertion Change Result
The four normal-provider imports fail to resolve on main without this implementation Author reports running those cases against main and the PR Reported 4/4 failures on main and passes on the PR; I did not run the control.

Findings

Blocking

None found in the reviewed code and tests.

Non-blocking

The packet tests verify serialized words and guards, not execution of these new draws on a PS5. The PR records console equivalence as unverified technical debt.

Sources

Not verified

I did not run a local build or CTest, and no PS5 console execution was performed. The PR author reports a Linux full build, focused tests and packet runs on NVIDIA and llvmpipe; I did not reproduce those runs. The Windows job tested this head on the earlier base b9474f01fd02, not the current base f2efd2ddb836.

To get this to a good state

No code change is requested. If a new head is pushed, rerun the exact-head precheck and review the updated diff and checks before relying on this approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5851861086 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18251#pullrequestreview-5851861086). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-11T00:48:48Z. **Review:** APPROVED --- # Reviewed — looks good The nine mode-aware writers match the pinned packet reference, and all eight new Windows cases pass; PS5 console equivalence remains an explicitly documented limitation. ## What I ran Reviewed head `e7dbe41996149e69467defaa91298eb32ed4219b`; current `main` base for the clean merge preview and no-build precheck was `459eb5a98f92dbdfa259c8e527a7ec94532c5802`. Environment: Linux 6.1, Python 3.11.2, GCC 12.2.0. The Windows workflow tested the same PR head merged onto `b9474f01fd0231accb36b8d0c6b98a40307aabf3`, before `main` advanced. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --base refs/review/main-20261111-c --head refs/review/18251/20261111 --title 'feat(libSceGnmDriver): add mode-aware draw command writers' --body-file /tmp/anyps5-pr18251-body.md --output-dir /tmp/anyps5-pr-precheck-18251-post python3 tools/pr_stack_check.py 18251 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-18251-post gh run view 42929908789 --job 130225807964 --log | grep 'guest_gnm_draw_' ``` ## Results | Check | Result | Note | |---|---|---| | Diff, conventions and ABI audit | passed | Exact head and current base. | | Current-base merge preview | passed | Clean against `f2efd2ddb836`. | | Windows build and new packet tests | passed | All eight new cases passed on this head. | | Other product jobs | not run | GitHub skipped them by workflow filters. | | Local build and CTest | not run | I relied on the Windows job and separately identified Linux runs reported by the author. | <details> <summary>Exact no-build precheck table and command output</summary> The precheck excludes build-dependent checks by design. Its registration heuristic flagged the new C++ test, which I manually confirmed is explicitly registered by `core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt`. | Check | Status | Why / command | |---|---|---| | build_and_compile | not_run | Builds are intentionally excluded from this fast, no-build check pass. | | diff_check | passed | Command ran; see raw output below. Command: `git diff --check 459eb5a98f92dbdfa259c8e527a7ec94532c5802...e7dbe41996149e69467defaa91298eb32ed4219b` | | conventions_and_pr_template | passed | Command ran; see raw output below. Command: `/usr/bin/python3 tools/check_conventions.py --base 459eb5a98f92dbdfa259c8e527a7ec94532c5802 --head e7dbe41996149e69467defaa91298eb32ed4219b --title feat(libSceGnmDriver): add mode-aware draw command writers --body /tmp/anyps5-pr-precheck-18251-post/pr-body.md` | | changed_export_abi_audit | passed | Command ran; see raw output below. Command: `/usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 459eb5a98f92dbdfa259c8e527a7ec94532c5802 --head e7dbe41996149e69467defaa91298eb32ed4219b --json` | | python_syntax | not_applicable | No changed Python implementation files. | | related_python_unit_tests | not_applicable | No changed Python tool module has a related tools/tests/test_<module>.py suite. | | python_test_registration | not_applicable | No changed Python test files need registration. | | live_dependency_and_mergeability_check | not_applicable | No GitHub PR metadata was supplied. | | build_dependent_cpp_tests | not_run | Changed C/C++ source or test files need exact-head binaries; this fast pass does not build. | | test_quality_heuristics | passed | Command ran; see raw output below. Command: `/usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18251-post/head-e7dbe4199614-7aaf8e00 --json core/libs/prx/libSceGnmDriver/CMakeLists.txt core/libs/prx/libSceGnmDriver/Export.Draw.cpp core/libs/prx/libSceGnmDriver/include/DrawApi.hpp core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt core/libs/tests/GuestGnmDrawWriters.cpp docs/dev/debt/libSceGnmDriver.md` | | negative_controls | not_applicable | No changed tools/ Python test module is eligible for a base-source negative control. | Command output from `check_conventions.py`: ```text All conventions checks passed. ``` Command output from `pr_abi_audit.py`: ```json { "status": "passed", "symbols": [ { "name": "sceGnmDrawIndexAuto_nid_disambig1", "computed_nid": "GGsn7jMTxw4", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndexIndirectCountMulti_nid_disambig1", "computed_nid": "thbPcG7E7qk", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndexIndirectMulti_nid_disambig1", "computed_nid": "5q95ravnueg", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndexIndirect_nid_disambig1", "computed_nid": "ED9-Fjr8Ta4", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndexOffset_nid_disambig1", "computed_nid": "oYM+YzfCm2Y", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndex_nid_disambig1", "computed_nid": "HlTPoZ-oY7Y", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndirectCountMulti_nid_disambig1", "computed_nid": "cUCo8OvArrw", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndirectMulti_nid_disambig1", "computed_nid": "f5QQLp9rzGk", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceGnmDrawIndirect_nid_disambig1", "computed_nid": "4v+otIIdjqg", "declarations": [ "core/libs/prx/libSceGnmDriver/include/DrawApi.hpp" ], "definitions": [ "core/libs/prx/libSceGnmDriver/Export.Draw.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" } ], "findings": [], "limitations": [ "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.", "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects." ] } ``` Command output from `pr_test_quality.py`: ```json { "findings": [ { "path": "core/libs/tests/GuestGnmDrawWriters.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` </details> <details> <summary>Current-base merge preview</summary> ```text # PR stack check — fresh Target: https://github.com/boykopovar/AnyPS5/pull/18251 Target branch tip: `459eb5a98f92dbdfa259c8e527a7ec94532c5802` All heads unchanged: **True** Dependency order: #18251 ## Individual merge previews - PR #18251: **clean** against current base; head `e7dbe41996149e69467defaa91298eb32ed4219b`; changed paths: none reported ## Dependency relationships No declared PR dependencies were found in the target PR chain. ## Limits Merge previews apply each exact PR head independently to the current base. A dependency head that is absent from its dependent is reported separately from merge conflicts; file overlap is only a signal and does not prove a conflict. This tool does not build, resolve conflicts, publish comments, or update branches. ``` </details> <details> <summary>Exact Windows CI lines for the new tests</summary> The hosted Windows job built the test executable and ran these cases for this head merged onto base `b9474f01fd0231accb36b8d0c6b98a40307aabf3`: ```text windows Build and run changed guest core/libs tests 2026-11-11T00:21:45.2318489Z guest_gnm_draw_writers_tests windows Build and run changed guest core/libs tests 2026-11-11T00:23:35.7282129Z [806/1472] Building CXX object core/libs/prx/libSceGnmDriver/tests/CMakeFiles/guest_gnm_draw_writers_tests.dir/__/__/__/tests/GuestGnmDrawWriters.cpp.obj windows Build and run changed guest core/libs tests 2026-11-11T00:24:17.5645201Z [1377/1472] Linking CXX executable tests\guest_gnm_draw_writers_tests.exe windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.1362054Z Start 3135: guest_gnm_draw_normal_base windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.1553791Z Start 3136: guest_gnm_draw_normal_neo windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.4374232Z Start 3137: guest_gnm_draw_normal_json windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.4645965Z 2371/3909 Test #3137: guest_gnm_draw_normal_json ............................................ Passed 0.03 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.4688926Z Start 3138: guest_gnm_draw_normal_none windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.5067467Z 2372/3909 Test #3138: guest_gnm_draw_normal_none ............................................ Passed 0.04 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.5081791Z Start 3139: guest_gnm_draw_neo_base windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.5210679Z 2373/3909 Test #3135: guest_gnm_draw_normal_base ............................................ Passed 0.38 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.5223693Z Start 3140: guest_gnm_draw_neo_neo windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.5461219Z 2374/3909 Test #3136: guest_gnm_draw_normal_neo ............................................. Passed 0.39 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.5480876Z Start 3141: guest_gnm_draw_neo_json windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.9563893Z 2375/3909 Test #3139: guest_gnm_draw_neo_base ............................................... Passed 0.45 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.9612998Z Start 3142: guest_gnm_draw_neo_none windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.9907867Z 2376/3909 Test #3140: guest_gnm_draw_neo_neo ................................................ Passed 0.47 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:47.9976720Z 2377/3909 Test #3141: guest_gnm_draw_neo_json ............................................... Passed 0.45 sec windows Build and run changed guest core/libs tests 2026-11-11T00:27:48.3595650Z 2387/3909 Test #3142: guest_gnm_draw_neo_none ............................................... Passed 0.40 sec ``` `main` advanced after the Windows run; the current-base merge preview is clean. The intervening diff includes `.github/workflows/build.yml` and other unrelated project files, but no GNM Driver source. The Windows workflow has not been rerun on the newer base. </details> ## Negative control | Assertion | Change | Result | |---|---|---| | The four normal-provider imports fail to resolve on main without this implementation | Author reports running those cases against main and the PR | Reported 4/4 failures on main and passes on the PR; I did not run the control. | ## Findings ### Blocking None found in the reviewed code and tests. ### Non-blocking The packet tests verify serialized words and guards, not execution of these new draws on a PS5. The PR records console equivalence as unverified technical debt. ## Sources - [Pinned shadPS4 GNM writer reference](https://github.com/shadps4-emu/shadPS4/blob/a808e7626e3c7de8d0f0fda6a91f620b42f6c762/src/core/libraries/gnmdriver/gnmdriver.cpp) - [Reviewed packet writers](https://github.com/boykopovar/AnyPS5/blob/e7dbe41996149e69467defaa91298eb32ed4219b/core/libs/prx/libSceGnmDriver/Export.Draw.cpp) - [New test registration](https://github.com/boykopovar/AnyPS5/blob/e7dbe41996149e69467defaa91298eb32ed4219b/core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt) - [Technical-debt scope](https://github.com/boykopovar/AnyPS5/blob/e7dbe41996149e69467defaa91298eb32ed4219b/docs/dev/debt/libSceGnmDriver.md) ## Not verified I did not run a local build or CTest, and no PS5 console execution was performed. The PR author reports a Linux full build, focused tests and packet runs on NVIDIA and llvmpipe; I did not reproduce those runs. The Windows job tested this head on the earlier base `b9474f01fd02`, not the current base `f2efd2ddb836`. ## To get this to a good state No code change is requested. If a new head is pushed, rerun the exact-head precheck and review the updated diff and checks before relying on this approval.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
boykopovar/AnyPS5!18251
No description provided.