fix(build): declare SPIRV headers for Vulkan helper tests #2093

Closed
STUPIDCONTEM wants to merge 1 commit from upstream-pr/2093 into main
STUPIDCONTEM commented 2026-10-09 08:14:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by STUPIDCONTEM on 2026-10-09T08:14:46Z.


Evidence review (2026-10-09)

Closed as superseded by merged #2099; do not resubmit the same build repair.

Game/title ID: none verified. No PS5 title execution is claimed.

Superseded by merged #2099 (37bc6f2e74). Both changed CMake files are byte-identical to this PR. Closing this duplicate; the validation below is historical evidence for the same fix.

What

Restore the full test build after VulkanTestDevice.hpp started including spirv/unified1/spirv.hpp for TargetHasCapability. Both agc_shader_fusion_tests and agc_driver_tests include this helper but lack the SPIRV-Headers include directory. Add it privately to those two targets; the execution-test targets already declare it.

Tested

Windows 10 Pro 19045, WinLibs GCC 15.2.0 UCRT posix SEH r7, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF, based on main 6cc0503dac.

  • Before the change, the default build failed compiling ShaderFusion.cpp with fatal error: spirv/unified1/spirv.hpp: No such file or directory.
  • After the change, the default build and explicit libs build passed. Full CTest passed 494/494 in 26.48 seconds, with no skipped tests.
  • Independent review checked every direct VulkanTestDevice.hpp consumer and confirmed only these two targets lack the path. Live open-PR search found no duplicate correction. Conventions, whitespace and test registration checked before submission.

The base 6cc0503d includes 25f10087 (the capability-helper merge). Independent validation by MarcZX100 reports successful Linux builds of both affected targets on 6cc0503d with SPIRV Tools disabled; that check did not run CTest. No title execution is claimed. This changes only test target dependencies, with no shader semantics or production code changes.

Checklist

  • Based on current main; no other open PR implements this correction
    (historical base; current readiness not asserted)
  • One topic per PR
  • No code comments added
  • No silent stubs added
  • No notes, reports or images added to the repository
  • No third-party code added
  • Generic behavior, not title-specific
  • Depends on: none
  • AI-assisted: yes; independently reviewed and tested
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4797877801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2093). Originally posted by [STUPIDCONTEM](https://github.com/STUPIDCONTEM) on 2026-10-09T08:14:46Z. --- ### Evidence review (2026-10-09) Closed as superseded by merged #2099; do not resubmit the same build repair. Game/title ID: **none verified**. No PS5 title execution is claimed. Superseded by merged #2099 (37bc6f2e74a931ca208999c8f5d9627b7c96ecd0). Both changed CMake files are byte-identical to this PR. Closing this duplicate; the validation below is historical evidence for the same fix. ### What Restore the full test build after VulkanTestDevice.hpp started including spirv/unified1/spirv.hpp for TargetHasCapability. Both agc_shader_fusion_tests and agc_driver_tests include this helper but lack the SPIRV-Headers include directory. Add it privately to those two targets; the execution-test targets already declare it. ### Tested Windows 10 Pro 19045, WinLibs GCC 15.2.0 UCRT posix SEH r7, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF, based on main 6cc0503dacc9d9697d23001d4103780ad2e9acba. - Before the change, the default build failed compiling ShaderFusion.cpp with `fatal error: spirv/unified1/spirv.hpp: No such file or directory`. - After the change, the default build and explicit libs build passed. Full CTest passed 494/494 in 26.48 seconds, with no skipped tests. - Independent review checked every direct VulkanTestDevice.hpp consumer and confirmed only these two targets lack the path. Live open-PR search found no duplicate correction. Conventions, whitespace and test registration checked before submission. The base 6cc0503d includes 25f10087 (the capability-helper merge). [Independent validation by MarcZX100](https://github.com/boykopovar/AnyPS5/pull/2093#issuecomment-6077189826) reports successful Linux builds of both affected targets on 6cc0503d with SPIRV Tools disabled; that check did not run CTest. No title execution is claimed. This changes only test target dependencies, with no shader semantics or production code changes. ### Checklist - [ ] Based on current main; no other open PR implements this correction (historical base; current readiness not asserted) - [x] One topic per PR - [x] No code comments added - [x] No silent stubs added - [x] No notes, reports or images added to the repository - [x] No third-party code added - [x] Generic behavior, not title-specific - [x] Depends on: none - [x] AI-assisted: yes; independently reviewed and tested
MarcZX10 commented 2026-10-09 08:16:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:16:28Z.


Correction to my earlier comment: current upstream main is 6cc0503dacc9d9697d23001d4103780ad2e9acba, and this PR is based on that exact commit. My request to rebase was incorrect; no rebase is needed. I independently built both affected targets with this change on Linux (BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF), and the PR description records the author’s Windows full-build and CTest results. I reviewed the two CMake changes and found them limited to adding the missing SPIRV-Headers include path to the two direct consumers.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077154259 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2093#issuecomment-6077154259). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T08:16:28Z. --- Correction to my earlier comment: current upstream `main` is `6cc0503dacc9d9697d23001d4103780ad2e9acba`, and this PR is based on that exact commit. My request to rebase was incorrect; no rebase is needed. I independently built both affected targets with this change on Linux (`BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`), and the PR description records the author’s Windows full-build and CTest results. I reviewed the two CMake changes and found them limited to adding the missing SPIRV-Headers include path to the two direct consumers.
MarcZX10 commented 2026-10-09 08:19:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:19:01Z.


Additional independent validation: I rebased a clean checkout to current upstream main 6cc0503d, applied this PR’s two include-directory additions, and built both agc_shader_fusion_tests and agc_driver_tests successfully on Linux with BUILD_TESTING=ON and ANYPS5_ENABLE_SPIRV_TOOLS=OFF. This confirms both directly affected targets compile on the updated base. I have not run CTest for these targets in this check.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077189826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2093#issuecomment-6077189826). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T08:19:01Z. --- Additional independent validation: I rebased a clean checkout to current upstream `main` `6cc0503d`, applied this PR’s two include-directory additions, and built both `agc_shader_fusion_tests` and `agc_driver_tests` successfully on Linux with `BUILD_TESTING=ON` and `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`. This confirms both directly affected targets compile on the updated base. I have not run CTest for these targets in this check.
MarcZX10 commented 2026-10-09 08:54:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:54:40Z.


Additional confirmation from fork Build run 37907057871: both Linux and Windows full builds stop at the same agc_shader_fusion_tests compile command because VulkanTestDevice.hpp cannot find spirv/unified1/spirv.hpp. The failing compiler commands contain the Vulkan-Headers include path but not 3rdparty/SPIRV-Headers/include. The three relinker jobs pass. This run used the current PR head for #1042; the failure is the same build-target dependency gap addressed here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077703942 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2093#issuecomment-6077703942). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T08:54:40Z. --- Additional confirmation from fork Build run [37907057871](https://github.com/MarcZX100/AnyPS5/actions/runs/37907057871): both Linux and Windows full builds stop at the same `agc_shader_fusion_tests` compile command because `VulkanTestDevice.hpp` cannot find `spirv/unified1/spirv.hpp`. The failing compiler commands contain the Vulkan-Headers include path but not `3rdparty/SPIRV-Headers/include`. The three relinker jobs pass. This run used the current PR head for #1042; the failure is the same build-target dependency gap addressed here.
MarcZX10 commented 2026-10-09 09:01:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T09:01:14Z.


I checked the exact PR head: GitHub currently reports no upstream check runs for it. The PR body has the author’s Windows full-build and CTest results, and I independently built both affected targets on Linux; the latest fork Build also reproduces the missing-header failure on both Linux and Windows before this fix. If the upstream workflows are held for approval, could an authorized maintainer approve them so the PR can get exact-head checks?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077800799 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2093#issuecomment-6077800799). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T09:01:14Z. --- I checked the exact PR head: GitHub currently reports no upstream check runs for it. The PR body has the author’s Windows full-build and CTest results, and I independently built both affected targets on Linux; the latest fork Build also reproduces the missing-header failure on both Linux and Windows before this fix. If the upstream workflows are held for approval, could an authorized maintainer approve them so the PR can get exact-head checks?
MarcZX10 commented 2026-10-09 09:14:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T09:14:24Z.


The SPIRV-Headers include fix is merged in #2099 and remains on current upstream main 745b775e2d883c68560b2d87f4ab96a01e221ccf. This PR has no remaining distinct change; please close it as superseded. The build observations and include-path evidence are preserved in the merged history.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6078000760 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2093#issuecomment-6078000760). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T09:14:24Z. --- The SPIRV-Headers include fix is merged in #2099 and remains on current upstream `main` `745b775e2d883c68560b2d87f4ab96a01e221ccf`. This PR has no remaining distinct change; please close it as superseded. The build observations and include-path evidence are preserved in the merged history.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2093
No description provided.