Repository navigation
check_sparse_queue_family: order validation ahead of api_dump (#5804) - #6050
LAKSHYA-cmd-tech wants to merge 1 commit into
Conversation
…e_family (ItsNotRexed#5804) The Vulkan loader places VK_INSTANCE_LAYERS ahead of app-enabled layers. When VK_LAYER_LUNARG_api_dump sits above VK_LAYER_KHRONOS_validation, d3d12_sparse_queue_family_test crashes during teardown in vkDestroyDevice with access violation 0xC0000005. Putting VK_LAYER_KHRONOS_validation ahead in VK_INSTANCE_LAYERS keeps validation on top and avoids the crash. Add tests/test_check_sparse_queue_family.py to verify trace parsing and layer ordering without requiring GPU or Vulkan SDK. Fixes ItsNotRexed#5804.
|
Tested 0ad3416 on Windows 11 with Vulkan SDK 1.4.363.1. On AMD Radeon integrated graphics (driver 32.0.21043.5001), all five runs pass on this head. The parent wrapper at I built py -3.14 -I runtime/test/check_sparse_queue_family.py E:/Leonida-review-work-build/RelWithDebInfo/d3d12_sparse_queue_family_test.exeFor AMD, I set All six wrapper unit tests and three line-ending tests pass on the head. Against the parent wrapper, only the new layer-order unit test fails. This check covers the sparse queue target. AI-assisted. |
|
Tested
Synthetic test only; no game files. |
Claimed in #5934 (#5934 (comment)).
Fixes #5804.
What changed and why
In
runtime/test/check_sparse_queue_family.py:VK_INSTANCE_LAYERSahead of application-enabled layers (ppEnabledLayerNames).check_sparse_queue_family.pysetenv["VK_INSTANCE_LAYERS"] = "VK_LAYER_LUNARG_api_dump", placingapi_dumpaboveVK_LAYER_KHRONOS_validation. This causedd3d12_sparse_queue_family_test.exeto crash during teardown insidevkDestroyDevicewith access violation0xC0000005(exit=3221225477) as reported in d3d12_sparse_queue_family_contract crashes (0xC0000005) in vkDestroyDevice when VK_LAYER_LUNARG_api_dump sits above VK_LAYER_KHRONOS_validation #5804.VK_LAYER_KHRONOS_validationahead ofVK_LAYER_LUNARG_api_dumpinVK_INSTANCE_LAYERS(os.pathsep.join(["VK_LAYER_KHRONOS_validation", "VK_LAYER_LUNARG_api_dump"])) ensuresapi_dumpsits below validation, eliminating the teardown crash while keeping sync validation and contract dump active.Testing
tests/test_check_sparse_queue_family.py(standard library, CPU-only, no Vulkan SDK or GPU required):check_trace()accepts valid CONCURRENT sparse records with >=2 unique families (6/6 records).--expect-baseline-exclusivenegative control mode.check_sparse_queue_family.py.python -I tests/test_check_sparse_queue_family.py-> 6 tests run, 6 passed (0.15s).python -I tests/test_text_write_line_endings.py-> 3 tests OK (LF endings preserved).python -m compileall -q runtime/test/check_sparse_queue_family.py tests/test_check_sparse_queue_family.py-> clean.python -I scripts/check_no_game_data.py runtime/test/check_sparse_queue_family.py tests/test_check_sparse_queue_family.py-> exit 0. No game data.git diff --check-> clean.AI-assisted.