VK-GL-CTS
VK-GL-CTS copied to clipboard
VK CTS 1.2.7.2 core dumps on ray-trace tests if extension is not available
Hi,
Underlying hardware and driver has no ray-tracing extension available, so if I run manually subgroups test like this:
# deqp-vk -n dEQP-VK.subgroups.builtin_var.ray_tracing.subgroupsize Writing test log into TestResults.qpa dEQP Core unknown (0xcafebabe) starting.. target implementation = 'QNXNTO'
DONE!
Test run totals: Passed: 0/0 (0.0%) Failed: 0/0 (0.0%) Not supported: 0/0 (0.0%) Warnings: 0/0 (0.0%) Waived: 0/0 (0.0%)
It is not able to find this test, but if test is running as listed in subgroups.txt, it segfaults:
# ./deqp-vk --deqp-caselist-file=./vk-default/subgroups.txt Writing test log into TestResults.qpa dEQP Core unknown (0xcafebabe) starting.. target implementation = 'QNXNTO'
Test case 'dEQP-VK.subgroups.builtin_var.graphics.subgroupsize'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.graphics.subgroupinvocationid'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.subgroupsize_compute'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.subgroupsize_compute_requiredsubgroupsize'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.subgroupinvocationid_compute'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.subgroupinvocationid_compute_requiredsubgroupsize'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.numsubgroups'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.numsubgroups_requiredsubgroupsize'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.subgroupid'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.compute.subgroupid_requiredsubgroupsize'.. Pass (OK)
Test case 'dEQP-VK.subgroups.builtin_var.ray_tracing.subgroupsize'..
Process 1298463 (deqp-vk) terminated SIGSEGV code=1 fltno=11 ip=0000000000000000 Memory fault (core dumped)
Backtrace shows unconditional usage of vk::DeviceDriver::getAccelerationStructureBuildSizesKHR(), which is NULL if extension is not available.
Thanks!
I think this may be related to 22081359f230aae30f3f4c4ab6f16725e83e5573
.. also this may be just fixed by not returning RT stages in subgroupsSupportedStages
.. but is may be also fixable by not returning RT bits in subgroupsSupportedStages
@mgorchak-blackberry Could you please try https://github.com/KhronosGroup/VK-GL-CTS/commit/22081359f230aae30f3f4c4ab6f16725e83e5573 linked by Slawomir?