test(shader): cover SPIR-V 1.3 image compilation without a GPU #2258
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2258"
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 krishalivaibhav on 2026-10-09T13:29:56Z.
What
Issue #2138's image validation failure depends on the requested SPIR-V version. Existing GPU execution tests can miss it when the available device selects SPIR-V 1.4 or skips execution.
Add a CPU-only regression using the synthetic image-load-and-buffer-store fixture from
ImageSint8.cpp. Compile the real recompiler output against explicit Vulkan 1.1 / SPIR-V 1.3 and Vulkan 1.1 / SPIR-V 1.4 targets, with shader caching disabled. Register default, full and disabled optimization variants when SPIRV-Tools is enabled; each has a 30-second timeout. Validation runs on complete emitted modules before optimization throughRecompile.Depends on #2191. That PR supplies the FMASK predicate correction and the prepared-mesh fixture correction. This PR contains only regression coverage and its build registration; it does not implement those fixes, test the mesh fixture, or claim game/GPU execution correctness.
Tested
maind70b8998: the new regression fails in all three optimizer modes with the exact issue diagnostic,Expected vector sizes of Result Type and the condition to be equal: Select.6036d142: Linux 9/9 selected tests passed, zero skipped, 0.48 seconds; Windows 9/9 selected tests passed, zero skipped, 1.02 seconds. The new regression passes in default/full/none modes on both platforms.Checklist
d70b8998; open overlapping PRs checkedImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T13:42:33Z.
The exact-head Conventions check fails because the PR body does not fill the template field in its required form. The checker looks for
Depends on: #2191(orDepends on: none) in the checklist; the currentDepends on #2191line is missing the colon and field format. Please update that line and push/edit the body, then rerun checks. The failure is recorded at https://github.com/boykopovar/AnyPS5/actions/runs/37937266178/job/113842361011.Imported from boykopovar/AnyPS5. Originally posted by tezzgod74 on 2026-10-11T01:45:10Z.
Checked that this catches #2138 without a GPU. Cherry-picked onto
main9ba3d0d7(Windows 11, MinGW-w64 GCC 15.2.0 r7,-DANYPS5_ENABLE_SPIRV_TOOLS=ON):main:agc_spirv13_image,agc_spirv13_image_fullandagc_spirv13_image_nonepass.git revert --no-commit 1774cc9d): all three fail withlevel=2 word=1301: Expected vector sizes of Result Type and the condition to be equal: Select.So the 1.3 path is now covered on CI, where every device targets 1.4.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T05:05:40Z.
#2191 is merged, so this passes on main now and fails with the emitter change reverted (run above). Please mark it ready for review.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T11:53:11Z.
Checked on main + this PR with SPIRV-Tools on:
agc_spirv13_image,_fulland_nonepass. With the #2191 emitter change reverted all three fail, so the SPIR-V 1.3 path is covered without a GPU. Matches @tezzgod74's Windows run. Merging.