Skip to content

perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR - #11265

Merged
oneandonlydean merged 2 commits into
boykopovar:mainfrom
tibzejoker:perf/f16-fma-khr
Nov 4, 2026
Merged

oneandonlydean merged 2 commits into
boykopovar:mainfrom
tibzejoker:perf/f16-fma-khr

Conversation

@tibzejoker

@tibzejoker tibzejoker commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What

@queeeef's #4072, rebased onto current main (it was closed only for the rebase and for the SPIR-V pins, which #11184 restored). Step 2 of #11183.

v_pk_fma_f16 and v_pk_fmac_f16 become one f16vec2 OpFmaKHR when the device has native f16 math (Float16, RTE, preserved denormals) and VK_KHR_shader_fma with shaderFmaFloat16. Without it, the f32 round-to-odd path stays (#2000).

  • Why the bits don't change: Vulkan lists OpFmaKHR as correctly rounded and among the instructions that respect DenormPreserve; the module declares RoundingModeRTE 16. So every non-NaN result is a * b + c rounded once to f16, ties to even, denormals kept, which is what the f32 round-to-odd sum computes. NaN, FP16_OVFL and clamp rules run on the result bits as for perf(shader): compute v_pk_add_f16 and v_pk_mul_f16 with native f16 math #3531's add/mul. A FLOAT_MODE that flushes f16 denormals keeps the f32 path, and one that does not round f16 to nearest even still throws, as for add/mul.
  • Changes from perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR #4072:
    • rebased over the packed f16 operand cache (perf(shader): reuse packed f16 operand lanes #5811), ShaderValidation's new parameters and VulkanDevice's float controls;
    • FMAKHR and SPV_KHR_fma are only accepted when the device enabled shaderFmaFloat16, as the review asked;
    • agc_shader_replay --shader-fma adds that capability to a saved request, like --robust2, so the numbers below can be reproduced from APS5_DUMP_SHADERS captures.

Tested

Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON (spirv-val checks every module, the configuration in which #4072 failed on RADV), on main 1e658521a0.

  • RTX 4090 (NVIDIA 616.92, shaderFmaFloat16 = true): the 45 f16/fma tests (-R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands") pass under VK_LAYER_KHRONOS_validation with ANYPS5_NO_SHADER_CACHE=1. agc_driver_packed_float16_native compiles each FLOAT_MODE with OpFmaKHR, without FMAKHR and without Float16, and requires the same bits from all three: packed f16 native tests passed (589824 halves, fused f16 fma).

  • Intel UHD 770 (ANYPS5_GPU=Intel, no VK_KHR_shader_fma): the 6 tests that failed in the RADV review pass; the native test reports no FMAKHR (fallback path).

  • Focused tests, main 1e658521a0 vs this PR bd204f0f60 (its rebase onto that main; git range-diff shows both commits unchanged): ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands" (47 tests), VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (43 layer insertions per run, VK_LOADER_DEBUG=layer), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, spirv-val on. Both trees use SPIRV-Tools v2025.5 (pins restored by build(deps): restore the SPIRV-Tools, SPIRV-Headers and libvorbis pins #13053).

    GPU main this PR VUID- lines (main / PR) packed f16 path
    RTX 4090 (NVIDIA 616.92) 47/47 47/47 0 / 0 main: f32 round-to-odd; PR: OpFmaKHR (589824 halves compared)
    UHD 770 (Intel) 44/47, 3 skipped 44/47, 3 skipped 0 / 0 both: f32 round-to-odd, no VK_KHR_shader_fma

    The two Intel skips are the same on both sides (agc_driver_f64_fma_subnormals and agc_driver_float16_dot: that device has no Float64 or dot2).

  • Full suite (earlier head, ctest --timeout 120 --parallel 12 -E '^agc_driver_bda_device$'): 2389 of 2391 passed. The two failures, agc_host_import_cut_lifetime and agc_driver_depth_plane_partial_store, also fail on main.

  • Size, Grand Theft Auto V compute shaders (79 requests saved in the open world, agc_shader_replay --spv [--shader-fma]): 1,768,794 -> 1,633,289 SPIR-V words (-7.7 %). Only the two shaders with packed f16 fma change: 0x25b390800 -24.7 % and 0x25b393000 (RCAS) -12.6 %.

  • In game (performance form), RTX 4090, NVIDIA 616.92, on main 91a69952c1.

{"commit":"681ef4392670","dirty":false,"env":{"APS5_MIMALLOC":"1","APS5_TRACE_DIR":"","APS5_TRACE_SECONDS":"40:80"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 40:80","first_present":454,"ms":80011.685},"presents":1919,"frame_ms":{"p50":16.811,"p90":33.618,"p99":253.639,"max":16365.273},"gpu_busy_ms_per_present":2.823,"worker_busy_pct":{"queue worker 0x0":73.392,"queue worker 0x28":2.641,"queue worker 0x20":25.167,"queue worker 0x30":12.741,"queue worker 0x38":2.257},"top_phases_ms_per_frame":{"Driver.Packet":47.958,"Driver.Packet.memory_wait":17.945,"VideoOut.Flip":17.614,"VideoOut.Flip.vblank_wait":15.645,"Graphics.Draw":13.186,"Graphics.Draw.draw_and_resource_release":12.355,"Driver.Packet.draw":11.246,"Driver.Draw":11.218},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":78.273,"events_lost":36292,"totals_full":false}},"trace":"aps5-trace-681ef4392670-21344.json.gz"}
{"commit":"02172d7ed375","dirty":false,"env":{"APS5_MIMALLOC":"1","APS5_TRACE_DIR":"","APS5_TRACE_SECONDS":"40:80"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 40:80","first_present":454,"ms":80031.893},"presents":1981,"frame_ms":{"p50":16.834,"p90":34.470,"p99":236.325,"max":14174.024},"gpu_busy_ms_per_present":3.415,"worker_busy_pct":{"queue worker 0x0":73.370,"queue worker 0x20":13.755,"queue worker 0x28":22.742,"queue worker 0x30":5.947,"queue worker 0x38":1.032},"top_phases_ms_per_frame":{"Driver.Packet":46.622,"Driver.Packet.memory_wait":17.574,"VideoOut.Flip":17.149,"VideoOut.Flip.vblank_wait":15.449,"Graphics.Draw":13.481,"Graphics.Draw.draw_and_resource_release":12.445,"Driver.Packet.draw":12.111,"Driver.Draw":12.074},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":75.588,"events_lost":96457,"totals_full":false}},"trace":"aps5-trace-02172d7ed375-34488.json.gz"}


Not tested: Linux / RADV (AMD hardware welcome: the review's failures came from spirv-val, which this configuration runs).

### Checklist
- [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: #11184 and #13053 (both merged)
- [x] Fixes: none
- [x] Unblocks: none
- [x] GPUs tested: NVIDIA GeForce RTX 4090 (616.92, Windows 11), Intel UHD Graphics 770 (101.6129, Windows 11)
- [x] AI-assisted: yes (Claude Code)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01V1W4jdNSKTV7xwuS6xQPJV


@github-actions github-actions Bot added perf Performance change perf numbers missing perf pull request without a before and after summary line labels Oct 25, 2026
@github-actions

Copy link
Copy Markdown

This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

@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 code review found the FMA path consistently gated by native f16 rounding/denorm support and shaderFmaFloat16; the test and replay flag exercise the enabled and fallback paths. I ran git diff --check and python3 tools/check_conventions.py --base upstream/main on this exact head; both pass. The PR's reported GPU comparisons are useful, but I could not independently run the Vulkan test locally, and hosted product-build jobs were skipped.

The required performance evidence is still missing. The repository rule and the automated request require the main and changed aps5-summary.jsonl lines plus two traces from the same title, scene and machine, and tools/trace_digest.py output. The PR says its game windows covered different scenes and therefore are not comparable, and does not include those artifacts. Please rerun a comparable capture pair and attach both lines, traces and digest output, or get maintainer direction on an applicable exception before treating the perf report as complete. I am requesting changes for this outstanding contribution-rule requirement; this is not a finding that the code path itself is incorrect.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

Thanks @MarcZX10, fair. What this PR changes is pipeline creation, and 0x25b390800 is compiled while the open world loads, which is the same sequence in every run (same save). So I'm capturing that: a cold-cache windowed trace (APS5_TRACE_SECONDS, empty ANYPS5_SHADER_CACHE_DIR) of the open-world load, one with #11184 alone and one with this PR, same machine and save. I'll add both summary lines, both traces and the trace_digest.py output to the body.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 added to the body: both aps5-summary.jsonl lines, the two traces and both trace_digest.py outputs (fork release), from a cold-cache window of the open-world load on the same machine and save.

In the base window, the 0x25b390800 compute pipeline is a 5850.5 ms Vulkan.ComputePipeline slice inside an 8412.7 ms frame; with this PR no compute pipeline slice in the window is longer than 18 ms. One caveat, stated in the body: the NVIDIA driver's own shader cache is outside ANYPS5_SHADER_CACHE_DIR, and this PR's module had already been compiled on this machine once, so the in-game gap may overstate the change. The salted offline replays (5445 -> 3743 ms median) are the controlled number.

@github-actions github-actions Bot removed the perf numbers missing perf pull request without a before and after summary line label Oct 25, 2026
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

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 10652 core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp L52-53, L62, L192
PR 15343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L2166

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 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 2434 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
core/shader/recompiler/Translation/src/FloatInstructions.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
PR 6412 core/shader/recompiler/Recompiler.cpp
PR 6416 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 6488 core/shader/recompiler/Recompiler.cpp
PR 6553 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 6751 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 6804 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 6858 core/shader/recompiler/Recompiler.cpp
PR 6924 core/shader/recompiler/Recompiler.cpp
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7392 core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 7395 core/shader/recompiler/Recompiler.cpp
PR 7410 core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrOpcode.hpp
core/shader/recompiler/IntermediateRepresentation/src/IrOpcode.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterInstructions.hpp
core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
core/shader/recompiler/Translation/include/Translation/InstructionTranslator.hpp
core/shader/recompiler/Translation/include/Translation/TranslationContext.hpp
core/shader/recompiler/Translation/src/InstructionTranslator.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7464 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 8939 core/shader/recompiler/Recompiler.cpp
PR 9020 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 9289 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9335 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/Recompiler.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/Recompiler.cpp
PR 9457 core/shader/recompiler/Recompiler.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 9633 core/shader/recompiler/Recompiler.cpp
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9748 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 9749 core/shader/recompiler/Recompiler.cpp
PR 9790 core/shader/recompiler/Recompiler.cpp
PR 9852 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9889 core/shader/recompiler/Translation/include/Translation/TranslationContext.hpp
core/shader/recompiler/Translation/src/FloatInstructions.cpp
PR 9897 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9969 core/shader/recompiler/Recompiler.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 10351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/Recompiler.cpp
PR 10359 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Translation/include/Translation/InstructionTranslator.hpp
core/shader/recompiler/Translation/src/InstructionTranslator.cpp
PR 10442 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10678 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10757 core/shader/recompiler/Recompiler.cpp
PR 11435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11436 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11452 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11490 core/shader/recompiler/Translation/include/Translation/TranslationContext.hpp
core/shader/recompiler/Translation/src/FloatInstructions.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 11995 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 12324 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
PR 12548 core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrOpcode.hpp
core/shader/recompiler/IntermediateRepresentation/src/IrOpcode.cpp
core/shader/recompiler/Optimization/src/MaskedSelectEliminator.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterInstructions.hpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 12828 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
PR 12904 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 12944 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/IntermediateRepresentation/src/IrOpcode.cpp
core/shader/recompiler/Recompiler.cpp
PR 13148 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13486 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
PR 13793 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13863 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13920 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13928 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 13929 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 14032 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 14051 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 14217 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
PR 14218 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterInstructions.hpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 14344 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 14853 core/shader/recompiler/Recompiler.cpp
PR 14871 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
PR 14943 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 14944 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 15015 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15136 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 15169 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 15295 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15296 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15548 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderValidation.cpp
core/shader/recompiler/Recompiler.cpp
PR 15555 core/shader/recompiler/Recompiler.cpp
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp

@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.

Re-reviewed the updated performance report. The two summary lines and gzip traces are accessible from the linked fork release; I downloaded both traces and ran tools/trace_digest.py on each, confirming the reported 8,412.7 ms base frame and 2,651.4 ms changed-build maximum. Both captures mark trace_dropped: true, which the report discloses. The remaining policy issue is the baseline commit: abfc85162b6e is the head of open PR #11184, not main. PR #11184 is still OPEN, and the current upstream main is acb900c194325b9ee8c23c10768a9a491454f0b2; comparing that main with abfc85162b6e shows the branches have diverged. Please provide a capture from current main and the changed stack on the same title/scene/machine, or obtain maintainer approval to use the parent PR as the baseline and document that exception. This request is only about satisfying the stated main baseline for the performance claim; I found no new code finding. Hosted policy/conventions pass; product build jobs are skipped by path policy.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 done: both branches are rebased onto main acb900c19, and the body now compares that main with this PR's head (61bc20017f, which has #11184 below it), same save, machine and window. Summary lines, traces and digests are in the body and the release.

The result is honest but flat: in this pair neither build compiles 0x25b390800 during the window (longest Vulkan.ComputePipeline 22.9 vs 18.6 ms), because the NVIDIA driver already had both modules in its own cache from earlier runs. The earlier pair caught the uncached case once (5850.5 ms inside an 8412.7 ms frame), and the salted replays measure it under control (5445 -> 3743 ms). So the in-game effect is on first compiles per driver/module only; the body says so.

The 44 f16/fma tests were rerun on the rebased head with validation and spirv-val (RTX 4090 fused, UHD 770 fallback): all pass.

@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 updated capture pair resolves my earlier baseline concern: the body now supplies current main (acb900c19432) and PR head (61bc20017f97) summaries for the same GTA V scene/window, machine, GPU, and settings, and both published trace filenames match their summary lines. I downloaded both release traces and independently ran the current tools/trace_digest.py from upstream/main with each summary file alongside its trace.

The attached digest files do not reproduce from those published trace artifacts. For example, the main digest says the draw committer has 8.5 ms busy / 0.0 ms waiting, while the rerun reports 8.4 / 0.2; the PR digest says 7.0 / 0.0, while the rerun says 6.8 / 0.2. The reruns also include a Largest GPU batches section that is absent from both attached outputs. Please regenerate and replace the two digest files using the current script on these exact trace assets. The summary headers, reported frame maxima and slowest-frame rows match; this request is about making the attached full digest output reproducible from the published pair.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 right, those two came from an older tools/trace_digest.py. Replaced both release assets (digest-main-acb900c.txt, digest-pr-61bc200.txt) with the output of upstream/main's script on the same trace files; they now show 8.4 / 0.2 and 6.8 / 0.2 for the draw committer and include the Largest GPU batches section. The headline lines quoted in the body are unchanged.

@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 replacement trace digests now reproduce exactly from the released traces using tools/trace_digest.py from current main; that resolves my previous evidence finding.

One required shader validation result is still missing from the report. CONTRIBUTING.md requires the same focused shader tests on main and this change, with validation enabled, for every reported GPU. The description reports the focused f16/fma runs on this PR head, but its full-suite baseline is from main 50bc72b, before the current rebase; I do not see the focused test results from current main acb900c on either the RTX 4090 or UHD 770. The hosted product jobs are skipped for this PR, so CI does not supply that comparison. Please add the focused baseline outcomes for both GPUs, including confirmation that VK_LAYER_KHRONOS_validation was inserted and the comparison found no new VUID errors.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 added under Tested: the same 44 focused f16/fma tests on main acb900c19 (built with its own v2025.4 pins) and on this head, on both GPUs, with VK_LAYER_KHRONOS_validation (insertion confirmed with VK_LOADER_DEBUG=layer) and spirv-val. RTX 4090: 44/44 on both, 0 VUID- lines on both. UHD 770: 42/44 on both with the same two skips (no Float64 / dot2), 0 VUID- lines on both. The 4090 PR run takes the OpFmaKHR path; the UHD 770 stays on the f32 path in both.

@MarcZX10

Copy link
Copy Markdown
Contributor

The updated description now includes the focused baseline runs on current main for both GPUs, with validation-layer insertion and zero new VUID- lines; that resolves my previous baseline-test request. The exact-head overlap warning still needs manual coordination, though. I merged the current heads pairwise with git merge-tree; the three-way merges report content conflicts with:

All five are still open on the inspected heads. The checklist currently lists only #11184 under Depends on. Please coordinate the required merge order and list the necessary dependencies, or resolve/rebase these overlaps and update the checklist to match. I have not changed any branch.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 thanks for checking. I looked at each overlap: none of the five is a functional dependency, they touch unrelated topics and only collide on neighbouring lines:

So no merge order is needed between them and this PR, and Depends on stays #11184 only. Whichever of them lands first, I'll rebase this branch onto main, keep both sides of those lines, rerun the focused tests and update the head here.

@TechLevelZero

Copy link
Copy Markdown
Contributor

61bc20017 merged onto main does not build (every machine, gcc Release, -DBUILD_TESTING=ON):

FAILED: [code=1] core/libs/prx/libSceAgcDriver/CMakeFiles/shader_recompiler_agc_driver.dir/__/__/__/shader/recompiler/Recompiler.cpp.o
core/shader/recompiler/Recompiler.cpp:246:89: error: 'CapabilityFMAKHR' is not a member of 'spv'; did you mean 'CapabilityMax'?

Test suite only; no title was run.

AI-assisted: yes (Claude Code)

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@TechLevelZero thanks for running it. This branch carries #11184 (its first commit moves 3rdparty/SPIRV-Headers to b824a462d and 3rdparty/SPIRV-Tools to v2025.5), and spv::CapabilityFMAKHR only exists in those headers. After merging onto main, the submodules have to follow the merged gitlinks:

git submodule update --init 3rdparty/SPIRV-Headers 3rdparty/SPIRV-Tools

Without that step the checkout keeps main's 01e057791 headers and fails exactly as shown. A system SPIRV-Headers (ANYPS5_USE_SYSTEM_DEPS=ON) also needs a version with SPV_KHR_fma.

@github-actions github-actions Bot added build shader core/shader agc libSceAgc* labels Oct 26, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

Correction to my overlap comment: I reran the pairwise merges on the current PR heads. They do have textual conflicts in the shared files I named, but that alone does not prove a functional dependency or mean all five belong on this checklist line. Your explanation that these are adjacent edits that can be carried through a rebase is reasonable; Depends on: #11184 remains the dependency I can substantiate because this change needs the SPIR-V pins that PR introduces. I retract the request to list the other five as dependencies.

A separate freshness issue has appeared since the last test report. tools/check_main_sync.py --base upstream/main --head <this head> now reports 3 commits ahead / 196 behind current main 14c99b52ac (merge preview clean). The comparison tests, performance captures, and report are on acb900c19 / this older head, and #11184 is still open; current main still has the old SPIR-V submodule revisions. Once #11184 lands, please refresh this branch onto current main and rerun the focused comparison and performance report on the resulting exact head. I will keep the review at changes requested until the branch and evidence match the current baseline.

@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 earlier exact-head review findings about the trace digests and focused current-main validation were addressed in the report, and I am withdrawing my request to list the five textual-conflict PRs as dependencies; #11184 is the functional dependency because this change requires its SPIR-V pins. Current upstream main has moved since those runs: this branch is 3 ahead / 196 behind 14c99b52ac, and #11184 remains open. Please refresh onto current main after #11184 lands, rerun the focused validation comparison and update the performance evidence for that exact head before this is ready to approve.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 thanks for rerunning the merges. Agreed: once #11184 lands I will rebase this branch onto the resulting main, rerun the focused main vs PR comparison (RTX 4090 and UHD 770, validation layer, VUID- count), the salted pipeline replays and the load-window pair on that exact head, and update the body.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 refreshed now that #13053 has restored the SPIR-V pins on main.

  • Rebase: onto main 91a69952c1, new head 8d84578a43. git range-diff shows both commits =, and check_conventions.py --base upstream/main passes. Both trees build SPIRV-Tools v2025.5.
  • Focused f16/FMA set, main vs this head, validation layer inserted (41 per run), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, spirv-val on:
    • RTX 4090: 45/45 on both sides, 0 VUID-. The PR side runs the OpFmaKHR path (589824 halves, fused f16 fma).
    • UHD 770: 43/45 on both sides (the same 2 skips), 0 VUID-, fallback path.
  • Matched pair on that main, RTX 4090, NVIDIA 616.92:

The body now has the new tables and summary lines, and the old pair is gone from it. Traces, digests from current main's trace_digest.py, and the CSVs: fork release perf-11265-20261030.

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.

Re-checked — new head, looks good

The updated exact-head GPU comparison and reproducible performance artifacts resolve my prior review blockers; I found no blocking issue in the current diff.

What I ran

Reviewed head 8d84578a43058c8ca30606335ad7a9a702af2658 against PR base 08a10d225306ad102b57408e2ef7566bcfb829b2. The merge preview against that base was clean (tree 57e164f31b2aced81bc98f57a34a475ccffc9ba0). git diff --check and repository conventions passed. I downloaded the three released traces and summaries and reran tools/trace_digest.py from current main; all three generated digests exactly match the attached digests.txt sections. I did not run a build or GPU tests locally.

git merge-tree --write-tree upstream/main refs/remotes/upstream/pr11265
git diff --check upstream/main...refs/remotes/upstream/pr11265
python3 tools/check_conventions.py --base upstream/main --head refs/remotes/upstream/pr11265 --title 'perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR' --body <(gh pr view 11265 -R boykopovar/AnyPS5 --json body --jq .body)
python3 tools/trace_digest.py <base-trace> --summary <base-summary>
python3 tools/trace_digest.py <base-rerun-trace> --summary <base-rerun-summary>
python3 tools/trace_digest.py <pr-trace> --summary <pr-summary>

Results

Check Result
Current-base merge preview Clean; tree 57e164f31b2aced81bc98f57a34a475ccffc9ba0
Diff check Passed; no whitespace errors
Repository conventions Passed
Published trace digest reproduction All 3 digests match the released digests.txt
Hosted checks Windows, Ubuntu/macOS relinker and ASAN, conventions, eligibility, labels, and report passed; Linux and specialized jobs skipped; two macOS relinker jobs were pending at review time
Focused GPU tests and performance measurements Author-reported; not run locally
Unedited local check output
57e164f31b2aced81bc98f57a34a475ccffc9ba0
All conventions checks passed.
base MATCH
pr MATCH
base2 MATCH

Findings

Blocking

None found in the reviewed diff. The earlier missing current-baseline focused comparison and trace-digest reproducibility issues are resolved in the updated report.

Non-blocking

  • The capture baseline is main at 91a69952c1; current main has advanced to 08a10d2253. The merge preview is clean, and none of the intervening main commits changes a file touched by this PR.
  • The author reports 45/45 focused tests with validation on RTX 4090 for both arms, and 43/45 with the same two hardware skips on UHD 770; those GPU runs were not independently performed by me. The trace reports disclose event drops after the relevant compile slices.

Sources

Not verified

I did not build the project or run Vulkan/GPU tests locally. The hosted Linux job was skipped and the two macOS relinker checks were still pending; no RADV/AMD run is reported.

@TechLevelZero

TechLevelZero commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

❌ NVIDIA GPU test: failed

PR head 8d84578 merged onto main 1d91f29 · tested 2026-11-02 19:27 UTC · 36 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,625 passed · 5 failed (0 new, 2 also fail on main, 3 unstable on main) · 44 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,674 of 3,544 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ❌ 26 new validation ID(s) vs main (983 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ agc_driver_graphics_maps_fallback 32.7 s, ⚠️ agc_driver_graphics 31.8 s

New validation errors

This PR changes test files, so each test below was also run on main with only the PR's test changes applied; 0 there means the PR's other changes cause the error.

ID Test main 1d91f29 main + this PR's test changes only PR PR, test re-run alone
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_dpp16_operands 0 0 2 2 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_dpp16_operands 0 0 3 6 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_dpp16_operands 0 0 3 6 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_dpp8_pk_fmac 0 0 8 8 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_dpp8_pk_fmac 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_dpp8_pk_fmac 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_dx10_clamp 0 0 4 4 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_dx10_clamp 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_dx10_clamp 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_float16_fma_rounding 0 0 2 2 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_float16_fma_rounding 0 0 3 6 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_float16_fma_rounding 0 0 3 6 (in 2 runs)
VUID-VkPipelineShaderStageCreateInfo-module-parameter agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_float16_unused_nan_payloads 0 0 14 14 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_packed_alu 0 0 4 4 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_packed_alu 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_packed_alu 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_packed_f16_denormal_modes 0 0 8 8 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_packed_f16_denormal_modes 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_packed_f16_denormal_modes 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_packed_float16_native 0 0 16 16 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_packed_float16_native 0 0 24 48 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_packed_float16_native 0 0 24 48 (in 2 runs)
agc_driver_dpp16_operands: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
agc_driver_dpp8_pk_fmac: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
agc_driver_dx10_clamp: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
agc_driver_float16_fma_rounding: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
agc_driver_float16_unused_nan_payloads: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkPipelineShaderStageCreateInfo-module-parameter(ERROR / SPEC): msgNum: -42869648 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-module-parameter ] | MessageID = 0xfd71dc70 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x560000000056[] failed in spirv-opt because it does not contain valid spirv for stage VK_SHADER_STAGE_COMPUTE_BIT. Invalid capability operand: 6030. The Vulkan spec states: If module is not VK_NULL_HANDLE, module must be a valid VkShaderModule handle (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkPipel
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849(ERROR / SPEC): msgNum: 1132206547 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 ] | MessageID = 0x437c19d3 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x560000000056[] shader (stage VK_SHADER_STAGE_COMPUTE_BIT) attempted to apply specialization constants with spirv-opt but failed. The Vulkan spec states: If a shader module identifier is not specified, the shader code used by the pipeline must be valid as described by the Khronos SPIR-V Specification after applying the sp
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkPipelineShaderStageCreateInfo-module-parameter(ERROR / SPEC): msgNum: -42869648 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-module-parameter ] | MessageID = 0xfd71dc70 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x640000000064[] failed in spirv-opt because it does not contain valid spirv for stage VK_SHADER_STAGE_COMPUTE_BIT. Invalid capability operand: 6030. The Vulkan spec states: If module is not VK_NULL_HANDLE, module must be a valid VkShaderModule handle (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkPipel
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849(ERROR / SPEC): msgNum: 1132206547 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 ] | MessageID = 0x437c19d3 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x640000000064[] shader (stage VK_SHADER_STAGE_COMPUTE_BIT) attempted to apply specialization constants with spirv-opt but failed. The Vulkan spec states: If a shader module identifier is not specified, the shader code used by the pipeline must be valid as described by the Khronos SPIR-V Specification after applying the sp
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 3 of the last 10 main runs
agc_submit_progress: failed in 8 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 7 of the last 10 main runs
Failing on main too (2, not counted against this PR)
agc_driver_image_table
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 510 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (510 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 502 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
Skipped (44)
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_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_out_flip_fresh: skipped, no display or Vulkan device: 
Reproduce
git fetch origin 8d84578a43058c8ca30606335ad7a9a702af2658 1d91f2966d0eef82a021628a7aa8e78e615ac807
git checkout 1d91f2966d0eef82a021628a7aa8e78e615ac807 && git merge --no-ff 8d84578a43058c8ca30606335ad7a9a702af2658
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
# the failing tests, on this merge and on main:
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc_driver_dpp16_operands|agc_driver_dpp8_pk_fmac|agc_driver_dx10_clamp|agc_driver_float16_fma_rounding|agc_driver_float16_unused_nan_payloads|agc_driver_packed_alu|agc_driver_packed_f16_denormal_modes|agc_driver_packed_float16_native)$' --parallel 1 -V

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.

@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 — changes requested

The exact-head NVIDIA validation report shows nine new Vulkan validation IDs on this PR, including unsupported FMAKHR capability and SPV_KHR_fma extension declarations.

What I ran

Reviewed head 8d84578a43058c8ca30606335ad7a9a702af2658 against PR base 08a10d225306ad102b57408e2ef7566bcfb829b2; the merge preview against current main was clean. Local environment: Linux x86_64, Python 3.11.2. I inspected the shader capability detection/emission and the exact-head GPU report. No local build or GPU test was run.

git diff --check 08a10d225306ad102b57408e2ef7566bcfb829b2...8d84578a43058c8ca30606335ad7a9a702af2658
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11265

Results

Check Result
Diff whitespace Passed; no output
Conventions and PR template Passed locally
Current-main merge preview Clean
Exact-head NVIDIA validation report Failed: 9 new validation IDs across agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, and agc_driver_dx10_clamp; each was reproduced when rerun alone
Main and main-plus-test-change controls The report records zero of these IDs on both controls
Local build and GPU tests Not run

The report identifies VUID-VkShaderModuleCreateInfo-pCode-08739 for an unsupported SPIR-V capability and VUID-VkShaderModuleCreateInfo-pCode-08741 for unsupported SPV_KHR_fma; it also reports 08737 from SPIR-V validation. The PR tests completed, but those passing exits do not make the validation errors harmless. The no-build precheck's ABI/test-quality steps could not start because workspace-local helper scripts were absent in its isolated checkout; those results do not affect this Vulkan finding.

Negative control

Assertion Change to code under test Did the new test fail?
NVIDIA report's validation finding Main with only this PR's test-file changes No; the report records zero of these IDs.

Findings

Blocking

  • The current feature/capability path produces SPIR-V that the NVIDIA RTX 2000 Ada Vulkan validation run rejects as declaring unsupported FMA capability/extension. The same three tests have zero such IDs on main and on main plus the PR's test-only changes, and the report reproduced the IDs when each test was rerun alone. Please correct the device feature/extension gating so FMAKHR and SPV_KHR_fma are emitted only when actually supported and enabled, retaining the existing fallback otherwise. Then rerun the same three tests with validation enabled and confirm zero new IDs against main.

Non-blocking

None.

Sources

Not verified

I did not reproduce the NVIDIA GPU run locally or build this PR. The reported failing GPU is an RTX 2000 Ada; the author's separate RTX 4090 run and Intel fallback run do not cover this reported device-specific failure.

To get this to a good state

Fix the capability/extension path or keep the fallback on devices that do not support it, then rerun the reported validation tests and compare them with main. I will rerun the same available no-build checks and reassess the exact new head.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 @TechLevelZero thanks for the report. I think the validation layer on that runner is older than VK_KHR_shader_fma, and the gating in the PR is correct. Here is why.

What the messages say

  • 08739 names the capability as (Unhandled OpCapability). A validation layer prints that text when its generated table has no entry for the capability.
  • 08741 says SPV_KHR_fma "is not supported by Vulkan". A layer prints that when it has no mapping from the SPIR-V extension to a Vulkan extension.
  • 08737 is the layer's own spirv-val, which would also reject OpFmaKHR if its SPIRV-Tools predates it.

When Vulkan-ValidationLayers learned it (layers/vulkan/generated/spirv_validation_helper.cpp at each tag):

VVL tag SPV_KHR_fma → VK_KHR_shader_fma CapabilityFMAKHR
vulkan-sdk-1.4.328.0 missing missing → "Unhandled OpCapability"
v1.4.329 present entry commented out → still "Unhandled OpCapability"
v1.4.330 and later present shaderFmaFloat16/32/64, printed as "FMAKHR"

Getting both 08739 and 08741 together fits a layer at 1.4.328 or older. For example, Ubuntu 24.04's vulkan-validationlayers package is 1.3.275. The "Vulkan 1.4.329" in the report is probably the driver's API version, not the layer's.

The gating. VulkanDevice.cpp emits FMAKHR and SPV_KHR_fma only after these steps:

  1. It finds VK_KHR_shader_fma in the device's extension list.
  2. It reads VkPhysicalDeviceShaderFmaFeaturesKHR::shaderFmaFloat16 == VK_TRUE via vkGetPhysicalDeviceFeatures2.
  3. It enables the extension and chains the feature struct with shaderFmaFloat16 = VK_TRUE into vkCreateDevice.

On a device without the extension the fallback stays. The UHD 770 shows this: packed f16 native tests passed (294912 halves, no FMAKHR). On the RTX 2000 Ada, driver 595.99 must advertise the feature, or nothing would have been emitted.

Same three tests here with a current layer (head 8d84578a43, RTX 4090 driver 616.92, Vulkan SDK 1.4.363 layer, insertion checked with VK_LOADER_DEBUG=layer):

  • agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac and agc_driver_dx10_clamp pass with 0 VUID- lines.
  • The whole focused set of 45 tests also has 0 VUID- lines, with the fused path active (589824 halves, fused f16 fma).

@TechLevelZero could you check the layer version on the runner? Either of these would show it:

  • vulkaninfo --summary | grep -i validation
  • dpkg -s vulkan-validationlayers | grep Version

If it is older than 1.4.330, a newer layer, for example the LunarG SDK tarball or a build of vulkan-sdk-1.4.335.0 or later, should clear these three tests. I can't change the PR to silence an outdated layer without also turning the fused path off on drivers that support it.

@jotitadev jotitadev 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.

Confirming tibzejoker's explanation of the NVIDIA report: the bot's layer is Vulkan-ValidationLayers 1.3.275 (Ubuntu 24.04's package), and the nine IDs come from that layer.

  • The bot's own messages show it. The pNext-pNext message in its "already present on main" list (428 tests) says "based on the Valid Usage documentation for version 275 of the Vulkan header". The "Vulkan 1.4.329" in the report header is the driver's API version: my 3070 on the same 595.99.02 driver reports apiVersion = 1.4.329.
  • The 595.99.02 driver advertises VK_KHR_shader_fma with shaderFmaFloat16 = true, so the fused path is taken on NVIDIA. The 1.3.275 layer's spirv-val rejects it with Invalid capability operand: 6030 (6030 is FMAKHR).

I reproduced it with 8d84578a43 merged onto main 16345cad6a, on Ubuntu 26.04 with GCC 15.2, Release and -DANYPS5_ENABLE_SPIRV_TOOLS=ON. The run used ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, -j1, and the three tests agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac and agc_driver_dx10_clamp.

Device / layer Result New VUIDs
RTX 3070, VVL 1.3.275 (the .deb from Ubuntu 24.04) pass 2/2 08739 and 08741 on all three tests in both runs; 08737 in the first run only. Same IDs as the bot
RTX 3070, VVL 1.4.341 (layer insertion checked with VK_LOADER_DEBUG=layer) pass 3/3 none
RTX 3070, no layer pass 3/3 n/a
lavapipe (Mesa 26.0.3), VVL 1.4.341 pass none

On main with VVL 1.3.275, the same three tests only log the pNext-pNext that is already on main. So the PR's gating holds on NVIDIA. These IDs come from the old layer and are gone with 1.4.341.

GPUs tested: NVIDIA RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3).

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

Thanks @jotitadev for checking this on your 3070 with both layers. It confirms what I suspected: the bot's layer is 1.3.275, and with 1.4.341 the three tests report no VUID- lines.

@MarcZX10 the nine IDs in the report come from the bot's validation layer, not from this PR. When you have a moment, could you take another look at head 8d84578a43? @TechLevelZero, updating the runner's layer, for example to the LunarG SDK, would stop it flagging any PR that uses VK_KHR_shader_fma.

AI-assisted: yes (Claude Code)

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@MarcZX10 on the nine validation IDs: our 4090 receipt on 8d84578a43 (main with #13053's pins, the f16/FMA tests including agc_driver_dpp8_pk_fmac) ran with Vulkan-ValidationLayers 1.4.363 and logged no VUID- lines. That fits jotitadev's comparison above: the IDs appear with the bot's 1.3.275 layer, which predates VK_KHR_shader_fma, and not with 1.4.341. We read them as a layer-version artifact, not a problem in this PR. Could you take another look when you have time?

@RNK123

RNK123 commented Nov 2, 2026

Copy link
Copy Markdown

RADV fused-path coverage: this RX 9060 XT actually executes the OpFmaKHR f16vec2 variant, unlike the earlier Mesa 25.2.8 RADV fallback-only run. The packed fixture passes three times with 589824 halves, fused f16 fma per run, including its forced-fallback comparisons.

Main 4569fe654a97dbcc07d9e76dd22a6099f3408ab5; PR 8d84578a43058c8ca30606335ad7a9a702af2658; clean no-commit merge tree dae592ea98f3ad10b23549ec873a497ae7f49c9a.

  • Same eight focused GPU entries on main and merge: each 3/3 pass, no skips. Selection below includes all three entries from the earlier NVIDIA validation report (dpp16_operands, dpp8_pk_fmac, dx10_clamp).
  • Same-fixture control: copying only the PR's unchanged PackedFloat16Native.cpp onto main, production unchanged, passes 3/3 and reports 294912 halves, no FMAKHR. The identical fixture on the merge reports 589824 halves, fused f16 fma 3/3. Its SPIR-V inspection requires actual typed OpFmaKHR in the fused variant, no OpFmaKHR when FMAKHR is removed, and no f16 arithmetic when Float16 is removed. GPU readbacks compare both variants to the existing f32 reference for all nine fixture modes.
  • Numeric fault control: on the merge, changing only the third operand in EmitFPFma16x2 from arg2 to arg1 leaves valid OpFmaKHR and capability gating intact but fails the unchanged fixture 3/3 at a real GPU result mismatch, not a SPIR-V shape assertion. The first mismatch is 0x7c000000 versus reference 0x7c007c00. Restore that operand, rebuild: 3/3 pass, fixture/device hashes unchanged and emitter byte-identical to the initial candidate.
  • Restored clean main, rebuilt all eight targets and reran the original eight entries successfully. Across 65 GPU test invocations including the deliberate faults and restoration, each log confirms the physical RX 9060 XT and actual Khronos insertion; zero missing-layer messages, skips, Khronos validation warnings/errors, VUID- or SYNC-HAZARD- findings.

The reported 589824 is the fixture's combined half-result comparison count across fused and forced-FMA-fallback variants, not 589824 distinct fused FMA instructions; the fixture also covers packed add/mul and modifiers. Repeats use its deterministic inputs. This is bit-equivalence and newly exercised backend coverage, not a speed measurement. Main's correct fallback is expected to pass; the failure above is an explicit fault injection on the merge, not a claim that pristine main calculates those values incorrectly.

Environment: CachyOS Linux x86-64, kernel 7.3.1-1-cachyos; AMD Radeon RX 9060 XT / RADV GFX1200, Mesa 26.2.5-arch3.1, Vulkan 1.4.354; VK_KHR_shader_fma advertised with shaderFmaFloat16=true, f16 RTE and denormal preservation supported; Khronos validation 1.4.363; GCC 16.2.1, Ninja, Release, SPIRV-Tools OFF. Required Vulkan, shader cache disabled and serial 30-second CTest throughout. The existing liblsfg-vk-layer.so implicit-layer loader diagnostic and RADV non-conformant/testing warning occur on both arms, separately from Khronos validation.

Limits: no game, trace, compile-time/FPS measurement, full suite, native PS5/gfx1013 instruction oracle or SPIRV-Tools-ON build. The GPU reference is the fixture's existing f32 translation, not a new independent guest-ISA oracle. This does not replace the performance receipts or validate the old NVIDIA setup. No approval or merge recommendation is implied.

AI-assisted independent hardware test run (gpt-6.1-sol).

Reproduction and output

Use the same configured Release/BUILD_TESTING build on pinned main and its clean merge with the PR. Build these targets (four build jobs), then run serially:

cmake --build build-main --parallel 4 --target \
  agc_driver_packed_float16_native_tests agc_driver_dpp16_operands_tests \
  agc_driver_dpp8_pk_fmac_tests agc_driver_dx10_clamp_tests \
  agc_driver_packed_f16_denormal_modes_tests agc_driver_float16_fma_rounding_tests \
  agc_driver_f16_fma_invalid_nan_tests agc_driver_f16_fma_denormal_modes_tests
export ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1
export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer
export VK_LAYER_PATH="$HOME/.local/share/anyps5-tester/vk-layers/usr/share/vulkan/explicit_layer.d"
ctest --test-dir build-main \
  -R '^agc_driver_(packed_float16_native|dpp16_operands|dpp8_pk_fmac|dx10_clamp|packed_f16_denormal_modes|float16_fma_rounding|f16_fma_invalid_nan|f16_fma_denormal_modes)$' \
  --parallel 1 --repeat until-fail:3 --timeout 30 --no-tests=error -V

Recorded entries were run individually three times, with the same environment. For the same-fixture main control, on a clean checkout of the pinned main, copy only this file, rebuild its target and rerun its entry three times:

git restore --source 8d84578a43058c8ca30606335ad7a9a702af2658 -- \
  core/libs/prx/libSceAgcDriver/tests/execution/PackedFloat16Native.cpp

Restore the fixture afterwards. For the fault injection on the merge, in core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp, change only the last arg2 to arg1 in EmitFPFma16x2's state.module.AddFunction(spv::OpFmaKHR, ...) call. Rebuild and run the packed native entry three separate times: all must fail. Restore the operand and rebuild; all three must pass. Keep the fixture unchanged throughout and restore/rebuild main afterwards.

main + unchanged PR fixture:
packed f16 native tests passed (294912 halves, no FMAKHR)

merged PR, and again after repairing the injected fault:
packed f16 native tests passed (589824 halves, fused f16 fma)

wrong-addend control:
AGC graphics: packed f16 native: no FLOAT_MODE, OpFmaKHR, v_pk_fma_f16 v12, v4, v5, v6 with v4=0x454f81f4 v5=0x749b0000 v6=0x06e17c00 v7=0x02c3ab3c is 0x7c000000, f32 path gives 0x7c007c00

Complete per-entry/per-repeat verbose logs, build logs, source/fixture hashes and the single-operand fault diff are retained locally.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

Thanks @RNK123, this run is the one the PR lacked: a device that actually takes the OpFmaKHR f16vec2 path, and on AMD's side. The fault control (changing one operand in EmitFPFma16x2 makes the unchanged fixture fail at a real GPU result) is a strong way to show the fixture checks the fused results and not only the SPIR-V shape. Thanks @oneandonlydean too for the 4090 receipt with VVL 1.4.363.

@MarcZX10 with these, the fused path is covered on RADV (RX 9060 XT) and NVIDIA (RTX 4090), the fallback on the UHD 770, and there are 0 VUID- lines on validation layers that know VK_KHR_shader_fma. Could you re-review when you have a moment?

AI-assisted: yes (Claude Code)

queeeef and others added 2 commits November 3, 2026 19:25
When the device has native f16 math and VK_KHR_shader_fma with shaderFmaFloat16, a packed f16
fma is one f16vec2 OpFmaKHR (SPV_KHR_fma). Vulkan requires OpFmaKHR to be correctly rounded and
to respect RoundingModeRTE and DenormPreserve, so it gives the fused, once-rounded result the f32
round-to-odd sum computes. The NaN, FP16_OVFL and clamp rules still run on the result bits.

Rebased onto current main by tibzejoker.

Co-Authored-By: thibaut <thibaut-leaux-angeli@live.fr>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PHJtpJ4hw3KWJhobipK8ia
--shader-fma adds the FMAKHR capability and SPV_KHR_fma to a saved request's target, as
--robust2 and --maintenance8 do for their features.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PHJtpJ4hw3KWJhobipK8ia
@tibzejoker

tibzejoker commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Rebased onto current main 1e658521a0 because the PR had a conflict. The new head is bd204f0f60.

  • Conflict: fe18496c95 added shaderResourceMinLod as the last parameter of ValidateShaders / Inspect, the same place this PR adds fmaFloat16. I kept both, main's first (..., bool shaderResourceMinLod = false, bool fmaFloat16 = false) and the caller in Draw.cpp passes both. No test passes either one by position. Both commits are otherwise unchanged (git range-diff shows them identical).
  • Focused set fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands. Validation layer inserted in every run (43), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1:
GPU main 1e658521a0 this PR VUID- lines
RTX 4090 (616.92) 47/47 47/47, fused path (589824 halves, fused f16 fma) 0 / 0
UHD 770 (101.6129) 44/47, 3 skipped 44/47, 3 skipped, fallback (no FMAKHR) 0 / 0

On the UHD 770, agc_driver_f64_fma_denormal_modes, agc_driver_f64_fma_subnormals and agc_driver_float16_dot skip on both trees.

  • check_conventions.py --base upstream/main passes.

@MarcZX10 this is the head to re-review. RNK123's RADV run above covers the fused path on AMD.

AI-assisted: yes (Claude Code)

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

Copy link
Copy Markdown
Contributor

❌ NVIDIA GPU test: failed

PR head bd204f0 merged onto main 1e65852 · tested 2026-11-03 20:31 UTC · 37 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,714 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 48 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,767 of 3,818 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ❌ 26 new validation ID(s) vs main (937 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s

New validation errors

This PR changes test files, so each test below was also run on main with only the PR's test changes applied; 0 there means the PR's other changes cause the error.

ID Test main 1e65852 main + this PR's test changes only PR PR, test re-run alone
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_dpp16_operands 0 0 2 2 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_dpp16_operands 0 0 3 6 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_dpp16_operands 0 0 3 6 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_dpp8_pk_fmac 0 0 8 8 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_dpp8_pk_fmac 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_dpp8_pk_fmac 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_dx10_clamp 0 0 4 4 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_dx10_clamp 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_dx10_clamp 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_float16_fma_rounding 0 0 2 2 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_float16_fma_rounding 0 0 3 6 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_float16_fma_rounding 0 0 3 6 (in 2 runs)
VUID-VkPipelineShaderStageCreateInfo-module-parameter agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_float16_unused_nan_payloads 0 0 14 14 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_float16_unused_nan_payloads 0 0 21 42 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_packed_alu 0 0 4 4 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_packed_alu 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_packed_alu 0 0 6 12 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_packed_f16_denormal_modes 0 0 8 8 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_packed_f16_denormal_modes 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_packed_f16_denormal_modes 0 0 12 24 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08737 agc_driver_packed_float16_native 0 0 16 16 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08739 agc_driver_packed_float16_native 0 0 24 48 (in 2 runs)
VUID-VkShaderModuleCreateInfo-pCode-08741 agc_driver_packed_float16_native 0 0 24 48 (in 2 runs)
agc_driver_dpp16_operands: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
agc_driver_dpp8_pk_fmac: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
agc_driver_dx10_clamp: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
agc_driver_float16_fma_rounding: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
agc_driver_float16_unused_nan_payloads: new validation messages
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkPipelineShaderStageCreateInfo-module-parameter(ERROR / SPEC): msgNum: -42869648 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-module-parameter ] | MessageID = 0xfd71dc70 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x560000000056[] failed in spirv-opt because it does not contain valid spirv for stage VK_SHADER_STAGE_COMPUTE_BIT. Invalid capability operand: 6030. The Vulkan spec states: If module is not VK_NULL_HANDLE, module must be a valid VkShaderModule handle (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkPipel
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849(ERROR / SPEC): msgNum: 1132206547 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 ] | MessageID = 0x437c19d3 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x560000000056[] shader (stage VK_SHADER_STAGE_COMPUTE_BIT) attempted to apply specialization constants with spirv-opt but failed. The Vulkan spec states: If a shader module identifier is not specified, the shader code used by the pipeline must be valid as described by the Khronos SPIR-V Specification after applying the sp
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
VUID-VkShaderModuleCreateInfo-pCode-08737(ERROR / SPEC): msgNum: -1520283006 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08737 ] | MessageID = 0xa5625282 | vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
VUID-VkPipelineShaderStageCreateInfo-module-parameter(ERROR / SPEC): msgNum: -42869648 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-module-parameter ] | MessageID = 0xfd71dc70 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x640000000064[] failed in spirv-opt because it does not contain valid spirv for stage VK_SHADER_STAGE_COMPUTE_BIT. Invalid capability operand: 6030. The Vulkan spec states: If module is not VK_NULL_HANDLE, module must be a valid VkShaderModule handle (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkPipel
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849(ERROR / SPEC): msgNum: 1132206547 - Validation Error: [ VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 ] | MessageID = 0x437c19d3 | vkCreateComputePipelines(): pCreateInfos[0].stage VkShaderModule 0x640000000064[] shader (stage VK_SHADER_STAGE_COMPUTE_BIT) attempted to apply specialization constants with spirv-opt but failed. The Vulkan spec states: If a shader module identifier is not specified, the shader code used by the pipeline must be valid as described by the Khronos SPIR-V Specification after applying the sp
VUID-VkShaderModuleCreateInfo-pCode-08739(ERROR / SPEC): msgNum: 1616057594 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08739 ] | MessageID = 0x605314fa | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V has Capability (Unhandled OpCapability) declared, but this is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.htm
VUID-VkShaderModuleCreateInfo-pCode-08741(ERROR / SPEC): msgNum: 9669426 - Validation Error: [ VUID-VkShaderModuleCreateInfo-pCode-08741 ] | MessageID = 0x938b32 | vkCreateComputePipelines(): pCreateInfos[0].stage SPIR-V Extension SPV_KHR_fma was declared, but that is not supported by Vulkan. The Vulkan spec states: If pCode is a pointer to SPIR-V code, pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkShaderM
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 4 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 5 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 (4 IDs in 517 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (517 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 509 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_srgb8_color_target
Skipped (48)
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_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
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 co
Reproduce
git fetch origin bd204f0f608f348207cf84b8be42b263c8f54111 1e658521a0a599872612bb91949311e2956b5283
git checkout 1e658521a0a599872612bb91949311e2956b5283 && git merge --no-ff bd204f0f608f348207cf84b8be42b263c8f54111
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
# the failing tests, on this merge and on main:
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc_driver_dpp16_operands|agc_driver_dpp8_pk_fmac|agc_driver_dx10_clamp|agc_driver_float16_fma_rounding|agc_driver_float16_unused_nan_payloads|agc_driver_packed_alu|agc_driver_packed_f16_denormal_modes|agc_driver_packed_float16_native)$' --parallel 1 -V

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.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

Note on the NVIDIA CI report above (head bd204f0): the 26 new IDs are the same layer-version issue as on 10-30, now over more tests because the rebase picked up main's newer f16 tests.

  • 24 of them are VUID-VkShaderModuleCreateInfo-pCode-08737/08739/08741: "Unhandled OpCapability" FMAKHR and the SPV_KHR_fma extension. The runner's layer is VVL 1.3.275, as jotitadev confirmed. VVL only learned FMAKHR in v1.4.330.
  • The other 2 are on agc_driver_float16_unused_nan_payloads: VkPipelineShaderStageCreateInfo-module-parameter and pSpecializationInfo-06849. Both are reported against the same module that the old layer has just rejected.

Here, with VVL 1.4.363, the focused set (fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands, 47 tests, ANYPS5_NO_SHADER_CACHE=1, layer insertion checked) gives 0 VUID- lines on main 1e65852 and on this PR. That holds on the RTX 4090 (fused OpFmaKHR path) and on the UHD 770 (fallback). No change needed in the PR as far as I can tell; happy to rerun anything specific.

@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head bd204f0 merged onto main 1e65852 · tested 2026-11-03 21:06 UTC · 37 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,699 passed · 10 failed (0 new, 9 also fail on main, 1 unstable on main) · 58 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,767 of 3,818 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 (937 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.3 s, ⚠️ agc_driver_image_sample_unnormalized 53.7 s, ⚠️ agc_driver_lazy_resolved_abi 48.5 s, ⚠️ public_headers 39.6 s, ⚠️ agc_driver_stream_copy 37.0 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 7 of the last 9 main runs
Failing on main too (9, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_store_over_untracked
agc_driver_submit_progress
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validation IDs already present on main (4 IDs in 517 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (517 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 509 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
Skipped (58)
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_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
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_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
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: DisplayW
Reproduce
git fetch origin bd204f0f608f348207cf84b8be42b263c8f54111 1e658521a0a599872612bb91949311e2956b5283
git checkout 1e658521a0a599872612bb91949311e2956b5283 && git merge --no-ff bd204f0f608f348207cf84b8be42b263c8f54111
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 12 --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 16 --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 AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

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

Labels

agc libSceAgc* build perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.