Skip to content

gpuav: Skip opacity micromap builds in BLAS validation - #13763

Merged
spencer-lunarg merged 1 commit into
KhronosGroup:mainfrom
danginsburg:omm_gpu_av_fix
Nov 23, 2026
Merged

spencer-lunarg merged 1 commit into
KhronosGroup:mainfrom
danginsburg:omm_gpu_av_fix

Conversation

@danginsburg

Copy link
Copy Markdown
Contributor

Fixes #13762

valcmd::BLAS dereferences ppBuildRangeInfos[i] for every build info. For VK_ACCELERATION_STRUCTURE_TYPE_OPACITY_MICROMAP_KHR builds that pointer must be NULL (VUID-vkCmdBuildAccelerationStructuresKHR-ppBuildRangeInfos-11544), so GPU-AV crashes. This change skips micromap infos there, the same way valcmd::TLAS already only reads the ranges for top-level builds.

Adds PositiveGpuAVRayTracing.OpacityMicromapBuildKHR, which is PositiveRayTracingMicromap.BasicKHR run with GPU-AV enabled.

Test results:
Before fix:

vk_layer_validation_tests.exe --gtest_filter=PositiveGpuAVRayTracing.OpacityMicromapBuildKHR
Note: Google Test filter = PositiveGpuAVRayTracing.OpacityMicromapBuildKHR
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PositiveGpuAVRayTracing
[ RUN ] PositiveGpuAVRayTracing.OpacityMicromapBuildKHR
unknown file: error: SEH exception with code 0xc0000005 thrown in the test body.
Stack trace:

[ FAILED ] PositiveGpuAVRayTracing.OpacityMicromapBuildKHR (391 ms)
[----------] 1 test from PositiveGpuAVRayTracing (391 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (393 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] PositiveGpuAVRayTracing.OpacityMicromapBuildKHR

1 FAILED TEST

After fix:
C:\Users\dang\src\VVL-danginsburg\build\tests\RelWithDebInfo>vk_layer_validation_tests.exe --gtest_filter=PositiveGpuAVRayTracing.OpacityMicromapBuildKHR
Note: Google Test filter = PositiveGpuAVRayTracing.OpacityMicromapBuildKHR
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PositiveGpuAVRayTracing
[ RUN ] PositiveGpuAVRayTracing.OpacityMicromapBuildKHR
[ OK ] PositiveGpuAVRayTracing.OpacityMicromapBuildKHR (339 ms)
[----------] 1 test from PositiveGpuAVRayTracing (340 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (342 ms total)
[ PASSED ] 1 test.

@danginsburg
danginsburg requested a review from a team as a code owner November 23, 2026 16:27
@spencer-lunarg
spencer-lunarg merged commit 10087c4 into KhronosGroup:main Nov 23, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPU-AV: crash in valcmd::BLAS when building a KHR opacity micromap

2 participants