From 9c11a87f8f811a9a110d73a24ab93443ea347506 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 1 Sep 2023 01:25:31 -0700 Subject: Fix GLSL code gen around RayQuery and HitObject types. (#3173) * Update slang-llvm. * Fix. * fix. * Fix unit tests for multi-thread execution. * Fix tests. * fixes. * update tests. * Add gfx-smoke to linux expected failure list. * Try fix test. --------- Co-authored-by: Yong He --- tools/gfx-unit-test/shader-cache-tests.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/gfx-unit-test/shader-cache-tests.cpp') diff --git a/tools/gfx-unit-test/shader-cache-tests.cpp b/tools/gfx-unit-test/shader-cache-tests.cpp index de699c2d6..3879fd630 100644 --- a/tools/gfx-unit-test/shader-cache-tests.cpp +++ b/tools/gfx-unit-test/shader-cache-tests.cpp @@ -7,7 +7,7 @@ #include "source/core/slang-string-util.h" #include "source/core/slang-io.h" #include "source/core/slang-file-system.h" - +#include "source/core/slang-process.h" #include "gfx-test-texture-util.h" using namespace gfx; @@ -112,9 +112,8 @@ namespace gfx_test { this->context = context; this->api = api; - - testDirectory = Path::simplify(Path::getParentDirectory(Path::getExecutablePath()) + "/shader-cache-test"); - cacheDirectory = Path::simplify(testDirectory + "/cache"); + testDirectory = Path::simplify(Path::getParentDirectory(Path::getExecutablePath()) + "/shader-cache-test" + String(Process::getId())); + cacheDirectory = Path::simplify(testDirectory + "/cache" + String(Process::getId())); // Cleanup if there are stale files from a previously aborted test. removeDirectory(cacheDirectory); -- cgit v1.2.3