test(agc): give lds_src2 the LDS it uses instead of 40 KiB #5043

Closed
Zheorgyan wants to merge 1 commit from upstream-pr/5043 into main
Zheorgyan commented 2026-10-13 09:27:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zheorgyan on 2026-10-13T09:27:31Z.


What

agc_driver_lds_src2 asks for 10240 dwords of LDS, 40 KiB, which looks like a byte count in ldsSizeDwords. Apple GPUs allow 32 KiB of threadgroup memory, so on MoltenVK the pipeline is refused with "Threadgroup memory size (40960) exceeds the maximum threadgroup memory allowed (32768)" and vkCreateComputePipelines returns -3. the test touches 2432 dwords, it passes at 2432 and fails below, so it now asks for 2560, 10240 bytes

Tested

  • macOS 15.6.1 on an M1 Pro, x86-64 under Rosetta, MoltenVK from Vulkan SDK 1.4.363.0, on mugurc's macos-port at c3affc1c. fails before with the message above, passes after
  • Linux, Ubuntu 24.04 in Docker, GCC 14.2, lavapipe. passes before and after
  • tools/check_conventions.py passes

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4841173144 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5043). Originally posted by [Zheorgyan](https://github.com/Zheorgyan) on 2026-10-13T09:27:31Z. --- ### What `agc_driver_lds_src2` asks for 10240 dwords of LDS, 40 KiB, which looks like a byte count in `ldsSizeDwords`. Apple GPUs allow 32 KiB of threadgroup memory, so on MoltenVK the pipeline is refused with "Threadgroup memory size (40960) exceeds the maximum threadgroup memory allowed (32768)" and `vkCreateComputePipelines` returns -3. the test touches 2432 dwords, it passes at 2432 and fails below, so it now asks for 2560, 10240 bytes ### Tested - macOS 15.6.1 on an M1 Pro, x86-64 under Rosetta, MoltenVK from Vulkan SDK 1.4.363.0, on mugurc's `macos-port` at `c3affc1c`. fails before with the message above, passes after - Linux, Ubuntu 24.04 in Docker, GCC 14.2, lavapipe. passes before and after - `tools/check_conventions.py` passes ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Zheorgyan commented 2026-10-13 10:32:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zheorgyan on 2026-10-13T10:32:44Z.


closing, 7144bb57e spills oversized compute LDS to a storage buffer, so lds_src2 passes on Metal as it is and keeps covering that path

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6143611049 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5043#issuecomment-6143611049). Originally posted by [Zheorgyan](https://github.com/Zheorgyan) on 2026-10-13T10:32:44Z. --- closing, 7144bb57e spills oversized compute LDS to a storage buffer, so `lds_src2` passes on Metal as it is and keeps covering that path

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!5043
No description provided.