Repository navigation
Conversation
|
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.
|
jotitadev
left a comment
There was a problem hiding this comment.
NVIDIA run, since the description covers Intel ANV and lavapipe.
Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04 (kernel 7.0.0-38), i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head b376cf53b merged onto main bc400bede, clean merge.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04
agc_driver_border_color_tablepasses 3/3 on the RTX 3070 (0.28-0.34 s,border color table tests passed, not skipped) and 3/3 on lavapipe. So theVK_EXT_custom_border_colorpath withcustomBorderColorWithoutFormatalso works on the NVIDIA proprietary driver. The test compares border texels within 1/255; I did not check whether this driver needs that tolerance.agc_driver_graphicspasses 3/3 on both, with the new register-pair decode tests.- RTX 3070,
ctest -R "^agc|shader|recompiler" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display|flip" -j1 --timeout 60: 616 tests. Onlyagc_driver_store_over_untrackedfails, and it fails on unchangedmainbc400bedehere too (#6347).
Not checked: a red run on this machine. With only the tests on main's sources, GuestSamplerResource.cpp does not compile (it needs BorderColorTableIndex), so I relied on your negative controls. Also not checked: Windows, draw-path execution, titles.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
|
Draw-path execution run. The description notes there is no draw execution test, and @jotitadev's review lists draw-path execution as not checked. Setup: head
If you want a draw execution test in this PR, I can post the probe here (284 lines, setup taken from Not checked: this head merged onto current Written with AI assistance (Claude Code). I ran the builds and tests above on my machine. AI-assisted: yes |
|
Windows data point: head
Not checked: other tests, titles. AI-assisted: yes (Claude Code). |
|
@jotitadev thanks for the NVIDIA run. Good to see |
|
@Dextroid17 thanks, that is the step the test didn't reach. I'll add a draw and a dispatch execution test that set the base through |
|
@TheSovietWaffle thanks for the Windows runs on NVIDIA and AMD. |
jotitadev
left a comment
There was a problem hiding this comment.
Re-run on 7f8812e96 for the new register test, on NVIDIA and lavapipe.
Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same host. Head 7f8812e96 merged onto main 47a266cf9 (clean). ANYPS5_NO_SHADER_CACHE=1, -j1 --timeout 30.
| Run | RTX 3070 | lavapipe |
|---|---|---|
agc_driver_border_color_table_registers, agc_driver_border_color_table, agc_driver_graphics |
pass 3/3 | pass |
^agc (651 tests) |
651/651 (main: 649/649) |
651/651 (main: 649/649) |
Draw.cpp passes no table base (borderColorTable = std::nullopt) |
..._registers fails: a sampler reads border color table entry 2, but the table base register was never written; agc_driver_border_color_table passes |
same |
Dispatch.cpp passes no table base |
..._registers fails: compute shader ...: a sampler reads border color table entry 2, but the table base register was never written; agc_driver_border_color_table passes |
same |
So the new test covers the TA_BC_BASE_ADDR and TA_CS_BC_BASE_ADDR reads on the draw and dispatch paths that @Dextroid17 pointed out. The older test does not cover them. In both broken runs the error escapes as terminate (ctest reports Subprocess aborted), not through the test's own catch in main.
Not run: Windows, AMD, Intel, any title.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02) and lavapipe (Mesa 26.0.3), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
7f8812e to
6aa1985
Compare
|
@jotitadev thanks for the re-run on the register test. Rebased onto current On the rebased head, the full build passes, and |
6aa1985 to
b126d39
Compare
b126d39 to
4f68fde
Compare
|
Rebased onto current On the rebased head the full build passes, and |
|
@adriadam10 this is rebased onto current |
4f68fde to
78edb14
Compare
|
Rebased onto current On the rebased head the full build passes, and |
# Conflicts: # core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp # core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp # core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp # core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp # core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp # core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp # core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp # core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
|
Could you drop the new integer-table rejection assertion at Please keep the positive custom-float decode cases and the missing-entry/index validation. There is no request to implement integer table colours in this PR. |
There was a problem hiding this comment.
Correction (2026-11-01): the title-ID/log demand below is not a CONTRIBUTING requirement; Unblocks: none is allowed. The technical points below are unaffected.
1. No title reaches this on main. The body says "Title. None known" and "Unblocks: none": PPSA21567 writes the table but its only table-type sampler clamps to the edge and no longer reaches the path after #941. The tests are synthetic. With no title ID and log line this is a new device feature (VK_EXT_custom_border_color plumbing, register reads, sampler counting) that nothing running exercises, which is the kind of PR that gets closed.
2. Draws that read the table are never cached. "A build that read an entry is never marked reusable, so the draw and dispatch resource caches never hand it to a later draw whose entry may have changed." Every draw or dispatch with a table-type border sampler therefore rebuilds its resources from scratch, each time. That may be the only exact option, but the cost is unmeasured: please say how a title using this pays it (a counter for uncached builds), or key the cache on the entry bytes as the sampler cache already does so the draw cache can be reused when the entry is unchanged.
3. Custom border sampler budget. Samplers are counted against maxCustomBorderColorSamplers and the sampler "throws" past it. Does a sampler that is released (the fetch_sub paths in DecodeSamplerResource) always get released when a sampler-cache entry is evicted or when a build fails after the sampler was created? A leak here turns into a permanent throw after N draws, and I do not see a test that creates and drops more than the limit.
✅ NVIDIA GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validated but not compared (2, not in the main baseline's validation pass)Validation IDs already present on main (5 IDs in 483 tests)Skipped (46)ReproduceAutomated 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. |
adriadam10
left a comment
There was a problem hiding this comment.
This no longer merges with current main, and a mechanical rebase is not enough:
- Conflicts.
git merge-treeagainstmainconflicts inVulkanDevice.hpp,VulkanDevice.cpp,Dispatch.cpp,ShaderResources.hppandShaderResources.cpp. Replaying the commits one by one also hitsDriver.hppandDraw/Draw.cpp:mainmoved the draw path intoDrawTail, with the new trace andshapeparameters onDraw/commitDraw, so whereborderColorTableis captured and passed on needs re-deciding, not just merging. The new tests go through that path, so they need rerunning after it. - History. The branch carries seven merge commits (
372c509265,0a4de8265b,321bff9a5c,9d9cd22707,132ee009f4,0853681320and the earlier ones). CONTRIBUTING asks for a linear history, so please rebase ontomaininstead of merging it again. - Requested by @oneandonlydean, not done yet. Drop the integer-table rejection assertion at
core/libs/prx/libSceAgcDriver/tests/GuestSamplerResource.cpp:566(DecodeSamplerResource(words, false, false, true, &tableColor)expecting "integer border color from the border color table"). The production check marks that path as unimplemented, so the assertion would fail once it is implemented. Keep the positive custom-float cases and the missing-entry checks.
After the rebase, rerun agc_driver_border_color_table, agc_driver_border_color_table_registers and agc_driver_graphics. The rest was checked in earlier reviews and is unchanged.
|
Overlap coordination for #21586, before publishing our runtime follow-up: Your border-colour-table implementation is a dependency, not work we intend to republish in a competing PR. Our plan is to revalidate on current The local follow-up cases being validated include 48-bit table-entry range checks and custom-sampler budget accounting when sampler creation or resolver lookup fails. If you would prefer those focused corrections and their synthetic regressions incorporated here instead of a later follow-up, please let us know so we can agree the order and avoid overlapping implementations. The title variant in #21586 is PPSA08330 / 05.005.000. This coordination request is not a claim of verified gameplay or of a regression on current Measured update: a fresh |
|
God of War Ragnarök (PPSA08330) now reaches this throw on Windows with NVIDIA, after #23778 (the masked-offset fix from #21586) clears its earlier stop. Setup: Windows 11 Pro 10.0.26300, Intel i5-11400H, NVIDIA GeForce RTX 3060 Laptop GPU (6 GB), NVIDIA 621.24, MSYS2 UCRT64 GCC, Release. The build is a local integration of Result: A 600 s run with a cross press every 30 s stops at 427 s: I tried to cherry-pick this PR's commits onto that build to test it there. The first three apply with small conflicts (new AI-assisted: yes (Claude Code) |
|
I prepared and tested a conflict resolution for this PR on main 5c938d8, with the original author credited. The candidate also merged cleanly in a local simulation against main 365fded. The branch is available for adoption into this PR. Tested commit e235a08a53 · Branch On Windows x64 with an RTX 5060 Laptop GPU (NVIDIA 610.60), I ran the same Azahar Pong sample in Vulkan mode at 1x using RetroArch's stock core and built-in loader. Main reproduced the border-color table crash reported in #665. The rebased driver rendered Pong, produced a screenshot, and exited 0. The paired Azahar runs loaded Khronos validation layer 1.4.368 and reported no Vulkan validation errors. The focused agc_driver_graphics, agc_driver_border_color_table, and agc_driver_border_color_table_registers tests all passed with the candidate. The resolution carries the table address through current draw and dispatch paths, including deferred execution, and drops the requested integer-table rejection assertion. AI-assisted: yes. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the implementation and inspected tests support the stated border colour table behavior.
What I ran
Reviewed head 0853681320bb72964e9eea75cdbb1586d734d066. No commands or tests were run in this review; validation results in the PR description are author reported.
Results
| Check | Result | Note |
|---|---|---|
| Code review | passed | Core decode, register, cache, and sampler paths inspected |
| Build and tests | not run | PR description reports focused tests; not run here |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was excluded from the review folder; their relevant changed regions were inspected through the pinned reader and diff. Other full changed-file texts listed as included in manifest.json were read selectively, not exhaustively. No build, tests, CI, or physical-console behavior was independently verified. The PR description's reported test results were not rerun.
To get this to a good state
Nothing is required.
|
@eliasbruno124-dev, you offered to retest God of War Ragnarök on Windows/NVIDIA after the border-colour change was rebased. The companion branch can still be merged locally into main The earlier Windows/NVIDIA test confirmed that the float border-table change gets Azahar Vulkan Pong past the same stop. If you have time, could you try the companion branch on top of the same integration build that reproduced the failure at 427 s and report whether it gets past that point or reaches a new stop? Please include the exact revisions and first new error, if any. This would help verify the rebase in PPSA08330. AI-assisted: yes. |
|
closing this one as stale: it has been waiting on a hold for over a week with no new push. if you still want it, please reopen or rebase it onto current main and it goes back in the queue. |
What
A sampler whose S# takes its border colour from the border colour table (
BORDER_COLOR_TYPE3) and clamps to the border on any axis (clamp modes 4 to 7) throws:#941 stopped the throw when no axis reads the border, which got PPSA21567 past its Armadillo challenges, but the table itself was still missing (#665). This implements it, following the plan @awake-devel posted there.
VK_EXT_custom_border_coloris enabled when the device hascustomBorderColorsandcustomBorderColorWithoutFormat(the S# carries no image format). Live table samplers are counted againstmaxCustomBorderColorSamplers; past it, or on a device without the extension, the sampler throws.BORDER_COLOR_PTR(S# word 3, bits 0 to 11) names a 16-byte entry atbase + ptr * 16.DecodeSamplerResourcetakes the entry's four dwords and returns them asVK_BORDER_COLOR_FLOAT_CUSTOM_EXT. Without an entry it throws as before, and a sampler paired with an integer image throws until an integer entry is measured.TA_BC_BASE_ADDR/_HI(context registers 0x20/0x21) and dispatches useTA_CS_BC_BASE_ADDR/_HI(user configuration registers 0x380/0x381), address bits 8 to 47, as Mesa's radeonsi programs them. A dispatch never falls back to the graphics pair. A sampler that reads the table with its pair never written throws, as @ThisIsAkill suggested in AGC sampler: border colour table (BORDER_COLOR_TYPE 3) not implemented #665. The draw handler reads the graphics pair from the queue and passes it toVulkanDevice::Draw, so the decoded draw state, which the pipeline journal stores, does not change.SamplerTablebindings) still refuse every border mode, as before.Title. None known. PPSA21567 writes the table (entry 0 is 0.15, 0.5, 0.05, 0.0), but its only table-type sampler clamps to the edge, so after #941 it no longer reaches this path. The tests below are synthetic.
Tested
Current validation (2026-10-25): merged main
16ff208dc3and reconciled the draw-trace parameters with border-table propagation. AMD Radeon RX 7700 XT, RADV Mesa 26.2.4, Bazzite 44: focused native-FMASK, shader-memory and graphics tests pass on main (3/3); the same pattern plus both border-table execution tests passes on this branch (5/5). Both runs useANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, andctest -V. ZeroVUID-errors and no missing-layer warnings. No title or full-suite rerun for this update.Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release,
-DBUILD_TESTING=ON), based onmain66e71b63d:Full build and
cteston Intel UHD Graphics 620 (Mesa 25.2.8 ANV): 1429 of 1431 pass.agc_driver_gated_dispatch_captureand its_short_timeoutvariant failed underctest -j4(11 s instead of 5 s) and pass 3 of 3 each when run alone.agc_driver_border_color_tableandagc_driver_border_color_table_registerspass on the Intel GPU and on llvmpipe.New
agc_driver_border_color_table: a compute shader samples a 4x3 texture inside and one texel past each edge through a point clamp-to-border S# of type 3. Outside the texture it reads the named entry, another entry, the entry rewritten between two dispatches, and the table at a base moved by 256 bytes; a dispatch with no table base throws. It passes on both Intel UHD 620 (ANV) and llvmpipe, so it also runs on lavapipe in CI. ANV rounds the border colour to the texture's UNORM8 precision (0.5 reads back as 128/255), so border texels are compared within 1/255.New
agc_driver_border_color_table_registers, added after @Dextroid17 pointed out that the first test hands the base toVulkanDevicedirectly and never reaches the register reads. It submits throughsceAgcDriverSubmitDcb:TA_CS_BC_BASE_ADDRwithSET_UCONFIG_REG0x380/0x381;TA_BC_BASE_ADDRwithSET_CONTEXT_REG0x20/0x21.Each samples one texel past the texture's edge through a type 3 S#, and checks the entry's colour, that the other pair naming a different table does not change it, and that a rewritten entry takes effect with the base kept from an earlier submission. A draw after a context clear throws for the missing base. It passes 3 of 3 on the Intel UHD 620 and on llvmpipe. With either handler's register read cut, it fails with
the table base register was never written.Negative controls:
agc_driver_graphics: the table-border decode tests replace the rejection test, and new tests decode both register pairs.tools/check_conventions.py --base origin/mainpasses, andtools/pr_overlap.pyreports no overlapping pull request. Windows and macOS were not built here; the draw and dispatch register reads are covered byagc_driver_border_color_table_registers.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)