Fix getting capture address in RT capture replay tests
authorSlawomir Cygan <slawomir.cygan@intel.com>
Fri, 10 Dec 2021 10:34:37 +0000 (11:34 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 14 Jan 2022 22:50:27 +0000 (22:50 +0000)
Use vkGetBufferOpaqueCaptureAddress to retreive address
used in opaqueCaptureAddress

Components: Vulkan

VK-GL-CTS Issue: 3420

Affects: dEQP-VK.ray_tracing_pipeline.capture_replay.shader_binding_tables
Change-Id: Ifaa2fe92d6517fa75a29ad21c06365efd7857de4

external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingCaptureReplayTests.cpp

index 123ee796d0bc05d45a1ce2393ff4889a3ba46d69..7a1549408a0410a063694e9a091bcbc889096578 100644 (file)
@@ -394,11 +394,11 @@ void TestShaderBindingTablesConfiguration::initShaderBindingTables (de::MovePtr<
                        DE_NULL                                                                                 //VkBuffer           buffer;
                };
                deviceAddressInfo.buffer                                                                                = pipelineData.pipelines[0].raygenShaderBindingTable->get();
-               sbtSavedRaygenAddress                                                                                   = vkd.getBufferDeviceAddress( device, &deviceAddressInfo);
+               sbtSavedRaygenAddress                                                                                   = vkd.getBufferOpaqueCaptureAddress( device, &deviceAddressInfo);
                deviceAddressInfo.buffer                                                                                = pipelineData.pipelines[0].missShaderBindingTable->get();
-               sbtSavedMissAddress                                                                                             = vkd.getBufferDeviceAddress( device, &deviceAddressInfo);
+               sbtSavedMissAddress                                                                                             = vkd.getBufferOpaqueCaptureAddress( device, &deviceAddressInfo);
                deviceAddressInfo.buffer                                                                                = pipelineData.pipelines[0].hitShaderBindingTable->get();
-               sbtSavedHitAddress                                                                                              = vkd.getBufferDeviceAddress( device, &deviceAddressInfo);
+               sbtSavedHitAddress                                                                                              = vkd.getBufferOpaqueCaptureAddress( device, &deviceAddressInfo);
        }
        else // replay phase
        {