From bb50c5a3050c12efac720f6db85b9bb1d0a06a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Fri, 5 Jan 2024 04:08:35 +0100 Subject: [PATCH] Fix ASAN errors in continufy mode (#2892) --- lgc/patch/PatchEntryPointMutate.cpp | 3 ++- llpc/test/shaderdb/ray_tracing/PipelineRays_Continufy.pipe | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lgc/patch/PatchEntryPointMutate.cpp b/lgc/patch/PatchEntryPointMutate.cpp index 977f3c4e90..b48913c152 100644 --- a/lgc/patch/PatchEntryPointMutate.cpp +++ b/lgc/patch/PatchEntryPointMutate.cpp @@ -676,7 +676,8 @@ bool PatchEntryPointMutate::lowerCpsOps(Function *func, ShaderInputs *shaderInpu #endif builder.CreateUnreachable(); - auto funcName = func->getName(); + auto *doc = m_pipelineState->getPalMetadata()->getDocument(); + auto funcName = doc->getNode(func->getName(), /*copy=*/true); // Lower cps stack operations stackLowering->lowerCpsStackOps(*func, m_funcCpsStackMap[func]); diff --git a/llpc/test/shaderdb/ray_tracing/PipelineRays_Continufy.pipe b/llpc/test/shaderdb/ray_tracing/PipelineRays_Continufy.pipe index 028d36d099..f6c094478b 100644 --- a/llpc/test/shaderdb/ray_tracing/PipelineRays_Continufy.pipe +++ b/llpc/test/shaderdb/ray_tracing/PipelineRays_Continufy.pipe @@ -4,7 +4,6 @@ ; TODO: Change this to ISA / assembly output checks once the LLVM backend has settled ; RUN: amdllpc -gfxip 11.0 -emit-llvm -o - %s | FileCheck -check-prefixes=CHECK %s -; REQUIRES: do-not-run-me ; CHECK-LABEL: @_amdgpu_cs_main( ; CHECK: call void {{.*}} @llvm.amdgcn.cs.chain.