Skip to content

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

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
milescoviello:test/hex-failure-values
Oct 19, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
milescoviello:test/hex-failure-values

Conversation

@milescoviello

@milescoviello milescoviello commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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, agc_driver_bda_device times out in vkWaitForFences since the BDA anchor lookup (#5859, d422c760c) #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 889cee5.

  • 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 fix(shader): leave the BDA lookup functions through one return #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.

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

Four tests printed a value with std::to_string after "0x", so a decimal number
read as a hex one. The anchor of a differing anchored BDA read, guest + 0x100,
was reported as 0x140733498786049 instead of 0x7fff12340101. They now print
these values in hex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the agc libSceAgc* label Oct 18, 2026
@adriadam10 adriadam10 self-assigned this Oct 19, 2026
@adriadam10
adriadam10 merged commit ea40a70 into boykopovar:main Oct 19, 2026
12 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants