Fix incorrect computation of pointer size
authorMarcin Kańtoch <marcin.kantoch@amd.com>
Tue, 31 Aug 2021 11:08:45 +0000 (13:08 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 8 Oct 2021 15:40:49 +0000 (15:40 +0000)
commit930ab4dad8c4f4fafea52e2c828603e6644e8ea6
treec206eace6145c37ad4a56647576b8e43ab6f2c49
parent9096033c68f429bbbcafed6ea101f358b37b0cca
Fix incorrect computation of pointer size

CTS always fills the array of pointers with a stride of 64-bits.
So, for 32-bits applications, each two 32-bits has one valid pointer
to instance of bottom-level acceleration structure.

To correct this the pointer size should be calculated as
sizeof(VkDeviceOrHostAddressConstKHR::hostAddress) for host built
top-level acceleration structure and
sizeof(VkDeviceOrHostAddressConstKHR::deviceAddress) for device built
top-level acceleration structure.

VK-GL-CTS issue: 3084
Components: Vulkan

Affects:
dEQP-VK.ray*instances_aop*

Change-Id: I8c412a5a5d2ce3f1f687795768d6d83ad4913892
external/vulkancts/framework/vulkan/vkRayTracingUtil.cpp