fix(agc): draw a PS_ITER_SAMPLE program once per pixel into a one-sample depth target #7729

Merged
milescoviello merged 2 commits from upstream-pr/7729 into main 2026-10-21 14:14:55 +00:00
milescoviello commented 2026-10-19 03:21:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T03:21:00Z.


What

A one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is drawn as a one-sample draw at the pixel center (#6196's follow-up, 3dadf7712). A pixel program that runs with PS_ITER_SAMPLE threw there. Ghost of Tsushima (PPSA02225) draws its depth-only, alpha-tested pass this way and stops on it: 2x PA_SC_AA_CONFIG, PA_SC_MODE_CNTL_0 0x2 (MSAA_ENABLE clear), PA_SC_MODE_CNTL_1 0x06030000 (PS_ITER_SAMPLE), DB_SHADER_CONTROL 0x50 (KILL_ENABLE), no color target, and no ANCILLARY or SAMPLE_COVERAGE input.

On this path every sample is taken to be at the pixel center, and the one-sample target keeps sample 0's coverage. So whether the console runs such a program once per pixel or once per sample, each invocation gets the same position, interpolants and derivatives, and gives the same kill decision, depth and color, and only sample 0's reaches the target. The program is now drawn once per pixel, without sample shading (perSampleShading was already off here, since the draw has one sample).

  • ANCILLARY (sample index) and SAMPLE_COVERAGE inputs still throw, as do points, lines, alpha-to-coverage, a sample-mask export and DB_EQAA Z interpolation or overrasterization.
  • The one thing that can still differ is the memory accesses of such a program, if the console runs it once per sample: atomics and append or consume counters count once per pixel here. The debt entry says so.
  • The one-sample color target branch without a depth target still refuses PS_ITER_SAMPLE; it isn't needed by any title I know of yet.

@SandstromPL, who added this refusal with the one-sample depth path, checked the reasoning: without an ANCILLARY or SAMPLE_COVERAGE input an invocation can't tell which sample it runs for. Following their suggestions, ff312a718b rewords the debt entry: it now says up front that PS_ITER_SAMPLE alone still throws only with one-sample color targets and no depth target, and that atomics and append or consume counters are where a console that runs such a program once per sample would give a different result.

Tested

Ubuntu 24.04, GCC 13.3, NVIDIA RTX 4070 Ti (595.99.02), on main ca13a56a58.

  • agc_driver_graphics: the case that expected the refusal for PS_ITER_SAMPLE with KILL_ENABLE now decodes as one sample, with or without a one-sample color target, with no sample shading, and passes the precheck. Adding an ANCILLARY input to it still throws.
    • On main with the changed test, it fails on the refusal (a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported ...).
    • With the change, it passes 3 of 3.
  • The 59 tests matching multisample|msaa|sample|depth|^agc_driver_graphics$ pass.
  • Windows: @xXPBSXx ran it merged onto main 676d42396 (MinGW-w64, WinLibs): agc_driver_graphics passes 3 of 3, and fails 3 of 3 with main's State.cpp and the changed test.
  • Intel and AMD, Windows: @savvaniss ran it on an Intel UHD 770 and an AMD RX 9070 XT, merged into main 6b8228b2b. The 21 tests built from tests/Graphics.cpp pass 3 of 3. With only this PR's test change, agc_driver_graphics fails on the refusal.
  • Rebased 10-19 onto main f72c7aacfa (head 1f63ba35af). @blawesom offered the same rebase, green on an RX 9070 XT with RADV. The debt line is cut to the gap, as CONTRIBUTING.md now asks, with no title named in it. The 621 tests matching ^agc_driver_|^agc_shader|recompiler|spirv pass, and agc_driver_graphics passes 3 of 3.
  • Ghost of Tsushima (PPSA02225), with #7726 and #7725: without this PR it stops 41 s in on this refusal. A logging build showed the two such draws reaching this path: one with PS_ITER_SAMPLE (PA_SC_MODE_CNTL_1 0x06030000, DB_SHADER_CONTROL 0x50), which threw, and one without it, with a depth export (DB_SHADER_CONTROL 0x11). With this PR it draws past both and stops 39 s in at an unrelated check, a compute shader that imports a multisampled depth or stencil surface (native multisample stencil or depth format import is not implemented).
  • Khronos validation, as CONTRIBUTING.md asks: Ubuntu's 1.3.275 layer loaded with VK_LAYER_PATH, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V, RTX 4070 Ti, Linux. Neither log reports was not found but was requested by env var VK_INSTANCE_LAYERS. ^agc_driver_graphics$ on main f72c7aacfa and on this PR's code (c7aa42ebe5, the same code as the current head) gives no validation messages in either log.
  • The same comparison under the LunarG SDK's 1.4.363 layer, the version Windows reviewers run: no validation messages on main f72c7aacfa or on this head.

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: PPSA02225 (Ghost of Tsushima, together with #7726 and #7725), #5166
  • GPUs tested: NVIDIA RTX 4070 Ti (Linux); AMD RX 9070 XT, RADV (@blawesom); Windows: Intel UHD 770 and AMD RX 9070 XT (@savvaniss)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4915330452 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T03:21:00Z. --- ### What A one-sample depth target under a multisampled rasterizer without `MSAA_ENABLE` is drawn as a one-sample draw at the pixel center (#6196's follow-up, 3dadf7712). A pixel program that runs with `PS_ITER_SAMPLE` threw there. Ghost of Tsushima (PPSA02225) draws its depth-only, alpha-tested pass this way and stops on it: 2x `PA_SC_AA_CONFIG`, `PA_SC_MODE_CNTL_0` 0x2 (`MSAA_ENABLE` clear), `PA_SC_MODE_CNTL_1` 0x06030000 (`PS_ITER_SAMPLE`), `DB_SHADER_CONTROL` 0x50 (`KILL_ENABLE`), no color target, and no `ANCILLARY` or `SAMPLE_COVERAGE` input. On this path every sample is taken to be at the pixel center, and the one-sample target keeps sample 0's coverage. So whether the console runs such a program once per pixel or once per sample, each invocation gets the same position, interpolants and derivatives, and gives the same kill decision, depth and color, and only sample 0's reaches the target. The program is now drawn once per pixel, without sample shading (`perSampleShading` was already off here, since the draw has one sample). - `ANCILLARY` (sample index) and `SAMPLE_COVERAGE` inputs still throw, as do points, lines, alpha-to-coverage, a sample-mask export and `DB_EQAA` Z interpolation or overrasterization. - The one thing that can still differ is the memory accesses of such a program, if the console runs it once per sample: atomics and append or consume counters count once per pixel here. The debt entry says so. - The one-sample color target branch without a depth target still refuses `PS_ITER_SAMPLE`; it isn't needed by any title I know of yet. @SandstromPL, who added this refusal with the one-sample depth path, [checked the reasoning](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6259011348): without an `ANCILLARY` or `SAMPLE_COVERAGE` input an invocation can't tell which sample it runs for. Following their suggestions, ff312a718b rewords the debt entry: it now says up front that `PS_ITER_SAMPLE` alone still throws only with one-sample color targets and no depth target, and that atomics and append or consume counters are where a console that runs such a program once per sample would give a different result. ### Tested Ubuntu 24.04, GCC 13.3, NVIDIA RTX 4070 Ti (595.99.02), on `main` ca13a56a58. - **`agc_driver_graphics`**: the case that expected the refusal for `PS_ITER_SAMPLE` with `KILL_ENABLE` now decodes as one sample, with or without a one-sample color target, with no sample shading, and passes the precheck. Adding an `ANCILLARY` input to it still throws. - On `main` with the changed test, it fails on the refusal (`a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported ...`). - With the change, it passes 3 of 3. - The 59 tests matching `multisample|msaa|sample|depth|^agc_driver_graphics$` pass. - Windows: @xXPBSXx [ran it](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6260179845) merged onto `main` 676d42396 (MinGW-w64, WinLibs): `agc_driver_graphics` passes 3 of 3, and fails 3 of 3 with `main`'s `State.cpp` and the changed test. - Intel and AMD, Windows: @savvaniss [ran it](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6264135172) on an Intel UHD 770 and an AMD RX 9070 XT, merged into `main` 6b8228b2b. The 21 tests built from `tests/Graphics.cpp` pass 3 of 3. With only this PR's test change, `agc_driver_graphics` fails on the refusal. - Rebased 10-19 onto `main` f72c7aacfa (head 1f63ba35af). @blawesom [offered the same rebase](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6264013603), green on an RX 9070 XT with RADV. The debt line is cut to the gap, as CONTRIBUTING.md now asks, with no title named in it. The 621 tests matching `^agc_driver_|^agc_shader|recompiler|spirv` pass, and `agc_driver_graphics` passes 3 of 3. - **Ghost of Tsushima (PPSA02225)**, with #7726 and #7725: without this PR it stops 41 s in on this refusal. A logging build showed the two such draws reaching this path: one with `PS_ITER_SAMPLE` (`PA_SC_MODE_CNTL_1` 0x06030000, `DB_SHADER_CONTROL` 0x50), which threw, and one without it, with a depth export (`DB_SHADER_CONTROL` 0x11). With this PR it draws past both and stops 39 s in at an unrelated check, a compute shader that imports a multisampled depth or stencil surface (`native multisample stencil or depth format import is not implemented`). - Khronos validation, as CONTRIBUTING.md asks: Ubuntu's 1.3.275 layer loaded with `VK_LAYER_PATH`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest -V`, RTX 4070 Ti, Linux. Neither log reports `was not found but was requested by env var VK_INSTANCE_LAYERS`. `^agc_driver_graphics$` on `main` f72c7aacfa and on this PR's code (c7aa42ebe5, the same code as the current head) gives no validation messages in either log. - The same comparison under the LunarG SDK's 1.4.363 layer, the version Windows reviewers run: no validation messages on `main` f72c7aacfa or on this head. ### 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: PPSA02225 (Ghost of Tsushima, together with #7726 and #7725), #5166 - [x] GPUs tested: NVIDIA RTX 4070 Ti (Linux); AMD RX 9070 XT, RADV (@blawesom); Windows: Intel UHD 770 and AMD RX 9070 XT (@savvaniss) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
SandstromPL commented 2026-10-19 03:28:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SandstromPL on 2026-10-19T03:28:35Z.


@milescoviello yes, the reasoning holds for me. I didn't have a specific case in mind; the refusal was there because I hadn't worked through what per-sample invocations could observe on this path. With MSAA_ENABLE clear every sample is taken to be at the pixel center, which this path already assumes. So without an ANCILLARY or SAMPLE_COVERAGE input, an invocation can't tell which sample it runs for. Sample-rate interpolants, derivatives, the kill decision, an exported depth and the color all come out the same, and the one-sample targets keep sample 0's. The diff and the test look right to me: the old case now decodes as one sample without sample shading, and adding ANCILLARY still refuses it. I only read it and didn't run it.

Two small suggestions, take them or leave them:

  • The debt entry still opens with "PS_ITER_SAMPLE, an ANCILLARY or SAMPLE_COVERAGE pixel input and a sample-mask export throw in a pixel program that runs", and makes the exception two sentences later. Saying there that PS_ITER_SAMPLE alone only throws on the color-only path would read more directly.
  • "Only the memory writes … can differ" could name atomics and append/consume counters, since those are where a once-per-sample console would give a different result rather than just repeat a write.

The color-only branch could take the same rule later; I agree it can wait for a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259011348 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6259011348). Originally posted by [SandstromPL](https://github.com/SandstromPL) on 2026-10-19T03:28:35Z. --- @milescoviello yes, the reasoning holds for me. I didn't have a specific case in mind; the refusal was there because I hadn't worked through what per-sample invocations could observe on this path. With `MSAA_ENABLE` clear every sample is taken to be at the pixel center, which this path already assumes. So without an `ANCILLARY` or `SAMPLE_COVERAGE` input, an invocation can't tell which sample it runs for. Sample-rate interpolants, derivatives, the kill decision, an exported depth and the color all come out the same, and the one-sample targets keep sample 0's. The diff and the test look right to me: the old case now decodes as one sample without sample shading, and adding `ANCILLARY` still refuses it. I only read it and didn't run it. Two small suggestions, take them or leave them: - The debt entry still opens with "`PS_ITER_SAMPLE`, an `ANCILLARY` or `SAMPLE_COVERAGE` pixel input and a sample-mask export throw in a pixel program that runs", and makes the exception two sentences later. Saying there that `PS_ITER_SAMPLE` alone only throws on the color-only path would read more directly. - "Only the memory writes … can differ" could name atomics and append/consume counters, since those are where a once-per-sample console would give a different result rather than just repeat a write. The color-only branch could take the same rule later; I agree it can wait for a title. AI-assisted: yes (Claude Code)
github-actions[bot] commented 2026-10-19 03:28:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T03:28:53Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 8871 docs/dev/debt/libSceAgcDriver.md L34

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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5441 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6801 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6887 docs/dev/debt/libSceAgcDriver.md
PR 6946 docs/dev/debt/libSceAgcDriver.md
PR 6947 docs/dev/debt/libSceAgcDriver.md
PR 6965 docs/dev/debt/libSceAgcDriver.md
PR 6973 docs/dev/debt/libSceAgcDriver.md
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
docs/dev/debt/libSceAgcDriver.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 7256 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7505 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 docs/dev/debt/libSceAgcDriver.md
PR 7800 docs/dev/debt/libSceAgcDriver.md
PR 7803 docs/dev/debt/libSceAgcDriver.md
PR 7883 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7893 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7910 docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8070 docs/dev/debt/libSceAgcDriver.md
PR 8105 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 8395 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8424 docs/dev/debt/libSceAgcDriver.md
PR 8538 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8564 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 9020 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9077 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259014612 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6259014612). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T03:28:53Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 8871](https://www.github.com/boykopovar/AnyPS5/pull/8871) | `docs/dev/debt/libSceAgcDriver.md` [L34](https://github.com/boykopovar/AnyPS5/blob/80565c59424190cd0f660f8097945443a0017c42/docs/dev/debt/libSceAgcDriver.md#L34) | | | 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 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6801](https://www.github.com/boykopovar/AnyPS5/pull/6801) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6887](https://www.github.com/boykopovar/AnyPS5/pull/6887) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6965](https://www.github.com/boykopovar/AnyPS5/pull/6965) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7803](https://www.github.com/boykopovar/AnyPS5/pull/7803) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7883](https://www.github.com/boykopovar/AnyPS5/pull/7883) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7893](https://www.github.com/boykopovar/AnyPS5/pull/7893) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7910](https://www.github.com/boykopovar/AnyPS5/pull/7910) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8070](https://www.github.com/boykopovar/AnyPS5/pull/8070) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8105](https://www.github.com/boykopovar/AnyPS5/pull/8105) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 8395](https://www.github.com/boykopovar/AnyPS5/pull/8395) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8424](https://www.github.com/boykopovar/AnyPS5/pull/8424) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8538](https://www.github.com/boykopovar/AnyPS5/pull/8538) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8564](https://www.github.com/boykopovar/AnyPS5/pull/8564) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 9020](https://www.github.com/boykopovar/AnyPS5/pull/9020) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 9077](https://www.github.com/boykopovar/AnyPS5/pull/9077) | `docs/dev/debt/libSceAgcDriver.md` |
xXPBSXx commented 2026-10-19 05:12:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-19T05:12:56Z.


Windows data point for 2c99c48ff alone merged onto main 676d42396 (merge e3beedebf, clean): Windows, MinGW-w64 (WinLibs) toolchain, ANYPS5_NO_SHADER_CACHE=1, ctest -R '^agc_driver_graphics$', three separate ctest invocations.

  • With the PR: exit code 0 in 3 of 3 runs.
  • Same tree with Graphics/src/State.cpp restored to main (the changed test kept): exit code 8 in 3 of 3 runs. The tail of a failing run ends with AGC graphics: unexpected failure: AGC graphics: a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with alpha-to-coverage, PS_ITER_SAMPLE, a sample index or coverage input, a sample-mask export, or DB_EQAA Z interpolation or overrasterization (the message names PS_ITER_SAMPLE among the refused cases).

agc_driver_graphics is the only test I ran. Not tested: the other multisample tests listed in the PR, a title run, other GPUs.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260179845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6260179845). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-19T05:12:56Z. --- Windows data point for `2c99c48ff` alone merged onto `main` `676d42396` (merge `e3beedebf`, clean): Windows, MinGW-w64 (WinLibs) toolchain, `ANYPS5_NO_SHADER_CACHE=1`, `ctest -R '^agc_driver_graphics$'`, three separate `ctest` invocations. - With the PR: exit code 0 in 3 of 3 runs. - Same tree with `Graphics/src/State.cpp` restored to `main` (the changed test kept): exit code 8 in 3 of 3 runs. The tail of a failing run ends with `AGC graphics: unexpected failure: AGC graphics: a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with alpha-to-coverage, PS_ITER_SAMPLE, a sample index or coverage input, a sample-mask export, or DB_EQAA Z interpolation or overrasterization` (the message names `PS_ITER_SAMPLE` among the refused cases). `agc_driver_graphics` is the only test I ran. Not tested: the other `multisample` tests listed in the PR, a title run, other GPUs. AI-assisted (Claude Code).
milescoviello commented 2026-10-19 06:04:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T06:04:34Z.


@SandstromPL thanks for working through it, and for both suggestions. I took them in ff312a718b. The debt entry now says at the start that PS_ITER_SAMPLE alone still throws only with one-sample color targets and no depth target. It also names atomics and append or consume counters as the accesses where a once-per-sample console would give a different result. It's a docs-only commit, so the test results stand.

@xXPBSXx thanks for the Windows run, including the reverted State.cpp control. It's in the description now.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260800628 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6260800628). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T06:04:34Z. --- @SandstromPL thanks for working through it, and for both suggestions. I took them in ff312a718b. The debt entry now says at the start that `PS_ITER_SAMPLE` alone still throws only with one-sample color targets and no depth target. It also names atomics and append or consume counters as the accesses where a once-per-sample console would give a different result. It's a docs-only commit, so the test results stand. @xXPBSXx thanks for the Windows run, including the reverted `State.cpp` control. It's in the description now. AI-assisted: yes (Claude Code)
blawesom commented 2026-10-19 09:26:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-19T09:26:23Z.


Rebase handoff — rebased onto current main cleanly (both commits, authorship unchanged).

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV): builds; conventions pass; full suite green apart from the four known main regressions (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR.

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/7729
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is f962ba0ac.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264013603 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6264013603). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-19T09:26:23Z. --- **Rebase handoff** — rebased onto current `main` cleanly (both commits, authorship unchanged). Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): builds; conventions pass; **full suite green apart from the four known `main` regressions** (#5444 Mesa, #7584 BDA, #7766, #7784), none from this PR. **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/7729 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `f962ba0ac`.
savvaniss commented 2026-10-19 09:33:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-19T09:33:14Z.


Intel and AMD Windows data: with this PR's test changes, agc_driver_graphics fails on main and passes with the PR, on an Intel UHD 770 and an AMD RX 9070 XT.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, with VkCache emptied first. This head ff312a718 merged into main 6b8228b2b. "Without" means only this PR's diff to tests/Graphics.cpp, applied to main 6b8228b2b.

Tests, ×3 UHD 770 RX 9070 XT
This head: the 21 tests built from tests/Graphics.cpp 21 of 21 pass 21 of 21 pass
Without agc_driver_graphics fails: a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with alpha-to-coverage, PS_ITER_SAMPLE, ...; the other 20 pass same

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264135172 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6264135172). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-19T09:33:14Z. --- Intel and AMD Windows data: with this PR's test changes, `agc_driver_graphics` fails on `main` and passes with the PR, on an Intel UHD 770 and an AMD RX 9070 XT. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, with `VkCache` emptied first. This head `ff312a718` merged into `main` `6b8228b2b`. "Without" means only this PR's diff to `tests/Graphics.cpp`, applied to `main` `6b8228b2b`. | Tests, ×3 | UHD 770 | RX 9070 XT | |---|---|---| | This head: the 21 tests built from `tests/Graphics.cpp` | 21 of 21 pass | 21 of 21 pass | | Without | `agc_driver_graphics` fails: `a one-sample depth target under a multisampled rasterizer without MSAA_ENABLE is unsupported for points or lines and with alpha-to-coverage, PS_ITER_SAMPLE, ...`; the other 20 pass | same | AI-assisted: yes (Claude Code)
milescoviello commented 2026-10-19 11:30:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T11:30:34Z.


@blawesom thanks for the rebase and the RADV run. I pushed my own rebase onto main f72c7aacfa (1f63ba35af), not yours, because the debt line also had to change. oneandonlydean asked for no titles to be named in the debt files, and CONTRIBUTING.md now asks for entries cut to the gap. The code changes are the same as in yours. The 621 driver and recompiler tests pass on the new head, and agc_driver_graphics passes 3 of 3.

@savvaniss thank you for the UHD 770 and RX 9070 XT runs, with the test-only control failing on both. They're in the description now.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6266176989 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6266176989). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T11:30:34Z. --- @blawesom thanks for the rebase and the RADV run. I pushed my own rebase onto `main` f72c7aacfa (1f63ba35af), not yours, because the debt line also had to change. oneandonlydean asked for no titles to be named in the debt files, and CONTRIBUTING.md now asks for entries cut to the gap. The code changes are the same as in yours. The 621 driver and recompiler tests pass on the new head, and `agc_driver_graphics` passes 3 of 3. @savvaniss thank you for the UHD 770 and RX 9070 XT runs, with the test-only control failing on both. They're in the description now. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-20 18:49:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T18:49:56Z.


Picking this up for our testing: it addresses the stop we see in PPSA03208 on current main, one of the titles we're bringing up, and we'd like to move it into main. We'll review, test and merge it under the normal process. Your comments and review are still very welcome, @adriadam10.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6298604509 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6298604509). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T18:49:56Z. --- Picking this up for our testing: it addresses the stop we see in PPSA03208 on current main, one of the titles we're bringing up, and we'd like to move it into main. We'll review, test and merge it under the normal process. Your comments and review are still very welcome, @adriadam10.
milescoviello commented 2026-10-20 19:02:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-20T19:02:36Z.


Thanks @oneandonlydean. It merges cleanly with current main, so I'll leave the branch alone while you test it, unless you'd like a rebase or a change. #8121 makes the same change for a one-sample color target, in case PPSA03208 needs that case too.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6298862009 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7729#issuecomment-6298862009). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-20T19:02:36Z. --- Thanks @oneandonlydean. It merges cleanly with current `main`, so I'll leave the branch alone while you test it, unless you'd like a rebase or a change. #8121 makes the same change for a one-sample color target, in case PPSA03208 needs that case too. AI-assisted: yes (Claude Code)
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!7729
No description provided.