Ensure there is a committed ray intersection before calling rayQueryGetIntersectionInstanceIdEXT(..., true)
The test uses rayQueryGetIntersectionInstanceIdEXT(, true) (what corresponds
to OpRayQueryGetIntersectionInstanceIdKHR with Intersection ==OpRayQueryCommittedTypeKHR)
without actually checking if there is any committed intersection.
The SPV_KHR_ray_query spec requires that there should be a current committed intersection:
"""
Intersection is RayQueryCommittedIntersectionKHR, there must be a current committed intersection
(see OpRayQueryCommittedTypeKHR).
"""
This change fixes that by sorrounding the rayQueryGetIntersectionInstanceIdEXT call with
the check if the curent intersection is not 'None'
Components: Vulkan
VK-GL-CTS Issue: 2762
Affects: dEQP-VK.ray_query.procedural_geometry.*
Change-Id: Ic77e2e67995775b90042ada54cdfd6b627283066