test(agc): print hex values of failing checks in hex #7628

Merged
milescoviello merged 1 commit from upstream-pr/7628 into main 2026-10-19 23:37:32 +00:00
milescoviello commented 2026-10-18 17:54:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T17:54:12Z.


What

Four tests printed a value with std::to_string after 0x, so a decimal number read as a hex one:

  • BdaExecution.cpp: the anchor of the three anchored-read checks. On RADV, #7584 got an anchored BDA read differs ... at anchor 0x140733498786049 + 0 + (-1). That anchor is 140733498786049 = 0x7fff12340101, the test's guest + 0x100.
  • PerformanceOverlay.cpp: the pixel word of a glyph pixel that is not white.
  • execution/ImagePackedHorizontalGather.cpp: the gathered and expected register values.
  • execution/OversizedDispatch.cpp: the stored and expected dwords.

Each file now prints these through a local Hex helper, as other tests in tests/execution do: 0x%08x for the 32-bit values, 0x%llx for the 64-bit anchor. Only failure messages change.

Tested

Ubuntu 24.04 (Linux 6.8), GCC 13.3, NVIDIA RTX 4070 Ti (595.99.02), on main 889cee5f9f.

  • agc_performance_overlay, agc_driver_image_packed_horizontal_gather and agc_driver_oversized_dispatch pass 3 runs of 3.
  • agc_driver_bda_device fails with the 5 s fence timeout, as on main with this driver: the hang #7571 fixes.
  • Each changed check was forced to fail once (temporary, not committed) to read the new text:
    • an anchored BDA read differs from the same read through the lookups at anchor 0x7fff12340101 + 0 + (0), 8 bits, 1 dwords
    • '6' of 'FPS: 60.0' glyph pixel 2,0 is not white text: 0xffffffff
    • packed horizontal gather: dmask 15 thread 0 register 0 is 0x04030201, expected 0x04030201
    • The OversizedDispatch check isn't reached on NVIDIA, which takes the test's throwing branch instead of the split coverage.

tools/check_conventions.py --base upstream/main passes. tools/pr_overlap.py lists only #7390, which conflicts with main. It removes CheckNvidiaSplitThrows from OversizedDispatch.cpp, away from the lines changed here.

  • Khronos validation layer (LunarG SDK 1.4.363), NVIDIA RTX 4070 Ti (595.99.02), Ubuntu 24.04: VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -R '^agc_' -V on main f29546ac4e and on main + this PR (de4deb44a1, a local merge). main: 812 of 812 pass; with this PR: 812 of 812 pass. Neither log reports the layer missing. VUIDs on main: VUID-VkImageViewCreateInfo-usage-02275 ×6, VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 ×18, VUID-vkCmdCopyBuffer-srcBuffer-00118 ×2, VUID-vkCmdDispatch-magFilter-04553 ×2, VUID-vkCmdDraw-multisampledRenderToSingleSampled-07285 ×2, VUID-vkCmdWaitEvents-srcStageMask-01158 ×2, VUID-vkSetEvent-event-09543 ×2; with this PR: VUID-VkImageViewCreateInfo-usage-02275 ×6, VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 ×18, VUID-vkCmdCopyBuffer-srcBuffer-00118 ×2, VUID-vkCmdDispatch-magFilter-04553 ×2, VUID-vkCmdDraw-multisampledRenderToSingleSampled-07285 ×2, VUID-vkCmdWaitEvents-srcStageMask-01158 ×2, VUID-vkSetEvent-event-09543 ×2. None is new with this PR. Each of main's is the subject of an open PR: 00118 #7961, 04553 #7707, 07285 #7985, 01158 and 09543 #7913, 00605 #6782, 02275 #862.

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 GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04 (Linux 6.8)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4911405918 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7628). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-18T17:54:12Z. --- ### What Four tests printed a value with `std::to_string` after `0x`, so a decimal number read as a hex one: - `BdaExecution.cpp`: the anchor of the three anchored-read checks. On RADV, #7584 got `an anchored BDA read differs ... at anchor 0x140733498786049 + 0 + (-1)`. That anchor is 140733498786049 = 0x7fff12340101, the test's `guest + 0x100`. - `PerformanceOverlay.cpp`: the pixel word of a glyph pixel that is not white. - `execution/ImagePackedHorizontalGather.cpp`: the gathered and expected register values. - `execution/OversizedDispatch.cpp`: the stored and expected dwords. Each file now prints these through a local `Hex` helper, as other tests in `tests/execution` do: `0x%08x` for the 32-bit values, `0x%llx` for the 64-bit anchor. Only failure messages change. ### Tested Ubuntu 24.04 (Linux 6.8), GCC 13.3, NVIDIA RTX 4070 Ti (595.99.02), on `main` 889cee5f9f. - `agc_performance_overlay`, `agc_driver_image_packed_horizontal_gather` and `agc_driver_oversized_dispatch` pass 3 runs of 3. - `agc_driver_bda_device` fails with the 5 s fence timeout, as on `main` with this driver: the hang #7571 fixes. - Each changed check was forced to fail once (temporary, not committed) to read the new text: - `an anchored BDA read differs from the same read through the lookups at anchor 0x7fff12340101 + 0 + (0), 8 bits, 1 dwords` - `'6' of 'FPS: 60.0' glyph pixel 2,0 is not white text: 0xffffffff` - `packed horizontal gather: dmask 15 thread 0 register 0 is 0x04030201, expected 0x04030201` - The `OversizedDispatch` check isn't reached on NVIDIA, which takes the test's throwing branch instead of the split coverage. `tools/check_conventions.py --base upstream/main` passes. `tools/pr_overlap.py` lists only #7390, which conflicts with `main`. It removes `CheckNvidiaSplitThrows` from `OversizedDispatch.cpp`, away from the lines changed here. - Khronos validation layer (LunarG SDK 1.4.363), NVIDIA RTX 4070 Ti (595.99.02), Ubuntu 24.04: `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -R '^agc_' -V` on `main` f29546ac4e and on `main` + this PR (de4deb44a1, a local merge). `main`: 812 of 812 pass; with this PR: 812 of 812 pass. Neither log reports the layer missing. VUIDs on `main`: `VUID-VkImageViewCreateInfo-usage-02275` ×6, `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605` ×18, `VUID-vkCmdCopyBuffer-srcBuffer-00118` ×2, `VUID-vkCmdDispatch-magFilter-04553` ×2, `VUID-vkCmdDraw-multisampledRenderToSingleSampled-07285` ×2, `VUID-vkCmdWaitEvents-srcStageMask-01158` ×2, `VUID-vkSetEvent-event-09543` ×2; with this PR: `VUID-VkImageViewCreateInfo-usage-02275` ×6, `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605` ×18, `VUID-vkCmdCopyBuffer-srcBuffer-00118` ×2, `VUID-vkCmdDispatch-magFilter-04553` ×2, `VUID-vkCmdDraw-multisampledRenderToSingleSampled-07285` ×2, `VUID-vkCmdWaitEvents-srcStageMask-01158` ×2, `VUID-vkSetEvent-event-09543` ×2. None is new with this PR. Each of `main`'s is the subject of an open PR: 00118 #7961, 04553 #7707, 07285 #7985, 01158 and 09543 #7913, 00605 #6782, 02275 #862. ### 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 GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04 (Linux 6.8) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-18 18:10:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T18:10:25Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 7332 core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253350179 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7628#issuecomment-6253350179). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T18:10:25Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp` |
adriadam10 commented 2026-10-19 23:38:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T23:38:00Z.


Checked the four Hex helpers (includes, types, no name clashes) and every changed message; only failure text changes. Merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6279745975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7628#issuecomment-6279745975). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T23:38:00Z. --- Checked the four `Hex` helpers (includes, types, no name clashes) and every changed message; only failure text changes. Merged.
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!7628
No description provided.