From ef067bef2f2188a4b3c420cbcd8d223874888ed2 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Thu, 25 Aug 2022 09:11:04 -0700 Subject: Fix for Vulkan ray tracing test using a non-zero raygen shader index (#2380) * Fixed math errors in SBT creation causing a ray tracing test to fail with a fully zero output when given a non-zero raygen shader index * Removed unnecessary code * raygen memcpy now copies the 32 bytes from srcHandle and zeroes out the remaining 32 bytes due to 64 byte alignment --- tools/gfx-unit-test/ray-tracing-tests.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'tools/gfx-unit-test') diff --git a/tools/gfx-unit-test/ray-tracing-tests.cpp b/tools/gfx-unit-test/ray-tracing-tests.cpp index 558c700d3..97a6ad7d1 100644 --- a/tools/gfx-unit-test/ray-tracing-tests.cpp +++ b/tools/gfx-unit-test/ray-tracing-tests.cpp @@ -488,11 +488,8 @@ namespace gfx_test runTestImpl(rayTracingTestImpl, unitTestContext, Slang::RenderApiFlag::D3D12); } -#if 0 - //TODO: fix test failure. SLANG_UNIT_TEST(RayTracingTestBVulkan) { runTestImpl(rayTracingTestImpl, unitTestContext, Slang::RenderApiFlag::Vulkan); } -#endif } -- cgit v1.2.3