fix(shader): qualify SRT memory flags template #6306

Merged
MarcZX10 merged 1 commit from upstream-pr/6306 into main 2026-10-18 22:06:21 +00:00
MarcZX10 commented 2026-10-15 10:36:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T10:36:55Z.


What

Qualify the dependent Flags<MemoryFlags>() member-template call in SRT descriptor evaluation. GCC 12 otherwise rejects this expression while compiling SrtDescriptorEvaluation.cpp.

Tested

Linux x86-64, GCC 12.2.0, Release: built agc_shader_memory_tests; ran the test executable and the five CTest cases agc_shader_frontend_pair, agc_shader_frontend_pair_off, agc_shader_layout_pair, agc_shader_layout_pair_off, and agc_shader_memory. All passed. No GPU was used.

Checklist

  • Based on current main; no other open PR implements the same change
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no paths changed
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source; no third-party code added
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a; this is a compile and CPU test change
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4871914863 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6306). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T10:36:55Z. --- ### What Qualify the dependent `Flags<MemoryFlags>()` member-template call in SRT descriptor evaluation. GCC 12 otherwise rejects this expression while compiling `SrtDescriptorEvaluation.cpp`. ### Tested Linux x86-64, GCC 12.2.0, Release: built `agc_shader_memory_tests`; ran the test executable and the five CTest cases `agc_shader_frontend_pair`, `agc_shader_frontend_pair_off`, `agc_shader_layout_pair`, `agc_shader_layout_pair_off`, and `agc_shader_memory`. All passed. No GPU was used. ### Checklist - [x] Based on current `main`; no other open PR implements the same change - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no paths changed - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source; no third-party code added - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a; this is a compile and CPU test change - [x] AI-assisted: yes
MarcZX10 commented 2026-10-15 11:21:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T11:21:01Z.


I independently applied this exact template qualifier in an isolated worktree to get past GCC 12.2 parsing Flags<MemoryFlags>(). The full agc_driver_image_table_reuse_tests target then built and linked successfully (241 remaining Ninja steps). I could not execute the binary here: AnyPS5 exits at its host CPU guard because this container exposes an Intel Xeon E5-1620 v2 without the required AVX2/BMI features, before Vulkan initialization. The temporary edit and build outputs were removed afterward.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6190849000 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6306#issuecomment-6190849000). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T11:21:01Z. --- I independently applied this exact `template` qualifier in an isolated worktree to get past GCC 12.2 parsing `Flags<MemoryFlags>()`. The full `agc_driver_image_table_reuse_tests` target then built and linked successfully (241 remaining Ninja steps). I could not execute the binary here: AnyPS5 exits at its host CPU guard because this container exposes an Intel Xeon E5-1620 v2 without the required AVX2/BMI features, before Vulkan initialization. The temporary edit and build outputs were removed afterward.
github-actions[bot] commented 2026-10-15 12:18:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:18:23Z.


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 1341 core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp
PR 5609 core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp
PR 6539 core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191863742 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6306#issuecomment-6191863742). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:18:23Z. --- <!-- pr-overlap --> 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 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp` |
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!6306
No description provided.