AGC tests: native depth fixture reuses command buffers without pool reset permission #7311

Closed
opened 2026-10-17 22:47:57 +00:00 by Amoenus · 0 comments
Amoenus commented 2026-10-17 22:47:57 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T22:47:57Z.


Reproduction

On unchanged main b4f05ab328fac5a9c1c458398e55f7ab3bfe8508, the native-depth clear/refusal fixtures pass their assertions but emit VUID-vkBeginCommandBuffer-commandBuffer-00050 with Khronos validation enabled. The fixture source is unchanged in current main 55f82fee838c9895dd19ae8a997cbc935ef566e1.

vkBeginCommandBuffer(): VkCommandBuffer ... was recorded and now in the executable state.
You must call vkResetCommandBuffer() before calling vkBeginCommandBuffer() again.
To implicitly reset the command buffer, VkCommandPool ... must have
VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT set.

The local Device in tests/execution/NativeMultisampleDepth.cpp creates its command pool with zero flags. Its recorder reuses command buffers. The Vulkan begin-command-buffer rule requires a reset-capable pool for that implicit reset.

After the normal test-enabled Release build:

$env:VK_INSTANCE_LAYERS = 'VK_LAYER_KHRONOS_validation'
$env:VK_LAYER_PATH = '<VulkanSDK>/Bin'
$env:VK_LOADER_DEBUG = 'layer'
$env:ANYPS5_REQUIRE_VULKAN = '1'
$env:ANYPS5_NO_SHADER_CACHE = '1'
$env:ANYPS5_GPU = '<exact physical device name>'
ctest --test-dir build -V -j1 -R '^agc_driver_native_depth_(clears|clear_refusals)$'

Loading the layer is verified in the output; merely setting VK_INSTANCE_LAYERS without an available layer is insufficient.

Observed and proposed correction

Windows 11 Enterprise26200, WinLibs GCC15.2r7, Khronos validation1.4.363:

GPU Driver Unchanged main, both groups once Proposed fixture fix, each group3x
NVIDIA GeForce RTX5080,10de:2c02 32.0.16.1062 CTest passes;20 VUID00050 errors 6 passing processes;0 validation errors
AMD Radeon(TM) Graphics,1002:13c0 32.0.21036.18 same same

Focused fork commit96394a24d sets pool.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT in that test device. It changes one test line and no production library. The selected target rebuilds, both numerical/refusal groups still pass, and the validation errors disappear on both GPUs. This is fixture validation, not a newly observed game defect or performance claim; no Linux validation-layer result is available.

Found while independently retesting #7233. The same warning is reproduced without that PR, so it is not attributed to its HTILE completion changes. Its real BDA callback-positive test has no such warnings. Exact before/after logs are retained locally; the excerpt above omits machine-specific handles.

Duplicate searches for the VUID, native-depth pool and command-pool reset found no existing matching report. Resolved upstream by #7312, which cites the physical-GPU results in this report; no duplicate PR is being prepared. AI-assisted: Codex; author responsible.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5903906735 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7311). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-17T22:47:57Z. --- ## Reproduction On unchanged main `b4f05ab328fac5a9c1c458398e55f7ab3bfe8508`, the native-depth clear/refusal fixtures pass their assertions but emit `VUID-vkBeginCommandBuffer-commandBuffer-00050` with Khronos validation enabled. The fixture source is unchanged in current main `55f82fee838c9895dd19ae8a997cbc935ef566e1`. ```text vkBeginCommandBuffer(): VkCommandBuffer ... was recorded and now in the executable state. You must call vkResetCommandBuffer() before calling vkBeginCommandBuffer() again. To implicitly reset the command buffer, VkCommandPool ... must have VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT set. ``` The local `Device` in `tests/execution/NativeMultisampleDepth.cpp` creates its command pool with zero flags. Its recorder reuses command buffers. The [Vulkan begin-command-buffer rule](https://docs.vulkan.org/refpages/latest/refpages/source/vkBeginCommandBuffer.html) requires a reset-capable pool for that implicit reset. After the normal test-enabled Release build: ```powershell $env:VK_INSTANCE_LAYERS = 'VK_LAYER_KHRONOS_validation' $env:VK_LAYER_PATH = '<VulkanSDK>/Bin' $env:VK_LOADER_DEBUG = 'layer' $env:ANYPS5_REQUIRE_VULKAN = '1' $env:ANYPS5_NO_SHADER_CACHE = '1' $env:ANYPS5_GPU = '<exact physical device name>' ctest --test-dir build -V -j1 -R '^agc_driver_native_depth_(clears|clear_refusals)$' ``` Loading the layer is verified in the output; merely setting `VK_INSTANCE_LAYERS` without an available layer is insufficient. ## Observed and proposed correction Windows 11 Enterprise26200, WinLibs GCC15.2r7, Khronos validation1.4.363: | GPU | Driver | Unchanged main, both groups once | Proposed fixture fix, each group3x | | --- | --- | --- | --- | | NVIDIA GeForce RTX5080,10de:2c02 | 32.0.16.1062 | CTest passes;20 VUID00050 errors | 6 passing processes;0 validation errors | | AMD Radeon(TM) Graphics,1002:13c0 | 32.0.21036.18 | same | same | [Focused fork commit96394a24d](https://github.com/Amoenus/AnyPS5/commit/96394a24db506edbe33500be1efa441dfd040712) sets `pool.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT` in that test device. It changes one test line and no production library. The selected target rebuilds, both numerical/refusal groups still pass, and the validation errors disappear on both GPUs. This is fixture validation, not a newly observed game defect or performance claim; no Linux validation-layer result is available. Found while independently retesting #7233. The same warning is reproduced without that PR, so it is not attributed to its HTILE completion changes. Its real BDA callback-positive test has no such warnings. Exact before/after logs are retained locally; the excerpt above omits machine-specific handles. Duplicate searches for the VUID, native-depth pool and command-pool reset found no existing matching report. Resolved upstream by #7312, which cites the physical-GPU results in this report; no duplicate PR is being prepared. AI-assisted: Codex; author responsible.
Sign in to join this conversation.
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#7311
No description provided.