test(agc): create fixture command pools with the reset flag #7337

Merged
milescoviello merged 1 commit from upstream-pr/7337 into main 2026-10-18 01:50:30 +00:00
milescoviello commented 2026-10-18 01:06:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-18T01:06:18Z.


What

Seven AGC test fixtures create their own command pool without VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT:

  • BdaDevice.cpp
  • execution/DepthStorage.cpp
  • execution/OversizedDescriptorSets.cpp
  • execution/PartiallyResidentSnapshot.cpp
  • execution/PooledBufferRange.cpp
  • execution/SampledCacheBudget.cpp
  • execution/SparseBufferHoles.cpp

Recorder begins a command buffer it has used before without resetting it explicitly. That relies on the pool flag, which the driver's own pool in VulkanDevice.cpp sets, as do the other fixtures such as Recorder.cpp and DepthSurfaceLastWriter.cpp.

Under the Khronos validation layer, the tests built on these fixtures report VUID-vkBeginCommandBuffer-commandBuffer-00050 ("attempts to implicitly reset cmdBuffer created from VkCommandPool ... that does NOT have the VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT bit set"). The command buffer state is undefined there, so a stricter driver could fail these tests for a reason unrelated to what they check. Each fixture now sets the flag the way VulkanDevice does. Test-only, one line per file.

Tested

Linux (Ubuntu 24.04, kernel 6.8), NVIDIA RTX 4070 Ti, driver 595.99.02, with the Khronos validation layer 1.3.275 (VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation):

Test main f663e565fe this PR
agc_driver_depth_storage_tests 13 × 00050 0
agc_driver_partially_resident_snapshot_tests --pending-stores 2 × 00050 0

The 10 CTest entries that use these seven fixtures pass under the layer on this branch (10/10). The only errors left in that run are VUID-VkDeviceCreateInfo-pNext-pNext and VUID-VkGraphicsPipelineCreateInfo-pLibraries-06681, which come from this older layer version and also appear on main. tools/check_conventions.py --base upstream/main 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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04 (Linux 6.8)
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4905338395 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7337). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-18T01:06:18Z. --- ### What Seven AGC test fixtures create their own command pool without `VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT`: - `BdaDevice.cpp` - `execution/DepthStorage.cpp` - `execution/OversizedDescriptorSets.cpp` - `execution/PartiallyResidentSnapshot.cpp` - `execution/PooledBufferRange.cpp` - `execution/SampledCacheBudget.cpp` - `execution/SparseBufferHoles.cpp` `Recorder` begins a command buffer it has used before without resetting it explicitly. That relies on the pool flag, which the driver's own pool in `VulkanDevice.cpp` sets, as do the other fixtures such as `Recorder.cpp` and `DepthSurfaceLastWriter.cpp`. Under the Khronos validation layer, the tests built on these fixtures report `VUID-vkBeginCommandBuffer-commandBuffer-00050` ("attempts to implicitly reset cmdBuffer created from VkCommandPool ... that does NOT have the VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT bit set"). The command buffer state is undefined there, so a stricter driver could fail these tests for a reason unrelated to what they check. Each fixture now sets the flag the way `VulkanDevice` does. Test-only, one line per file. ### Tested Linux (Ubuntu 24.04, kernel 6.8), NVIDIA RTX 4070 Ti, driver 595.99.02, with the Khronos validation layer 1.3.275 (`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`): | Test | `main` f663e565fe | this PR | |---|---|---| | `agc_driver_depth_storage_tests` | 13 × `00050` | 0 | | `agc_driver_partially_resident_snapshot_tests --pending-stores` | 2 × `00050` | 0 | The 10 CTest entries that use these seven fixtures pass under the layer on this branch (10/10). The only errors left in that run are `VUID-VkDeviceCreateInfo-pNext-pNext` and `VUID-VkGraphicsPipelineCreateInfo-pLibraries-06681`, which come from this older layer version and also appear on `main`. `tools/check_conventions.py --base upstream/main` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 595.99.02, Ubuntu 24.04 (Linux 6.8) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-18 01:20:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T01:20:40Z.


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 5021 core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp
core/libs/prx/libSceAgcDriver/tests/execution/OversizedDescriptorSets.cpp
core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp
PR 5499 core/libs/prx/libSceAgcDriver/tests/execution/DepthStorage.cpp
PR 6222 core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp
core/libs/prx/libSceAgcDriver/tests/execution/DepthStorage.cpp
core/libs/prx/libSceAgcDriver/tests/execution/OversizedDescriptorSets.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PartiallyResidentSnapshot.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PooledBufferRange.cpp
core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp
core/libs/prx/libSceAgcDriver/tests/execution/SparseBufferHoles.cpp
PR 6492 core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp
PR 6783 core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp
PR 7332 core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp
core/libs/prx/libSceAgcDriver/tests/execution/OversizedDescriptorSets.cpp
core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244159807 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7337#issuecomment-6244159807). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T01:20:40Z. --- <!-- 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 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/OversizedDescriptorSets.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/tests/execution/DepthStorage.cpp` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/DepthStorage.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/OversizedDescriptorSets.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/PartiallyResidentSnapshot.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/PooledBufferRange.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/SparseBufferHoles.cpp` | | [PR 6492](https://www.github.com/boykopovar/AnyPS5/pull/6492) | `core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp` | | [PR 6783](https://www.github.com/boykopovar/AnyPS5/pull/6783) | `core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/OversizedDescriptorSets.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/SampledCacheBudget.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!7337
No description provided.