Keep track which SBT records are needed and initialize all needed ones
authorSÅ‚awomir Cygan <slawomir.cygan@intel.com>
Thu, 31 Mar 2022 13:17:59 +0000 (15:17 +0200)
committerMatthew Netsch <mnetsch@qti.qualcomm.com>
Fri, 8 Apr 2022 19:58:15 +0000 (19:58 +0000)
commite902d318947a5cb5bacaa9fd1343fb3b4a8d974d
tree4ad6f8c39bb08f274ebc8e4fbef150cecfa25f1b
parent69c26d2095aa71216c566b62b337ce2f7a7eb53e
Keep track which SBT records are needed and initialize all needed ones

This fixes using uninitialized memory for SBT records, when
prepareShaderBindingTable() prepares them with flags == 0.

New boolean field is added to SBT description, marked as true when
SBT is needed according to prepareShaderBindingTable()  and needs to
be copied to device memory.

Components: Vulkan

VK-GL-CTS Issue: 3598

Affects: dEQP-VK.ray_tracing_pipeline.pipeline_no_null_shaders_flag.*

Change-Id: I5a0a4f6137cece312f7474e1c47c76eb358f62a4
external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingPipelineFlagsTests.cpp