VK-GL-CTS icon indicating copy to clipboard operation
VK-GL-CTS copied to clipboard

VK CTS 1.2.7.2 core dumps on ray-trace tests if extension is not available

Open mgorchak-blackberry opened this issue 3 years ago • 4 comments

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!

mgorchak-blackberry avatar Feb 03 '22 16:02 mgorchak-blackberry

I think this may be related to 22081359f230aae30f3f4c4ab6f16725e83e5573

scygan avatar Feb 24 '22 16:02 scygan

.. also this may be just fixed by not returning RT stages in subgroupsSupportedStages

scygan avatar Feb 24 '22 16:02 scygan

.. but is may be also fixable by not returning RT bits in subgroupsSupportedStages

scygan avatar Feb 24 '22 16:02 scygan

@mgorchak-blackberry Could you please try https://github.com/KhronosGroup/VK-GL-CTS/commit/22081359f230aae30f3f4c4ab6f16725e83e5573 linked by Slawomir?

mnetsch avatar Mar 10 '22 15:03 mnetsch