fix(agc): build agc_shader_replay with SPIRV-Tools again #6125
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6125"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-14T22:51:05Z.
What
agc_shader_replayno longer compiles withANYPS5_ENABLE_SPIRV_TOOLS=ON:--dispassedresult.spirvstraight tospvtools::SpirvTools::Disassemble, which takes either astd::vector<uint32_t>or a pointer and a word count. That relied onSharedSpirv's implicit conversion toconst std::vector<std::uint32_t>&.895002149(#4806) removed that conversion whenSharedSpirvstarted viewing mapped cache files as a span.CI configures with
-DANYPS5_ENABLE_SPIRV_TOOLS=ON, but the tool target isEXCLUDE_FROM_ALL, so CI never builds it.This change passes the words as
result.spirv.data()andresult.spirv.size(). Nothing else changes.Tested
Ubuntu 24.04, GCC 13.3, Release,
ANYPS5_ENABLE_SPIRV_TOOLS=ON, onmaineea428ca8:cmake --build build --target agc_shader_replay: fails with the error above onmain, builds with this change.agc_shader_replay --dis <request>prints the whole module for a dumped graphics request (348 instructions) and a dumped compute request (12,722 instructions).tools/check_conventions.py --base upstream/mainpasses.#5959 also edits
ShaderReplay.cppbut leaves this call as it is. The two don't overlap.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T23:32:23Z.
Closing: the same one-line fix (
result.spirv.data(), result.spirv.size()in the--discall ofShaderReplay.cpp) landed onmainwith #5959 yesterday, so this PR no longer changes anything againstmain. Thanks for finding the build break. Feel free to reopen if you see another difference.Pull request closed