fix(recompiler): read P20 of a flat input as the provoking vertex #8538

Merged
LeandroLP23 merged 1 commit from upstream-pr/8538 into main 2026-10-22 17:26:59 +00:00
LeandroLP23 commented 2026-10-20 15:39:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-20T15:39:17Z.


What

A FLAT_SHADE input without pass-through that a pixel shader reads through v_interp_mov_f32 P20 and not P10 now returns the provoking vertex's value, like P0, and like P10 since #4030. Before, P20 kept the input explicitly per vertex and read vertex 2 minus vertex 0. For a flat value, that difference is 0 on every vertex, and with the first provoking vertex nothing refused the draw.

Why. ps5-opengl lowers every flat input to a load of a single vertex in lower_flat_input_vertex (toolchain/opengnm-psbc-ps5.patch, mirror):

  • vertex 1 (P10) by default, which #4030 reads as the provoking vertex;
  • when the Gallium flag that, per its comment, "carries GL's flatshade_first state" is set, ps5_last_provoking_vertex(primitive_type): vertex 2 for triangles, 1 for lines, 0 for points.

That driver passes the GL 4.6 CTS on a PS5, the argument #4030 rests on (#1413).

Seen in SuperTuxKart. SuperTuxKart (PPSA69421) draws its deferred point lights this way. All 12 flat inputs of pointlight.frag (center, energy, col, radius, direction_scale_offset) are read through P20 under the first provoking vertex, so on main they are all 0. att = energy * 20. / (1. + d * d) * (radius - d) / radius is then 0 * -inf, which is NaN; if (att <= 0.) discard; is false for NaN, so nothing is discarded. The light's whole screen-space quad writes NaN into the light accumulation targets, and the starting-line referee and everything behind it render black. Details in #8364:

  • discarding NaN with a bit test in pointlight.frag also fixes it;
  • the quad's light buffer reads NaN (shown red);
  • the inputs read as zero (radius exactly 0).

Changes.

  • ShaderInfoCollector keeps a flat input per vertex only when it is read through both P10 and P20. The existing "differences to vertex 0" cases in agc_driver_graphics and agc_shader_memory read both, and are unchanged.
  • FragmentParameter gains flatP20, set the same way as flatP10 and stored in the shader disk cache.
  • ValidateProvokingVertex throws v_interp_mov p20 of a flat input with the last provoking vertex is not measured with the last provoking vertex. Neither combination was measured on a console, so the pairing that ps5-opengl doesn't produce throws, as for P10 under the first.
  • The debt entry says the same.

Tested

Windows 11 Home 26300, AMD Radeon 860M (1002:1114, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1, based on main 75787d2f6.

  • agc_driver_graphics gets a P20 case mirroring #4030's P10 one. The input compiles to a flat input; flatP20 is set and flatP10 is not; first mode passes; last mode throws. Negative control: with main's ShaderInfoCollector.cpp, SpirvInputOutput.cpp and Pipeline.cpp, it fails with flat v_interp_mov P20 did not compile to a flat input.

  • ctest -R "agc|shader|spirv|recomp" -j4 --timeout 120: 840 of 841 pass, 3 skipped for device features. The one left is agc_driver_image_array_window_past_layer_limit, Not Run because it does not compile with MinGW (requested alignment '65536' exceeds object file maximum 8192, also on main).

  • The 35 tests matching provok|flat|interp|barycentric|rect_list|strip: all 32 that build here pass.

  • SuperTuxKart (PPSA69421 00.001.000), tutorial race started through APS5_PAD_INPUT_FILE, unmodified game files. The referee during "Ready! / Set! / Go!":

    • main: black rectangle and black bird on every run (more than 10 today, on several main commits);
    • this PR: the blue Thunderbird and its red, yellow and green sign, lit by its red light, in 2 of 2 runs.
  • Other ps5-opengl titles, 60 s each, no input, main and this PR:

    • Homebrew UI Lab (PPSA99050): exits at 5 s on both;
    • VITA5 (PPSA17035), PS5 FSR4 Showcase (PPSA99005), Yamagi Quake II (PPSA99007): alive at 60 s on both.

    The only refusal logged is the existing P10 one (shader library prebuild skipped: ... p10 of a flat input with the first provoking vertex is not measured), on both trees.

  • Not run: the Khronos validation layer (not installed on this machine), and GPUs other than the 860M.

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: Fixes #8364
  • Unblocks: none
  • GPUs tested: AMD Radeon 860M (1002:1114), AMD driver 32.0.13058.8001, Windows 11 26300
  • AI-assisted: yes (Claude Code)

Overlap from tools/pr_overlap.py: #6741 and #7426 change the last-provoking-vertex checks in the same ValidateProvokingVertex. #6741, #7426, #7883, #7893 and #8083 edit the same debt line. None of them reads P20 of a flat input.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4938287795 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8538). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-20T15:39:17Z. --- ### What A FLAT_SHADE input without pass-through that a pixel shader reads through `v_interp_mov_f32` P20 and not P10 now returns the provoking vertex's value, like P0, and like P10 since #4030. Before, P20 kept the input explicitly per vertex and read vertex 2 minus vertex 0. For a flat value, that difference is 0 on every vertex, and with the first provoking vertex nothing refused the draw. **Why.** ps5-opengl lowers every flat input to a load of a single vertex in `lower_flat_input_vertex` ([`toolchain/opengnm-psbc-ps5.patch`](https://github.com/darkxex/ps5-opengl/blob/main/toolchain/opengnm-psbc-ps5.patch), mirror): - vertex 1 (P10) by default, which #4030 reads as the provoking vertex; - when the Gallium flag that, per its comment, "carries GL's flatshade_first state" is set, `ps5_last_provoking_vertex(primitive_type)`: vertex 2 for triangles, 1 for lines, 0 for points. That driver passes the GL 4.6 CTS on a PS5, the argument #4030 rests on (#1413). **Seen in SuperTuxKart.** SuperTuxKart (PPSA69421) draws its deferred point lights this way. All 12 flat inputs of `pointlight.frag` (`center`, `energy`, `col`, `radius`, `direction_scale_offset`) are read through P20 under the first provoking vertex, so on `main` they are all 0. `att = energy * 20. / (1. + d * d) * (radius - d) / radius` is then `0 * -inf`, which is NaN; `if (att <= 0.) discard;` is false for NaN, so nothing is discarded. The light's whole screen-space quad writes NaN into the light accumulation targets, and the starting-line referee and everything behind it render black. Details in #8364: - discarding NaN with a bit test in `pointlight.frag` also fixes it; - the quad's light buffer reads NaN (shown red); - the inputs read as zero (radius exactly 0). **Changes.** - `ShaderInfoCollector` keeps a flat input per vertex only when it is read through both P10 and P20. The existing "differences to vertex 0" cases in `agc_driver_graphics` and `agc_shader_memory` read both, and are unchanged. - `FragmentParameter` gains `flatP20`, set the same way as `flatP10` and stored in the shader disk cache. - `ValidateProvokingVertex` throws `v_interp_mov p20 of a flat input with the last provoking vertex is not measured` with the last provoking vertex. Neither combination was measured on a console, so the pairing that ps5-opengl doesn't produce throws, as for P10 under the first. - The debt entry says the same. ### Tested Windows 11 Home 26300, AMD Radeon 860M (`1002:1114`, driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1`, based on `main` 75787d2f6. - `agc_driver_graphics` gets a P20 case mirroring #4030's P10 one. The input compiles to a flat input; `flatP20` is set and `flatP10` is not; first mode passes; last mode throws. Negative control: with `main`'s `ShaderInfoCollector.cpp`, `SpirvInputOutput.cpp` and `Pipeline.cpp`, it fails with `flat v_interp_mov P20 did not compile to a flat input`. - `ctest -R "agc|shader|spirv|recomp" -j4 --timeout 120`: 840 of 841 pass, 3 skipped for device features. The one left is `agc_driver_image_array_window_past_layer_limit`, Not Run because it does not compile with MinGW (`requested alignment '65536' exceeds object file maximum 8192`, also on `main`). - The 35 tests matching `provok|flat|interp|barycentric|rect_list|strip`: all 32 that build here pass. - **SuperTuxKart** (PPSA69421 00.001.000), tutorial race started through `APS5_PAD_INPUT_FILE`, unmodified game files. The referee during "Ready! / Set! / Go!": - `main`: black rectangle and black bird on every run (more than 10 today, on several `main` commits); - this PR: the blue Thunderbird and its red, yellow and green sign, lit by its red light, in 2 of 2 runs. - **Other ps5-opengl titles**, 60 s each, no input, `main` and this PR: - Homebrew UI Lab (PPSA99050): exits at 5 s on both; - VITA5 (PPSA17035), PS5 FSR4 Showcase (PPSA99005), Yamagi Quake II (PPSA99007): alive at 60 s on both. The only refusal logged is the existing P10 one (`shader library prebuild skipped: ... p10 of a flat input with the first provoking vertex is not measured`), on both trees. - Not run: the Khronos validation layer (not installed on this machine), and GPUs other than the 860M. ### 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: Fixes #8364 - [x] Unblocks: none - [x] GPUs tested: AMD Radeon 860M (`1002:1114`), AMD driver 32.0.13058.8001, Windows 11 26300 - [x] AI-assisted: yes (Claude Code) Overlap from `tools/pr_overlap.py`: #6741 and #7426 change the last-provoking-vertex checks in the same `ValidateProvokingVertex`. #6741, #7426, #7883, #7893 and #8083 edit the same debt line. None of them reads P20 of a flat input.
simonbbby commented 2026-10-20 16:32:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbbby on 2026-10-20T16:32:07Z.


Verified the title fix on Linux / NVIDIA at 97f60203523e062aca107ca77eabfcff4a7a6359.

SuperTuxKart PPSA69421 00.001.000, unchanged pointlight.frag, RTX 3090 / NVIDIA 595.99.02, Ubuntu 24.04, GCC 13.3 Release. Same relinked homebrew and scripted scene (-N -t tutorial --numkarts=1), fresh processes, shader cache and pipeline journal disabled:

Runtime Observed during Ready/Set countdown
Main 5f7e30233 Large black rectangle / black referee
This head, two runs Blue referee and colored light/sign; rectangle absent
This head with only ShaderInfoCollector.cpp, SpirvInputOutput.cpp and Pipeline.cpp restored from its parent Black rectangle returns

Each counted process completed the same approximately 67-second capture window and exited normally after SIGINT. The restored-head run was made after the negative-control process had fully exited.

Linux prerequisite: every title arm includes only #7897's ApplicationHeap.cpp production hunk, needed here to get past the unrelated empty allocator-table startup failure. The PR and reverted arms use byte-identical libc.prx. This is not a claim that unmodified Linux main reaches the race.

Focused control: temporarily adding a dispatch directly to the existing ProvokingVertexTests() gives 3/3 failures with those three production files reverted (flat v_interp_mov P20 did not compile to a flat input) and 3/3 passes after restoring them. The full stock agc_driver_graphics and agc_shader_memory CTests also pass, 2/2, after removing the temporary entry point and allocator prerequisite and rebuilding.

This supports the flat-input correction, rather than our earlier kill/target-preservation hypotheses. No Khronos validation layer is installed here; no validation-layer or console-semantics claim. No retail titles tested. The temporary edits are removed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6295883482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8538#issuecomment-6295883482). Originally posted by [simonbbby](https://github.com/simonbbby) on 2026-10-20T16:32:07Z. --- Verified the title fix on Linux / NVIDIA at `97f60203523e062aca107ca77eabfcff4a7a6359`. **SuperTuxKart PPSA69421 00.001.000**, unchanged `pointlight.frag`, RTX 3090 / NVIDIA 595.99.02, Ubuntu 24.04, GCC 13.3 Release. Same relinked homebrew and scripted scene (`-N -t tutorial --numkarts=1`), fresh processes, shader cache and pipeline journal disabled: | Runtime | Observed during Ready/Set countdown | |---|---| | Main `5f7e30233` | Large black rectangle / black referee | | This head, two runs | Blue referee and colored light/sign; rectangle absent | | This head with only `ShaderInfoCollector.cpp`, `SpirvInputOutput.cpp` and `Pipeline.cpp` restored from its parent | Black rectangle returns | Each counted process completed the same approximately 67-second capture window and exited normally after SIGINT. The restored-head run was made after the negative-control process had fully exited. **Linux prerequisite:** every title arm includes only #7897's `ApplicationHeap.cpp` production hunk, needed here to get past the unrelated empty allocator-table startup failure. The PR and reverted arms use byte-identical `libc.prx`. This is not a claim that unmodified Linux main reaches the race. **Focused control:** temporarily adding a dispatch directly to the existing `ProvokingVertexTests()` gives 3/3 failures with those three production files reverted (`flat v_interp_mov P20 did not compile to a flat input`) and 3/3 passes after restoring them. The full stock `agc_driver_graphics` and `agc_shader_memory` CTests also pass, 2/2, after removing the temporary entry point and allocator prerequisite and rebuilding. This supports the flat-input correction, rather than our earlier kill/target-preservation hypotheses. No Khronos validation layer is installed here; no validation-layer or console-semantics claim. No retail titles tested. The temporary edits are removed.
dantdmdarealguy commented 2026-10-20 20:21:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by dantdmdarealguy on 2026-10-20T20:21:52Z.


Windows 11 Pro, Intel Core i9-14900K, 128 GB, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. Head 97f6020352 and its merge base 75787d2f64, built one after the other in the same build directory. Every test log names Selected GPU name=NVIDIA GeForce RTX 5080 vendor=0x10de device=0x2c02 subgroup=32. This adds Windows + NVIDIA to the description's Windows/Radeon 860M and simonbbby's Linux/RTX 3090 results.

SuperTuxKart (PPSA69421 00.001.000, catalog release)

  • Relinked from each build with relinker --windows --registry --trap-sdk-syscall-stubs and started as app.exe -N -t tutorial --numkarts=1 with ANYPS5_NO_SHADER_CACHE=1. Each run was 60 s with no input and a screenshot every 4 s.
  • Base: from the first frames of the tutorial race to the "Set!" at 57 s, a large black rectangle covers the referee and everything behind it, in the upper left of the track.
  • Head: no rectangle. The blue Thunderbird and its starting light (red at 30 s, orange at 50 s) draw in front of the classroom.
  • Both exit 0 on WM_CLOSE with no exception.
  • Both run at the same 2.2 to 2.8 FPS (window title) with the shader cache off. The countdown is still at "Set!" at 57 s on both, so neither run reached "Go!".

Tests, with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1

  • ctest -R "^(agc_driver_graphics|agc_shader_memory|patched_libraries)$|provok|interp|barycentric|rect_list|strip": 17 of 17 pass on both base and head. That set includes agc_driver_provoking_vertex, agc_driver_mesh_provoking_vertex, agc_driver_mesh_provoking_layer, both agc_driver_rect_list_*, agc_driver_interpolation_modes, agc_driver_interpolation_f16 and both barycentric emulation tests.
  • Validation layer: agc_driver_graphics and agc_shader_memory with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (Khronos 1.4.363; VK_LOADER_DEBUG shows it loading). Both pass on base and head. Neither log has a VUID- line or was not found but was requested by env var VK_INSTANCE_LAYERS.
  • Negative control: the head's Graphics.cpp with the base's ShaderInfoCollector.cpp, SpirvInputOutput.cpp and Pipeline.cpp fails:
    AGC graphics: flat v_interp_mov P20 did not compile to a flat input
    
    So the new case fails without the change on NVIDIA too.
  • The incremental head build has no warnings in files the PR touches; the two warnings are -Wstringop-overread in libstdc++'s stl_algobase.h while compiling the untouched PipelineLibrary.cpp, which the base build also prints. tools/check_conventions.py --base 75787d2f6: 0 errors. Its only finding is the debt-length warning on the provoking-vertex entry, which was already over 1000 characters before this change. The branch merges into current main aa1b1bfce without conflicts.
Base 75787d2f6, 30 s Head 97f602035, 30 s
base: black rectangle over the referee head: referee and starting light drawn

Verdict: works on Windows with an RTX 5080. The SuperTuxKart black rectangle is gone, the new test fails without the change, and no related test or validation result changed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6300640298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8538#issuecomment-6300640298). Originally posted by [dantdmdarealguy](https://github.com/dantdmdarealguy) on 2026-10-20T20:21:52Z. --- Windows 11 Pro, Intel Core i9-14900K, 128 GB, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Release, `BUILD_TESTING=ON`. Head `97f6020352` and its merge base `75787d2f64`, built one after the other in the same build directory. Every test log names `Selected GPU name=NVIDIA GeForce RTX 5080 vendor=0x10de device=0x2c02 subgroup=32`. This adds Windows + NVIDIA to the description's Windows/Radeon 860M and simonbbby's Linux/RTX 3090 results. **SuperTuxKart** (PPSA69421 00.001.000, catalog release) - Relinked from each build with `relinker --windows --registry --trap-sdk-syscall-stubs` and started as `app.exe -N -t tutorial --numkarts=1` with `ANYPS5_NO_SHADER_CACHE=1`. Each run was 60 s with no input and a screenshot every 4 s. - Base: from the first frames of the tutorial race to the "Set!" at 57 s, a large black rectangle covers the referee and everything behind it, in the upper left of the track. - Head: no rectangle. The blue Thunderbird and its starting light (red at 30 s, orange at 50 s) draw in front of the classroom. - Both exit 0 on WM_CLOSE with no exception. - Both run at the same 2.2 to 2.8 FPS (window title) with the shader cache off. The countdown is still at "Set!" at 57 s on both, so neither run reached "Go!". **Tests**, with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1` - `ctest -R "^(agc_driver_graphics|agc_shader_memory|patched_libraries)$|provok|interp|barycentric|rect_list|strip"`: 17 of 17 pass on both base and head. That set includes `agc_driver_provoking_vertex`, `agc_driver_mesh_provoking_vertex`, `agc_driver_mesh_provoking_layer`, both `agc_driver_rect_list_*`, `agc_driver_interpolation_modes`, `agc_driver_interpolation_f16` and both barycentric emulation tests. - Validation layer: `agc_driver_graphics` and `agc_shader_memory` with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (Khronos 1.4.363; `VK_LOADER_DEBUG` shows it loading). Both pass on base and head. Neither log has a `VUID-` line or `was not found but was requested by env var VK_INSTANCE_LAYERS`. - Negative control: the head's `Graphics.cpp` with the base's `ShaderInfoCollector.cpp`, `SpirvInputOutput.cpp` and `Pipeline.cpp` fails: ``` AGC graphics: flat v_interp_mov P20 did not compile to a flat input ``` So the new case fails without the change on NVIDIA too. - The incremental head build has no warnings in files the PR touches; the two warnings are `-Wstringop-overread` in libstdc++'s `stl_algobase.h` while compiling the untouched `PipelineLibrary.cpp`, which the base build also prints. `tools/check_conventions.py --base 75787d2f6`: 0 errors. Its only finding is the `debt-length` warning on the provoking-vertex entry, which was already over 1000 characters before this change. The branch merges into current `main` `aa1b1bfce` without conflicts. | Base `75787d2f6`, 30 s | Head `97f602035`, 30 s | |---|---| | ![base: black rectangle over the referee](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/reviews/8538-stk-base-30s.png) | ![head: referee and starting light drawn](https://raw.githubusercontent.com/dantdmdarealguy/AnyPS5/pr-assets/reviews/8538-stk-head-30s.png) | Verdict: works on Windows with an RTX 5080. The SuperTuxKart black rectangle is gone, the new test fails without the change, and no related test or validation result changed.
MarcZX10 commented 2026-10-20 23:25:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T23:25:05Z.

Review: APPROVED


The P20 handling is consistent with the existing P10 model: flat inputs read only through P20 remain flat, the collector marks P20 use separately, and pipeline validation rejects the unmeasured provoking-vertex combination. The cache artifact stores the new flag, and its generated source-version hash covers the recompiler/cache sources. The added focused graphics test checks first/last provoking behavior, and the independent Linux/NVIDIA and Windows/NVIDIA title reports on this head confirm the SuperTuxKart symptom is fixed with the shader unchanged. Hosted runtime/build jobs were skipped, so I am relying on those reported exact-head runs plus static review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5593061599 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8538#pullrequestreview-5593061599). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-20T23:25:05Z. **Review:** APPROVED --- The P20 handling is consistent with the existing P10 model: flat inputs read only through P20 remain flat, the collector marks P20 use separately, and pipeline validation rejects the unmeasured provoking-vertex combination. The cache artifact stores the new flag, and its generated source-version hash covers the recompiler/cache sources. The added focused graphics test checks first/last provoking behavior, and the independent Linux/NVIDIA and Windows/NVIDIA title reports on this head confirm the SuperTuxKart symptom is fixed with the shader unchanged. Hosted runtime/build jobs were skipped, so I am relying on those reported exact-head runs plus static review.
LeandroLP23 commented 2026-10-21 14:37:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-21T14:37:28Z.


Rebased onto main 2c4b116da9 as 3d4a230d16. The conflict was with the barycentric-patches early return that main added to ValidateProvokingVertex. The P20 check now runs before it, so a last-provoking pipeline whose pixel shader has a P20-only flat read still throws when the generated barycentric stages are used. The debt entry keeps main's barycentric exception and this PR's P20 sentences.

Radeon 860M, Windows 11, AMD 32.0.13058.8001, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, built with -k 0; the only target that doesn't build is ImageArrayWindowPastLayerLimit.cpp, as on main:

  • 35/35 pass: agc_driver_graphics, agc_driver_provoking_vertex, agc_driver_mesh_provoking_*, agc_driver_interpolation_*, agc_shader_disk_cache* and agc_driver_flat_*.
  • 9/9 pass: tessellation|barycentric|rect_list.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6318708228 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8538#issuecomment-6318708228). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-21T14:37:28Z. --- Rebased onto `main` `2c4b116da9` as `3d4a230d16`. The conflict was with the barycentric-patches early return that `main` added to `ValidateProvokingVertex`. The P20 check now runs before it, so a last-provoking pipeline whose pixel shader has a P20-only flat read still throws when the generated barycentric stages are used. The debt entry keeps `main`'s barycentric exception and this PR's P20 sentences. Radeon 860M, Windows 11, AMD 32.0.13058.8001, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, built with `-k 0`; the only target that doesn't build is `ImageArrayWindowPastLayerLimit.cpp`, as on `main`: - 35/35 pass: `agc_driver_graphics`, `agc_driver_provoking_vertex`, `agc_driver_mesh_provoking_*`, `agc_driver_interpolation_*`, `agc_shader_disk_cache*` and `agc_driver_flat_*`. - 9/9 pass: `tessellation|barycentric|rect_list`.
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!8538
No description provided.