Skip to content

fix(libSceAgcDriver): decode PS4 tiled scanouts in their own layout on the CPU path - #9673

Merged
adriadam10 merged 8 commits into
boykopovar:mainfrom
ntamas94:up/ps4-gcn-scanout-decode
Nov 6, 2026
Merged

adriadam10 merged 8 commits into
boykopovar:mainfrom
ntamas94:up/ps4-gcn-scanout-decode

Conversation

@ntamas94

@ntamas94 ntamas94 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What

DecodeDisplayBuffer's 4-byte loop worked out the tiled offset inline and only knew the linear (tilingMode == 1) and PS5 64 KiB layouts. A PS4 Display2D scanout (DisplayTilingGcn) fell into the 64 KiB branch and came out scrambled. The half-float loop and DisplayBufferOffset already go through texelOffset, which handles all three layouts, so the 4-byte loop now calls it too. For the linear and 64 KiB cases texelOffset(buffer, x, y, 4) gives the same offsets as the removed code.

The CPU decode only runs when a flip has no pending image to blit: the first flip, or with APS5_STORE_AT_LABEL=1 / APS5_EAGER_WRITEBACK=1. That is why the default path looks fine and the knobs showed a broken image. The Display2D retile of the render target was correct; only this read was wrong.

Note: texelOffset computes the GCN address of every texel one by one, so a 1080p CPU decode takes about 116 ms, against 9.4 ms for the old (wrong) 64 KiB formula. The half-float loop pays the same cost today. I left it as it is because this path only runs on the first flip or with the debug knobs. A new debt entry, "CPU scanout decode", records the cost and when the decode runs: for a linear buffer at every flip; for a tiled one only for a frame dump or screenshot read from guest memory, which is the case when no resident image is pending, that is the first flip, or every flip while APS5_STORE_AT_LABEL or APS5_EAGER_WRITEBACK writes the results back before the flip. The sceVideoOutRegisterBuffers entry in docs/dev/debt/libSceVideoOut.md still said that tiled PS4 buffers throw; it now points at the tiled-buffer entry and at the decode entry.

main now carries the DisplayBuffer.cpp change itself (574321b, which came in with #9432), so on this branch the PR's diff against main is the GcnDisplay test in LinearDisplayBuffer.cpp and the two debt-entry updates.

This moves Get-fix#18 (opened against ps4/limbo-gpu) to main, as Get-fix asked there. It was stacked on #9431, which is merged; the branch now has current main merged in.

Landing order: #9891 (822a9ea) sends every GCN-tiled flip without a resident image through ReadDisplayBuffer, i.e. through the decode this PR fixes, so this PR should land before #9891 or with it; the "CPU scanout decode" debt entry then gains one sentence for that path.

Tested

Windows 11 Pro (10.0.26200), WinLibs GCC, NVIDIA GeForce RTX 2080 (driver 617.14), Release build with BUILD_TESTING=ON, on this branch with current main (f79ea3f) merged in; #9431 is merged, so the branch's diff against main is this PR's own change:

  • New GcnDisplay case in linear_display_buffer: it fills a 1920x1024 DisplayTilingGcn buffer through DisplayBufferOffset and checks that every decoded pixel lands at its linear position. It passes; with DisplayBuffer.cpp reverted to the base it fails.
  • linear_display_buffer, agc_display_buffer_dcc and video_out_hdr_present pass, three runs each.
  • Earlier, on fix(libSceAgcDriver): decode PS4 tiled scanouts in their own layout on the CPU path Get-fix/AnyPS5#18: Gang Beasts (CUSA04865) and Knowledge is Power: Decades (CUSA12435) with APS5_STORE_AT_LABEL=1: before, the frames were scrambled; now the title screen, level0, level11 and the KiP intro and tutorial screens render correctly.
  • tools/check_conventions.py --base main (f79ea3f) with this title and description: no findings.
  • Paired validation-layer run: main f79ea3f (100% of the 25 tests that exist there passed, the depth, display-buffer and graphics tests of this stack) and this branch with that main merged in (100% tests passed out of 3: linear_display_buffer, agc_display_buffer_dcc, video_out_hdr_present) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's adding layers "VK_LAYER_KHRONOS_validation" line (62 and 2 times) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0.

Checklist

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 22, 2026
@github-actions

github-actions Bot commented Oct 22, 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 2434 docs/dev/debt/libSceAgcDriver.md
PR 4040 docs/dev/debt/libSceVideoOut.md
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6146 docs/dev/debt/libSceAgcDriver.md
PR 6185 docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6743 docs/dev/debt/libSceAgcDriver.md
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6926 docs/dev/debt/libSceAgcDriver.md
PR 6973 docs/dev/debt/libSceAgcDriver.md
PR 6977 docs/dev/debt/libSceVideoOut.md
PR 6987 docs/dev/debt/libSceAgcDriver.md
PR 6989 docs/dev/debt/libSceAgcDriver.md
PR 6995 docs/dev/debt/libSceAgcDriver.md
PR 7002 docs/dev/debt/libSceAgcDriver.md
PR 7085 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 docs/dev/debt/libSceAgcDriver.md
PR 7668 docs/dev/debt/libSceAgcDriver.md
PR 7978 docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8707 docs/dev/debt/libSceAgcDriver.md
PR 9020 docs/dev/debt/libSceAgcDriver.md
PR 9154 docs/dev/debt/libSceVideoOut.md
PR 9318 docs/dev/debt/libSceAgcDriver.md
PR 9335 docs/dev/debt/libSceAgcDriver.md
PR 9356 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9432 docs/dev/debt/libSceVideoOut.md
PR 9508 docs/dev/debt/libSceAgcDriver.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9700 docs/dev/debt/libSceAgcDriver.md
PR 9742 docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9891 core/libs/prx/libSceAgcDriver/Execution/src/DisplayBuffer.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9892 docs/dev/debt/libSceAgcDriver.md
PR 9893 docs/dev/debt/libSceAgcDriver.md
PR 9895 docs/dev/debt/libSceAgcDriver.md
PR 9898 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/libSceVideoOut.md
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10049 docs/dev/debt/libSceAgcDriver.md
PR 10064 docs/dev/debt/libSceAgcDriver.md
PR 10112 docs/dev/debt/libSceVideoOut.md
PR 10193 docs/dev/debt/libSceAgcDriver.md
PR 10233 docs/dev/debt/libSceAgcDriver.md
PR 10256 docs/dev/debt/libSceAgcDriver.md
PR 10351 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10469 docs/dev/debt/libSceAgcDriver.md
PR 10472 docs/dev/debt/libSceAgcDriver.md
PR 10492 docs/dev/debt/libSceAgcDriver.md
PR 10497 docs/dev/debt/libSceAgcDriver.md
PR 10743 docs/dev/debt/libSceAgcDriver.md
PR 10779 docs/dev/debt/libSceAgcDriver.md
PR 11104 docs/dev/debt/libSceAgcDriver.md
PR 11346 docs/dev/debt/libSceAgcDriver.md
PR 11551 docs/dev/debt/libSceAgcDriver.md
PR 11557 docs/dev/debt/libSceAgcDriver.md
PR 11587 docs/dev/debt/libSceAgcDriver.md
PR 11731 docs/dev/debt/libSceVideoOut.md
PR 11825 docs/dev/debt/libSceAgcDriver.md
PR 11995 docs/dev/debt/libSceAgcDriver.md
PR 11998 docs/dev/debt/libSceAgcDriver.md
PR 12120 docs/dev/debt/libSceAgcDriver.md
PR 12452 docs/dev/debt/libSceAgcDriver.md
PR 12565 docs/dev/debt/libSceAgcDriver.md
PR 12567 docs/dev/debt/libSceAgcDriver.md
PR 12568 docs/dev/debt/libSceAgcDriver.md
PR 12764 docs/dev/debt/libSceAgcDriver.md
PR 12792 docs/dev/debt/libSceAgcDriver.md
PR 12840 docs/dev/debt/libSceAgcDriver.md
PR 12855 docs/dev/debt/libSceAgcDriver.md
PR 12863 docs/dev/debt/libSceVideoOut.md
PR 12904 docs/dev/debt/libSceAgcDriver.md
PR 12930 docs/dev/debt/libSceVideoOut.md
PR 13021 docs/dev/debt/libSceAgcDriver.md
PR 13023 docs/dev/debt/libSceAgcDriver.md
PR 13041 docs/dev/debt/libSceVideoOut.md
PR 13146 docs/dev/debt/libSceAgcDriver.md
PR 13147 docs/dev/debt/libSceAgcDriver.md
PR 13151 docs/dev/debt/libSceAgcDriver.md
PR 13248 docs/dev/debt/libSceAgcDriver.md
PR 13474 docs/dev/debt/libSceAgcDriver.md
PR 13599 docs/dev/debt/libSceAgcDriver.md
PR 13707 docs/dev/debt/libSceAgcDriver.md
PR 13793 docs/dev/debt/libSceAgcDriver.md
PR 13809 docs/dev/debt/libSceAgcDriver.md
PR 13858 docs/dev/debt/libSceAgcDriver.md
PR 13863 docs/dev/debt/libSceAgcDriver.md
PR 13920 docs/dev/debt/libSceAgcDriver.md
PR 13928 docs/dev/debt/libSceAgcDriver.md
PR 13929 docs/dev/debt/libSceAgcDriver.md
PR 13963 docs/dev/debt/libSceAgcDriver.md
PR 13991 docs/dev/debt/libSceAgcDriver.md
PR 13994 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/libSceVideoOut.md
PR 14005 docs/dev/debt/libSceAgcDriver.md
PR 14018 docs/dev/debt/libSceAgcDriver.md
PR 14085 docs/dev/debt/libSceAgcDriver.md
PR 14106 docs/dev/debt/libSceVideoOut.md
PR 14212 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/libSceVideoOut.md
PR 14220 docs/dev/debt/libSceAgcDriver.md
PR 14243 docs/dev/debt/libSceAgcDriver.md
PR 14248 docs/dev/debt/libSceAgcDriver.md
PR 14265 docs/dev/debt/libSceAgcDriver.md
PR 14296 docs/dev/debt/libSceAgcDriver.md
PR 14302 docs/dev/debt/libSceAgcDriver.md
PR 14311 docs/dev/debt/libSceAgcDriver.md
PR 14344 docs/dev/debt/libSceAgcDriver.md
PR 14561 docs/dev/debt/libSceAgcDriver.md
PR 14621 docs/dev/debt/libSceAgcDriver.md
PR 14628 docs/dev/debt/libSceAgcDriver.md
PR 14815 docs/dev/debt/libSceAgcDriver.md
PR 14909 docs/dev/debt/libSceAgcDriver.md
PR 14941 docs/dev/debt/libSceVideoOut.md
PR 14943 docs/dev/debt/libSceAgcDriver.md
PR 14944 docs/dev/debt/libSceAgcDriver.md
PR 14950 docs/dev/debt/libSceAgcDriver.md
PR 14954 docs/dev/debt/libSceVideoOut.md
PR 14963 docs/dev/debt/libSceAgcDriver.md
PR 14964 docs/dev/debt/libSceAgcDriver.md
PR 14976 docs/dev/debt/libSceAgcDriver.md
PR 14982 docs/dev/debt/libSceAgcDriver.md
PR 14993 docs/dev/debt/libSceAgcDriver.md
PR 15058 docs/dev/debt/libSceAgcDriver.md

@fogydes

fogydes commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Reviewed; the CPU-path drop-in is exact. For the linear case texelOffset keeps the byte-identical (y * pitch + x) * 4 formula (same pitchInPixel == 0 → width fallback), and for the new DisplayTilingGcn mode the 64 KiB tiling degenerates to the same {(y / 128) * blocksPerRow * 65536 + tileOffset(x,y)} the old branch computed by hand — the removal of the hoisted blocksPerRow is a pure move into texelOffset. The gcnLayout helper is cached in a thread_local keyed on (pitch, height, texelBytes), so the decode loop doesn't rebuild the layout per texel; good touch. The new validations for the mode are the right guards (no DCC, no half-float texels, pitch padded to 128 pixels, pitch covering width, the 4 KiB alignment rule extended to this mode), and DecodeDisplayBuffer picks the mode up through the same function so no second tiling implementation exists. The test fills the full 1920x1024 buffer's every texel through the public offset function and reads it back, which is the right shape for a tiling change.

One process note (from the stack): this PR's conflict surface is entirely #9431's — its own two topic files are untouched on main since the merge-base — so the rebase cost arrives with the stack, not with this commit.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The isolated change routes the 4-byte decode through the existing texelOffset path, and the new linear_display_buffer case exercises a full 1920x1024 GCN scanout mapping. Current-main conventions and git diff --check pass. The PR is currently CONFLICTING with main; its declared dependency #9431 is also conflicting.

Because this changes the AGC driver, CONTRIBUTING requires paired focused tests on main and the change with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, and ANYPS5_REQUIRE_VULKAN=1, using ctest -V on the same machine/GPU. Please confirm the requested layer loaded, compare the logs for newly introduced VUID- errors, and record the GPU on the checklist. The reported Windows/NVIDIA test and two title runs are useful but do not include the required validation-layer comparison.

The description reports the CPU fallback as broken for Gang Beasts (CUSA04865) and Knowledge is Power: Decades (CUSA12435), but the checklist says Unblocks: none. Please reconcile that checklist with the title evidence and link each applicable Game bring-up discussion; if a discussion is missing, follow the repository's title tracking rule. The report also measures 116 ms for a 1080p decode on this path; please keep that latency visible in the technical-debt/known-limit description and confirm whether it is confined to the first flip or can recur with the debug knobs.

@ntamas94

Copy link
Copy Markdown
Contributor Author

Thanks. Two of the three points are addressed on the branch:

  • Unblocks now names both titles: Gang Beasts (CUSA04865, Gang Beasts (CUSA04865) #7941) and Knowledge is Power: Decades (CUSA12435, Knowledge is Power: Decades (CUSA12435) #9718).
  • A new debt entry, "CPU scanout decode", records the 116 ms 1080p decode and when it runs: for a linear buffer at every flip; for a tiled buffer only for a frame dump or a screenshot read from guest memory, which is the case when the flip finds no resident image pending, that is the first flip, or every flip while APS5_STORE_AT_LABEL or APS5_EAGER_WRITEBACK writes the results back before the flip. So it does recur with the knobs, once per flip. The sceVideoOutRegisterBuffers debt entry still said tiled PS4 buffers throw; it now points at the tiled-buffer and decode entries.

The conflict is #9431's (Graphics/src/State.cpp); this commit's two files are untouched on main. I will rebase once Get-fix has rebased #9431. Paired validation-layer run, now in the description: main (100% tests passed, main build 7e2ba73) and this branch (100% tests passed) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's adding layers "VK_LAYER_KHRONOS_validation" line (78 and 2 times) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 22, 2026
ntamas94 and others added 2 commits October 22, 2026 13:26
…n the CPU path

DecodeDisplayBuffer's 4-byte loop computed the tiled offset itself and
only knew the linear and PS5 64 KiB layouts, so a PS4 Display2D scanout
(DisplayTilingGcn) was read with the PS5 formula and came out scrambled.
The half-float loop and DisplayBufferOffset already go through
texelOffset, which handles all three; the 4-byte loop now does too.

The path only runs when a flip has no pending image to blit (the first
flip, or with APS5_STORE_AT_LABEL / APS5_EAGER_WRITEBACK set).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at it costs

ReadDisplayBuffer decodes a DisplayTilingGcn scanout texel by texel, about 116 ms for 1920x1080. It runs for a linear buffer at every flip, and for a tiled one only for a frame dump or screenshot read from guest memory, which is the case when no resident image is pending at the flip: the first flip, or every flip while APS5_STORE_AT_LABEL or APS5_EAGER_WRITEBACK writes results back first.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the checklist with both title discussions and recording the repeated 116 ms decode cost, and for adding the paired validation-layer results. Those address the title-link, known-cost and validation-evidence points from the earlier review. The remaining blocker is the stack: #9431 still conflicts with current main, and this PR is based on its earlier head. The reported before/after runs use main 7e2ba73, while current main has advanced. Please rebase after #9431 is refreshed and rerun the focused display-buffer checks plus the affected title path against the resulting current-main merge base; then update the bring-up discussions if the furthest point or blocker changes. The host-report results are author-reported; I did not run a local build because no build tree is configured and the filesystem is full.

@ntamas94
ntamas94 force-pushed the up/ps4-gcn-scanout-decode branch from 1d3bed6 to 0eb1dce Compare October 22, 2026 13:21
@ntamas94

Copy link
Copy Markdown
Contributor Author

Rebased onto #9431's new head (26d651d3e, on main 7e2ba73e4); both commits applied without conflicts. linear_display_buffer and video_out_hdr_present pass on the new base. Paired validation-layer run, now in the description: main (100% tests passed, main build 7e2ba73) and this branch (100% tests passed) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's adding layers "VK_LAYER_KHRONOS_validation" line (78 and 2 times) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 22, 2026
@ntamas94

Copy link
Copy Markdown
Contributor Author

Gang Beasts (CUSA04865) on the current stack: main 7e2ba73 + #9430, #9431, #9432 (Get-fix's rebased heads) + #9671-#9676, relinked with --windows --registry --module-dir Media/Modules --module-dir Media/Plugins and run with APS5_GNM_SUBMIT_WAIT_IDLE=1 on the same machine as the validation runs (NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 10.0.26200). Furthest point: title screen, Local, costume select, match setup, a stage in play (sharedassets13); 330 s, stopped by the run's timeout, no crash, about 42 FPS in the stage ([present] 418 presents over 10 s), 13,771 presents from the resident image, not implemented and AGC graphics: throws: 0.

The six pull requests alone do not carry the title over main; the bare stack stopped, in this order, on: the PS4 T# base address read as 40 bits (storage texture has no committed guest pages; fixed by Get-fix#1's 38-bit base address commit a2bd6f6, not in #9431), the rect-list point/line polygon-mode throw that e61d31d added (register 0x205 = 0x12c; run with a local stand-in that draws it filled, PS4 behaviour not measured), the GCN image dimension taken from the T# and MTBUF (Get-fix#1 f9b38d1 and 6350d27), and the white lighting without #6948. Those were added for the run and will be listed on the bring-up discussion #7941 with the log; the run log (11 MB) is kept and can be attached there.

For this PR: the CPU decode ran once, on the first flip (through guest memory: 1 not pending in [flip] (cumulative)), the other 13,771 presents went through the resident image as expected.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@github-actions github-actions Bot added docs prx agc libSceAgc* needs rebase Conflicts with main, rebase needed labels Oct 22, 2026
@ntamas94

Copy link
Copy Markdown
Contributor Author

The conflict is in the base: #9431 (and #9432 over it) conflicts with current main in core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp since 02dde0f (feat(agc): expose expanded FMASK for tracked native owners); this branch adds no conflict of its own (its merge with main fails on that one file only). I will rebase onto #9431's next head as soon as Get-fix has rebased it, and rerun the focused tests, the paired validation and the checks on that merge commit.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@ntamas94

Copy link
Copy Markdown
Contributor Author

Landing-order note, and it matters for correctness: @savvaniss's #9891 includes 822a9ea (present a PS4 display buffer that is not resident through the GCN decode), which sends every GCN-tiled flip without a resident image through ReadDisplayBuffer, the CPU decode this PR fixes. On #9431 that decode's 4-byte loop still reads DisplayTilingGcn with the PS5 64 KiB formula, so without this PR those flips would show a scrambled image instead of the error #9891 removes. So this PR should land before #9891, or #9891 should depend on it. It also changes when the 116 ms decode runs: with #9891 it runs on every tiled flip that finds no resident image, not only for frame dumps and screenshots, so the "CPU scanout decode" debt entry needs one sentence more. I will add it to this PR as soon as #9891's order is settled; the two PRs do not conflict textually.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@ntamas94

Copy link
Copy Markdown
Contributor Author

Thanks, @oneandonlydean, for checking the 822a9ea interaction. This PR is ready on its side: as soon as Get-fix has rebased #9431, I will bring it onto the new head first and rerun the focused display-buffer tests, the paired validation and the checks there.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@adriadam10 adriadam10 self-assigned this Oct 24, 2026

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the two commits that are this PR's own (68543e4, 0eb1dce). The change itself is right: texelOffset(buffer, x, y, 4u) covers linear, 64 KiB and DisplayTilingGcn, and GcnDisplay pins every pixel of a 1920x1024 GCN buffer through DisplayBufferOffset, so it fails with the old 64 KiB formula.

  • docs/dev/debt/libSceVideoOut.md:26 says "registers as DisplayTilingGcn (next entry)", but there is no next entry in that file. Point it at the "PS4 (GCN) tiling" entry in docs/dev/debt/libSceAgcDriver.md instead.
  • The branch conflicts with main through its base #9431 (GuestTextureResource.hpp). Please rebase onto #9431's refreshed head and rerun linear_display_buffer; it can merge once #9431 and #9672 have landed.

ntamas94 and others added 2 commits October 24, 2026 04:40
…entry

The sceVideoOutRegisterBuffers entry referred to a "next entry" for the DisplayTilingGcn layout that is not in this file; it now names the PS4 (GCN) tiling entry in libSceAgcDriver.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both references to libSceAgcDriver.md now share one link, which brings the entry back under 1000 characters.

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

Copy link
Copy Markdown
Contributor Author

Thanks, @adriadam10. Fixed the reference in 3840ec6 (with d2f3810): the sceVideoOutRegisterBuffers entry in docs/dev/debt/libSceVideoOut.md no longer points at a "next entry"; it names the PS4 (GCN) tiling and CPU scanout decode entries in libSceAgcDriver.md, and stays under the 1000-character limit. Docs only, so no test changed; check_conventions: no findings.

The rebase waits for #9431's refreshed head (still 26d651d); I will bring this PR onto it first, rerun linear_display_buffer and video_out_hdr_present and the paired validation there, and leave the merge order after #9431 and #9672 as you describe.

AI-assisted: yes (Claude Code)

…cn-scanout-decode

# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp
#	core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
#	core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
#	core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
#	docs/dev/debt/libSceVideoOut.md
@ntamas94

Copy link
Copy Markdown
Contributor Author

#9431 is merged, so this branch now has current main (f7e84c4) merged in instead of sitting on #9431's old head. Merge, not rebase, so the earlier review links stay valid; the branch's diff against main is now only this PR's own change (DisplayBuffer.cpp, LinearDisplayBuffer.cpp and the two debt files).

@adriadam10: the libSceVideoOut.md reference fix (3840ec6) is in, and the conflict that came through #9431 (GuestTextureResource.hpp) is gone with it: I took main's version of every file this PR does not touch. The one conflict of its own was in libSceVideoOut.md, where main added the sceVideoOutGetFlipStatus, sceVideoOutIsFlipPending entry next to the PS4 sceVideoOutRegisterBuffers line; both are kept.

On the merge head: linear_display_buffer (with the GcnDisplay case), agc_display_buffer_dcc and video_out_hdr_present pass, three runs each. Paired validation-layer run, main f7e84c4 against this branch, same env as before: 0 VUID- ids on both sides, the layer is loaded on both (60 and 2 loader lines), no was not found line. check_conventions --base main with the updated description: no findings. The description now says Depends on: none (#9431 is merged).

@MarcZX10: the title path (Gang Beasts and KiP with APS5_STORE_AT_LABEL=1) has not been rerun on current main; the evidence there is still the earlier Get-fix run, as the description says.

AI-assisted: yes (Claude Code)

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 643057ce944c6a8c0d8d74eb278b376dd0010295. Current main (f7e84c4cf1) is an ancestor; check_main_sync reports a clean merge with no files changed on both sides. The remaining four-file diff routes the 4-byte decode through texelOffset, adds a full 1920x1024 GCN-layout round-trip test, and updates the two relevant debt descriptions. Current-main conventions and git diff --check pass. The PR reports paired validation-layer runs on the same RTX 2080/Windows setup: the layer was loaded on both trees, 0 VUID- IDs on either, plus three focused tests passing on the branch. I did not independently run the GPU tests locally. The prior blockers about #9431/current-main integration, title links, decode-cost documentation, and validation evidence are addressed; approving this head.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 29, 2026
@TechLevelZero

TechLevelZero commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 643057c merged onto main 98ddd9c · tested 2026-10-30 12:51 UTC · 22 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,284 passed · 2 failed (0 new, 2 also fail on main) · 40 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,326 of 2,987 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (861 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_bda_device 46.9 s
Failing on main too (2, not counted against this PR)
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 390 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (390 tests): agc_compute_pipeline_replay, agc_driver, agc_driver_address_passes_draw_transitions, agc_driver_address_passes_targets_split, agc_driver_array_layer_target_cpu, agc_driver_bda_span_reads_draw_pipeline, agc_driver_bindless_images, agc_driver_branch_past_endpgm, and 382 more
VUID-vkCmdCopyImage-srcImage-01548 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-vkCmdCopyImage-srcImage-01551 (13 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_cpu_write_after_memo, agc_driver_depth_plane_cpu_write_after_page_unwatch, agc_driver_depth_plane_cpu_write_after_partial_unwatch, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_partial_store_unimported, agc_driver_depth_plane_sampling, and 5 more
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (40)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_msaa_dcc_compared_import_2: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_4: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_msaa_dcc_compared_import_8: skipped, the device reports host imports that keep write protection, so the write-watch probe compares none of them
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fresh: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_labels: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is eithe
Reproduce
git fetch origin 643057ce944c6a8c0d8d74eb278b376dd0010295 98ddd9c1792bbab016ceed5db267a93d1d61f00a
git checkout 98ddd9c1792bbab016ceed5db267a93d1d61f00a && git merge --no-ff 643057ce944c6a8c0d8d74eb278b376dd0010295
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@blawesom

Copy link
Copy Markdown
Contributor

Static review plus an independent Linux/AMD run on both trees per the repo AGENTS AGC/display protocol (CachyOS, kernel 7.2.10, GCC 16.2.1, Ninja 1.13.2, Release, BUILD_TESTING=ON, Ryzen 7 9800X3D). No findings.

What I checked (static)

  • The old tiled-offset arithmetic in DecodeDisplayBuffer was inline and only handled the PS5 layout (tilingMode == 1 linear else the 128x128/64 KiB block equation); the change replaces it with a single call to texelOffset(buffer, x, y, 4u) — the shared helper that already dispatches per tiling mode. Adding DisplayTilingGcn decodes through the right equation without a third copy of the arithmetic, and the deleted blocksPerRow/pitch locals confirm no PS5 path changed semantics.
  • The new GcnDisplay() case fills a DisplayTilingGcn 1920x1024 buffer with per-coord texel stamps, decodes, and compares every texel of the linear output — an end-to-end round trip, not a spot check of the helpers alone. Two probe asserts pin the layout's two offsets (x=4,y=0 → 32, x=0,y=1 → 16) before the fill.
  • Debt notes updated in both libSceAgcDriver.md (the CPU scanout decode entry now records the per-tile decode cost honestly: 116 ms for a 1920x1080 GCN decode vs the 9.4 ms the wrong formula used to take — a real perf consequence recorded, not hidden) and libSceVideoOut.md (PS4 tiled buffers now register as DisplayTilingGcn "and is read in that layout" instead of "throw"). Both entries keep measured/unmeasured separable.

Focused paired run (VVL env)

tree linear_display_buffer agc_display_buffer_dcc VUID- missing-layer
this head d339 Passed (0.08s) Passed (0.00s) 0 0
main bb04a4f1ea Passed (0.02s) Passed (0.00s) 0 0

Comparing logs, no new validation errors from this change.

Notes

  • First pass reported both fixtures "Not Run" because I mistyped the agc_display_buffer_dcc_tests target name in the build command and ninja aborted before building either — same stale/missing-binary class as noted on fix(agc): copy a linked pipeline's color sample counts only when it has color attachments #7985/fix(agc): give small device-local buffers a pool tier of their own #8912, and my own naming slip here, not the change. Rebuilt with the correct names, both pass.
  • The GCN decode is correct-by-round-trip against the same helper the writer test stamps with; the debt note's new cost figure (116 ms per frame decode) is the author's, unverified by me, and worth watching if it lands on the critical flip path — the note says the CPU scanout only runs on dump/screenshots or linear flips, which keeps it off the steady-state path.

savvaniss added a commit to savvaniss/AnyPS5 that referenced this pull request Oct 30, 2026
…n the CPU path

DecodeDisplayBuffer's 4-byte loop only knew the linear and PS5 64 KiB
layouts, so a DisplayTilingGcn buffer came out scrambled. It now goes
through texelOffset, as the half-float loop and DisplayBufferOffset do.
This is the same change as boykopovar#9673, carried here because a non-resident
PS4 flip now reaches this decode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cn-scanout-decode

# Conflicts:
#	docs/dev/debt/libSceAgcDriver.md
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 31, 2026
@ntamas94

ntamas94 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

main has moved (b7d3fd3), and 868b0f8 merges it. The only conflict was in docs/dev/debt/libSceAgcDriver.md, where main's new "Queue-idle storage write-back" entry and this PR's "CPU scanout decode" entry landed in the same place; both are kept. The branch's diff against main is still this PR's four files.

On the merge head:

  • linear_display_buffer (with the GcnDisplay case), agc_display_buffer_dcc and video_out_hdr_present pass, three runs each.
  • Paired validation-layer run against main b7d3fd3, built on the same machine with the same env: 25 tests and 3 tests, all passed. The layer is loaded on both sides, there is no was not found line, and there are 0 VUID- ids on either side.
  • check_conventions --base main: no findings.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 31, 2026
@TechLevelZero

TechLevelZero commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 868b0f8 merged onto main d5ec8e6 · tested 2026-11-01 12:19 UTC · 29 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,430 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 45 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,480 of 3,148 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (931 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 111.7 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_submit_progress: failed in 6 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 8 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (5 IDs in 484 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (484 tests): agc_driver, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 476 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
VUID-VkShaderModuleCreateInfo-pCode-08737 (1 test): agc_driver_image_sample_derivatives
Skipped (45)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_main: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_fps_limit: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_o
Reproduce
git fetch origin 868b0f880dc2040335f9ce87e8c6baba341373bb d5ec8e6575be37f4340ded9c64c51b1d07076b51
git checkout d5ec8e6575be37f4340ded9c64c51b1d07076b51 && git merge --no-ff 868b0f880dc2040335f9ce87e8c6baba341373bb
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@ntamas94

ntamas94 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

@adriadam10, could you take another look when you have a moment? Your changes-requested from 2026-10-24 is still the active one on this PR. Both of its points are done on the current head (868b0f8):

linear_display_buffer (with the GcnDisplay case), agc_display_buffer_dcc and video_out_hdr_present pass on that head, three runs each. The paired validation-layer run against the same main shows 0 VUID- on both sides. MarcZX10 approved on 2026-10-29.

AI-assisted: yes (Claude Code)

…cn-scanout-decode

# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp
#	core/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hpp
#	core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
#	docs/dev/debt/libSceAgcDriver.md
#	docs/dev/debt/libSceVideoOut.md
@ntamas94

ntamas94 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

main moved again (f79ea3f, with #9432), and 56d0c42 merges it. That main already carries this PR's decode change: 574321b is the DisplayBuffer.cpp commit, and it came in with #9432. So the PR's diff against main is now only the GcnDisplay test in LinearDisplayBuffer.cpp and the two debt-entry updates.

The conflicts were all in files from the old stack, and those now match main. In libSceVideoOut.md, main's new "PS4 tiled display buffers" entry is kept, and the PS4 sceVideoOutRegisterBuffers line keeps this PR's pointer to the GCN tiling and scanout decode entries.

On the merge head:

  • linear_display_buffer, agc_display_buffer_dcc and video_out_hdr_present pass, three runs each.
  • Paired validation-layer run against main f79ea3f: 0 VUID- on both sides, with the layer loaded.
  • check_conventions --base main: no findings.

The description is updated.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 6, 2026
@adriadam10
adriadam10 merged commit 9216219 into boykopovar:main Nov 6, 2026
12 of 13 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Both points of the earlier review are addressed: the libSceVideoOut.md entry now points at the PS4 (GCN) tiling and CPU scanout decode entries in libSceAgcDriver.md, and the conflict went away with #9431/#9432/#9672 on main. The GcnDisplay test pins every pixel of a 1920x1024 GCN buffer; NVIDIA and Linux/AMD runs by other reviewers are clean; merged.

@github-actions github-actions Bot removed the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs prx unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants