feat(agc): map scaled guest texture formats to native Vulkan formats #14709

Merged
akkadbakkad89 merged 3 commits from upstream-pr/14709 into main 2026-11-15 19:11:42 +00:00
akkadbakkad89 commented 2026-11-01 17:13:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-11-01T17:13:57Z.


What

Adds native Vulkan host mappings for the 14 scaled guest texture formats whose layouts are bit-exact

Also renames guest buffer format 131 in BufferFormat.hpp to Format6E4Float to match Mesa's GFX10_FORMAT_6E4_FLOAT (the old Format10_10_10_2Float name implied the wrong layout; the enumerator is unreferenced today — name-only change, flagged in review) — R8/R16/R8G8/R16G16/R8G8B8A8/R16G16B16A16_{U,S}SCALED (guest 3/4, 9/10, 16/17, 25/26, 58/59, 67/68) and A2B10G10R10_{U,S}SCALED_PACK32 (guest 52/53) — and marks them sampled in kFormatInfoTable. The recompiler already models these through Uscaled/Sscaled component types and buffer format info; only the host lookup and sampled flag were missing. Progress: sampled 81 to 95, Vulkan host format 68 to 82 of 159. 2_10_10_10 variants are intentionally unmapped — their 2-bit field sits at the least-significant end, unlike Vulkan A2* formats. The test's rejection sentinel moves to the still-unnamed format 78.

Tested

Windows 11, MinGW: agc_driver_graphics_tests passes on main and on this branch under ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. New assertions cover native resolve, FindGuestTextureFormat reverse lookup and the uint32/sint32 numeric classes; neither log contains was not found but was requested and the change adds no VUID- lines. tools/shader_scan.py: sampled 81 to 95, host format 68 to 82.

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 3070, driver 617.42, Windows 11
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5109672538 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14709). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-11-01T17:13:57Z. --- ### What Adds native Vulkan host mappings for the 14 scaled guest texture formats whose layouts are bit-exact Also renames guest buffer format 131 in `BufferFormat.hpp` to `Format6E4Float` to match Mesa's `GFX10_FORMAT_6E4_FLOAT` (the old `Format10_10_10_2Float` name implied the wrong layout; the enumerator is unreferenced today — name-only change, flagged in review) — `R8/R16/R8G8/R16G16/R8G8B8A8/R16G16B16A16_{U,S}SCALED` (guest 3/4, 9/10, 16/17, 25/26, 58/59, 67/68) and `A2B10G10R10_{U,S}SCALED_PACK32` (guest 52/53) — and marks them `sampled` in `kFormatInfoTable`. The recompiler already models these through `Uscaled`/`Sscaled` component types and buffer format info; only the host lookup and sampled flag were missing. Progress: sampled 81 to 95, Vulkan host format 68 to 82 of 159. `2_10_10_10` variants are intentionally unmapped — their 2-bit field sits at the least-significant end, unlike Vulkan `A2*` formats. The test's rejection sentinel moves to the still-unnamed format 78. ### Tested Windows 11, MinGW: `agc_driver_graphics_tests` passes on `main` and on this branch under `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. New assertions cover native resolve, `FindGuestTextureFormat` reverse lookup and the uint32/sint32 numeric classes; neither log contains `was not found but was requested` and the change adds no `VUID-` lines. `tools/shader_scan.py`: sampled 81 to 95, host format 68 to 82. ### 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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA RTX 3070, driver 617.42, Windows 11 - [x] AI-assisted: yes
MarcZX10 commented 2026-11-01 17:17:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T17:17:36Z.

Review: COMMENTED


Reviewed — no blocking findings

The 14 scaled-format mappings and their reverse-lookup and sampled-class assertions match the declared guest formats; approval is deferred while hosted checks are queued.

What I ran

Reviewed head 03822e06fe6bf289af5921153683e6a5ad63c2f3. The stack checker previewed it cleanly against base f2d874c1fdccf781c0fa5d86619bb5dd8894b958. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0; no C++ build was run.

git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...03822e06fe6bf289af5921153683e6a5ad63c2f3
python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 03822e06fe6bf289af5921153683e6a5ad63c2f3 --title 'feat(agc): map scaled guest texture formats to native Vulkan formats' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/pr-body.md
python3 tools/pr_stack_check.py 14709 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/stack
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14709

Results

Check Result Note
Diff and conventions passed No whitespace errors; conventions passed.
Merge preview passed Clean against the stated base.
Source and test review passed Mappings and assertions are consistent.
Full precheck failed Two optional helpers are absent from the PR snapshot.
Hosted CI not run All six checks were queued at review time.
C++ tests not run Exact-head test binary was unavailable; no build was requested.
Check commands and unedited output
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/report.json
Conclusion: checks failed

All conventions checks passed.

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/head-03822e06fe6b-0e7d1ef8/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/head-03822e06fe6b-0e7d1ef8/tools/pr_test_quality.py': [Errno 2] No such file or directory

Negative control

Not run: the changed C++ assertions require an exact-head test binary, and no build was run.

Findings

Blocking

None found in the reviewed diff.

Non-blocking

Approval is deferred until the required hosted checks finish. The precheck's ABI and test-quality helper failures are environmental: those optional scripts are absent from the detached PR snapshot, so they did not evaluate this change.

Sources

Not verified

  • The Windows Vulkan test run described by the author was not independently reproduced.
  • Hosted CI results were queued; GPU/console behavior was not tested here.
  • No local build or C++ test execution was performed.

To get this to a good state

Let the queued CI checks finish. I will rerun the same no-build checks against the exact head if it changes and reassess after CI completes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729312132 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14709#pullrequestreview-5729312132). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T17:17:36Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The 14 scaled-format mappings and their reverse-lookup and sampled-class assertions match the declared guest formats; approval is deferred while hosted checks are queued. ## What I ran Reviewed head `03822e06fe6bf289af5921153683e6a5ad63c2f3`. The stack checker previewed it cleanly against base `f2d874c1fdccf781c0fa5d86619bb5dd8894b958`. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0; no C++ build was run. ```sh git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...03822e06fe6bf289af5921153683e6a5ad63c2f3 python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 03822e06fe6bf289af5921153683e6a5ad63c2f3 --title 'feat(agc): map scaled guest texture formats to native Vulkan formats' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/pr-body.md python3 tools/pr_stack_check.py 14709 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/stack python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14709 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace errors; conventions passed. | | Merge preview | passed | Clean against the stated base. | | Source and test review | passed | Mappings and assertions are consistent. | | Full precheck | failed | Two optional helpers are absent from the PR snapshot. | | Hosted CI | not run | All six checks were queued at review time. | | C++ tests | not run | Exact-head test binary was unavailable; no build was requested. | <details><summary>Check commands and unedited output</summary> ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/report.json Conclusion: checks failed All conventions checks passed. /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/head-03822e06fe6b-0e7d1ef8/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14709-03822e06fe6b/head-03822e06fe6b-0e7d1ef8/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` </details> ## Negative control Not run: the changed C++ assertions require an exact-head test binary, and no build was run. ## Findings ### Blocking None found in the reviewed diff. ### Non-blocking Approval is deferred until the required hosted checks finish. The precheck's ABI and test-quality helper failures are environmental: those optional scripts are absent from the detached PR snapshot, so they did not evaluate this change. ## Sources - [Added Vulkan mappings and reverse lookup at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/03822e06fe6bf289af5921153683e6a5ad63c2f3/core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp) - [Added format assertions at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/03822e06fe6bf289af5921153683e6a5ad63c2f3/core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp) - [Scaled guest enum values at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/03822e06fe6bf289af5921153683e6a5ad63c2f3/core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/BufferFormat.hpp) - [Sampled numeric classification at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/03822e06fe6bf289af5921153683e6a5ad63c2f3/core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp) ## Not verified - The Windows Vulkan test run described by the author was not independently reproduced. - Hosted CI results were queued; GPU/console behavior was not tested here. - No local build or C++ test execution was performed. ## To get this to a good state Let the queued CI checks finish. I will rerun the same no-build checks against the exact head if it changes and reassess after CI completes.
MarcZX10 commented 2026-11-01 20:43:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T20:43:16Z.

Review: COMMENTED


Reviewed — no blocking findings

The 14 scaled guest formats now map to native Vulkan formats, and they are sampled only when the host reports sampled-image support for them. The hosted Windows job passed all 2594 CTest cases at this head, but the default graphics run that contains the new texture-format assertions does not appear by name in that log, so those assertions are not confirmed hosted. Approval waits for the macOS relinker jobs, which were queued at review time.

What I ran

  • Head 999179d6551e464eb56fded9c2c31654e3659cdc; base f2d874c1fdccf781c0fa5d86619bb5dd8894b958. main is now 5bae1a4bc2; the live stack check passed. 6 files, +101/-2.
  • Read the full diff: the device wiring in VulkanDevice.cpp (state, ScaledSampledFormats call, context copy), Context.hpp, TextureFormat.hpp and TextureFormat.cpp (lookup entries, kScaledTextureFormats, ScaledSampledFormats, the guard in SampledTextureFormat), RdnaDescriptorFormat.cpp, and the test file.
  • Descriptor table: 82 entries plus 14 new ones is 96, which matches std::array<FormatInfo, 96>. Lookup is by search, not by index, so order does not matter. The enum names used (for example Format8UScaled = 3, Format8SScaled = 4, Format8_8SScaled = 17, Format16_16SScaled = 26) exist in BufferFormat.hpp.
  • The guest IDs in the PR (3/4, 9/10, 16/17, 25/26, 52/53, 58/59, 67/68) are the ones in the lookup table and in kScaledTextureFormats, and the two lists agree.
  • Host gating: SampledTextureFormat now requires the host bit in context.scaledSampledFormats, which is set from ScaledSampledFormats at device creation. Storage paths go through StorageFormatOrUndefined, which already refuses unsupported formats. MultisampleTarget.cpp line 1325 uses SampledTextureFormat for non-repacked formats.
  • The changed reject moved from format 3 (now valid) to 78; the windows run passed that reject.
  • Precheck: diff check, conventions and PR template, and the live stack check passed. The ABI audit is not applicable (no APS5 export changed) when run by hand. The test-quality finding is a registration false positive: TextureFormat.cpp is listed in tests/cmake/agc_driver_graphics_tests.cmake.
  • Hosted: the windows job reports 2594 of 2594 CTest cases passed, and texture_format_lookup passed (a separate binary). Many Vulkan-gated graphics cases were skipped on that runner. I could not match the default agc_driver_graphics_tests run by name in the log.
  • No MarcZX10 review at this head.

Results

Check Result Note
Diff check passed
Conventions and PR template passed precheck and hosted conventions passed
Mergeability and dependencies passed depends on none; the live stack check passed
Scaled format mapping (TextureFormat.cpp) passed IDs, Vulkan formats and reverse lookup agree with the lists in the diff
Sampled-support gate passed SampledTextureFormat requires the host bit set from ScaledSampledFormats
Descriptor table (RdnaDescriptorFormat.cpp) passed 82 + 14 = 96 entries, matching the array size
ABI audit (manual run) not applicable no APS5 export changed
Test registration (manual run) passed listed in agc_driver_graphics_tests.cmake; the precheck heuristic flag is a false positive
New texture-format assertions, hosted not confirmed the default graphics run does not appear by name in the hosted log (non-blocking)
Hosted CTest (windows) passed 2594 of 2594 cases passed; many Vulkan-gated cases skipped on the runner
Build and runtime tests not run no build here
Negative controls not run no build here
Hosted CI not complete windows and relinker (ubuntu g++, windows g++, asan) passed; the macOS relinker jobs were queued; linux, register-context and write-watch skipped
Commands and unedited precheck output

Commands:

  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14709 --output-dir <scratch>/precheck/14709p (report.md in that directory).
  • Head fetched by URL (objects only): git fetch https://github.com/boykopovar/AnyPS5.git pull/14709/head.
  • Manual helper runs: python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 999179d6551e464eb56fded9c2c31654e3659cdc --json (status not_applicable, 0 symbols with findings) and python3 tools/pr_test_quality.py --root <archive of TextureFormat.cpp at the head> --json core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp (one possible-unregistered-cpp-test finding, a false positive).
  • Hosted checks: gh api repos/boykopovar/AnyPS5/commits/999179d6551e464eb56fded9c2c31654e3659cdc/check-runs; Windows log: the windows job of that run (CTest summary at the end of the log).

Precheck table (unedited):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...999179d6551e464eb56fded9c2c31654e3659cdc
conventions_and_pr_template passed /marc/DeusMachina_0x1914/.venv/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 999179d6551e464eb56fded9c2c31654e3659cdc --title feat(agc): map scaled guest texture formats to native Vulkan formats --body /dev/shm/reviewer-run/precheck/14709p/pr-body.md
changed_export_abi_audit failed /marc/DeusMachina_0x1914/.venv/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 999179d6551e464eb56fded9c2c31654e3659cdc --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14709 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14709p/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /marc/DeusMachina_0x1914/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14709p/head-999179d6551e-24a8a2f8/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14709p/head-999179d6551e-24a8a2f8 --json core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp core/libs/prx/libSceAgcDriver/Graphics/include/TextureFormat.hpp core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run here. The new assertions need a build; the PR body reports a local Windows run with Vulkan validation, which I did not reproduce.

Findings

Blocking

None.

Non-blocking

  • The default agc_driver_graphics_tests run, which reaches RunTextureFormatTests through Graphics.cpp (line 13269), does not appear by name in the hosted log. Please confirm that run is in the hosted set, or give its output for this head, so the new assertions are confirmed on the runner.
  • ResolveTextureFormat now returns the native formats for every caller. The sampled and storage paths check the host. Several DepthSurface.cpp callers (lines 52, 211, 462 and 2800) use the resolved format without that check. The comparisons at lines 446, 619 and 2939 reject it because they compare against depth formats; I did not trace the other four call sites. Please confirm they reject scaled formats or gate them.
  • The PR body describes one NVIDIA RTX 3070 with driver 617.42. The host gate is a runtime check, so other vendors are untested for these formats.

Sources

Not verified

  • No build or run here. The hosted windows results are as stated above; the default graphics run was not found by name in the log.
  • The depth-surface call sites listed above were not all traced.
  • The PR body's local Windows run was not reproduced.
  • The macOS relinker jobs had not finished at review time.

To get this to a good state

  • Nothing blocking. Approval waits for the macOS relinker jobs on this head.
  • Optional: the three non-blocking items above, mainly confirming the default graphics run on the runner.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5730179653 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14709#pullrequestreview-5730179653). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T20:43:16Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The 14 scaled guest formats now map to native Vulkan formats, and they are sampled only when the host reports sampled-image support for them. The hosted Windows job passed all 2594 CTest cases at this head, but the default graphics run that contains the new texture-format assertions does not appear by name in that log, so those assertions are not confirmed hosted. Approval waits for the macOS relinker jobs, which were queued at review time. ## What I ran - Head `999179d6551e464eb56fded9c2c31654e3659cdc`; base `f2d874c1fdccf781c0fa5d86619bb5dd8894b958`. main is now `5bae1a4bc2`; the live stack check passed. 6 files, +101/-2. - Read the full diff: the device wiring in `VulkanDevice.cpp` (state, `ScaledSampledFormats` call, context copy), `Context.hpp`, `TextureFormat.hpp` and `TextureFormat.cpp` (lookup entries, `kScaledTextureFormats`, `ScaledSampledFormats`, the guard in `SampledTextureFormat`), `RdnaDescriptorFormat.cpp`, and the test file. - Descriptor table: 82 entries plus 14 new ones is 96, which matches `std::array<FormatInfo, 96>`. Lookup is by search, not by index, so order does not matter. The enum names used (for example `Format8UScaled = 3`, `Format8SScaled = 4`, `Format8_8SScaled = 17`, `Format16_16SScaled = 26`) exist in `BufferFormat.hpp`. - The guest IDs in the PR (3/4, 9/10, 16/17, 25/26, 52/53, 58/59, 67/68) are the ones in the lookup table and in `kScaledTextureFormats`, and the two lists agree. - Host gating: `SampledTextureFormat` now requires the host bit in `context.scaledSampledFormats`, which is set from `ScaledSampledFormats` at device creation. Storage paths go through `StorageFormatOrUndefined`, which already refuses unsupported formats. `MultisampleTarget.cpp` line 1325 uses `SampledTextureFormat` for non-repacked formats. - The changed reject moved from format 3 (now valid) to 78; the windows run passed that reject. - Precheck: diff check, conventions and PR template, and the live stack check passed. The ABI audit is not applicable (no APS5 export changed) when run by hand. The test-quality finding is a registration false positive: `TextureFormat.cpp` is listed in `tests/cmake/agc_driver_graphics_tests.cmake`. - Hosted: the windows job reports 2594 of 2594 CTest cases passed, and `texture_format_lookup` passed (a separate binary). Many Vulkan-gated graphics cases were skipped on that runner. I could not match the default `agc_driver_graphics_tests` run by name in the log. - No MarcZX10 review at this head. ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and PR template | passed | precheck and hosted conventions passed | | Mergeability and dependencies | passed | depends on none; the live stack check passed | | Scaled format mapping (`TextureFormat.cpp`) | passed | IDs, Vulkan formats and reverse lookup agree with the lists in the diff | | Sampled-support gate | passed | `SampledTextureFormat` requires the host bit set from `ScaledSampledFormats` | | Descriptor table (`RdnaDescriptorFormat.cpp`) | passed | 82 + 14 = 96 entries, matching the array size | | ABI audit (manual run) | not applicable | no APS5 export changed | | Test registration (manual run) | passed | listed in `agc_driver_graphics_tests.cmake`; the precheck heuristic flag is a false positive | | New texture-format assertions, hosted | not confirmed | the default graphics run does not appear by name in the hosted log (non-blocking) | | Hosted CTest (windows) | passed | 2594 of 2594 cases passed; many Vulkan-gated cases skipped on the runner | | Build and runtime tests | not run | no build here | | Negative controls | not run | no build here | | Hosted CI | not complete | windows and relinker (ubuntu g++, windows g++, asan) passed; the macOS relinker jobs were queued; linux, register-context and write-watch skipped | <details><summary>Commands and unedited precheck output</summary> Commands: - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14709 --output-dir <scratch>/precheck/14709p` (report.md in that directory). - Head fetched by URL (objects only): `git fetch https://github.com/boykopovar/AnyPS5.git pull/14709/head`. - Manual helper runs: `python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 999179d6551e464eb56fded9c2c31654e3659cdc --json` (status not_applicable, 0 symbols with findings) and `python3 tools/pr_test_quality.py --root <archive of TextureFormat.cpp at the head> --json core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp` (one possible-unregistered-cpp-test finding, a false positive). - Hosted checks: `gh api repos/boykopovar/AnyPS5/commits/999179d6551e464eb56fded9c2c31654e3659cdc/check-runs`; Windows log: the windows job of that run (CTest summary at the end of the log). Precheck table (unedited): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...999179d6551e464eb56fded9c2c31654e3659cdc` | | conventions_and_pr_template | passed | `/marc/DeusMachina_0x1914/.venv/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 999179d6551e464eb56fded9c2c31654e3659cdc --title feat(agc): map scaled guest texture formats to native Vulkan formats --body /dev/shm/reviewer-run/precheck/14709p/pr-body.md` | | changed_export_abi_audit | failed | `/marc/DeusMachina_0x1914/.venv/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head 999179d6551e464eb56fded9c2c31654e3659cdc --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14709 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14709p/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/marc/DeusMachina_0x1914/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14709p/head-999179d6551e-24a8a2f8/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14709p/head-999179d6551e-24a8a2f8 --json core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp core/libs/prx/libSceAgcDriver/Graphics/include/TextureFormat.hpp core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | </details> ## Negative control Not run here. The new assertions need a build; the PR body reports a local Windows run with Vulkan validation, which I did not reproduce. ## Findings **Blocking** None. **Non-blocking** - The default `agc_driver_graphics_tests` run, which reaches `RunTextureFormatTests` through `Graphics.cpp` (line 13269), does not appear by name in the hosted log. Please confirm that run is in the hosted set, or give its output for this head, so the new assertions are confirmed on the runner. - `ResolveTextureFormat` now returns the native formats for every caller. The sampled and storage paths check the host. Several `DepthSurface.cpp` callers (lines 52, 211, 462 and 2800) use the resolved format without that check. The comparisons at lines 446, 619 and 2939 reject it because they compare against depth formats; I did not trace the other four call sites. Please confirm they reject scaled formats or gate them. - The PR body describes one NVIDIA RTX 3070 with driver 617.42. The host gate is a runtime check, so other vendors are untested for these formats. ## Sources - Device wiring: https://github.com/boykopovar/AnyPS5/blob/999179d6551e464eb56fded9c2c31654e3659cdc/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L1336 and #L4342 - Format lookup, scaled IDs and gate: https://github.com/boykopovar/AnyPS5/blob/999179d6551e464eb56fded9c2c31654e3659cdc/core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp#L137-L173 - Descriptor table: https://github.com/boykopovar/AnyPS5/blob/999179d6551e464eb56fded9c2c31654e3659cdc/core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp#L17 - Test additions: https://github.com/boykopovar/AnyPS5/blob/999179d6551e464eb56fded9c2c31654e3659cdc/core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp#L90-L121 - Default graphics run: https://github.com/boykopovar/AnyPS5/blob/999179d6551e464eb56fded9c2c31654e3659cdc/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L13269 ## Not verified - No build or run here. The hosted windows results are as stated above; the default graphics run was not found by name in the log. - The depth-surface call sites listed above were not all traced. - The PR body's local Windows run was not reproduced. - The macOS relinker jobs had not finished at review time. ## To get this to a good state - Nothing blocking. Approval waits for the macOS relinker jobs on this head. - Optional: the three non-blocking items above, mainly confirming the default graphics run on the runner.
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!14709
No description provided.