From 171cb7f7f3a1b04ed58e2ba3c549903bb5bb4d6a Mon Sep 17 00:00:00 2001 From: Jannik Silvanus Date: Thu, 9 Nov 2023 17:38:39 +0100 Subject: [PATCH] llpc: Add missing version guard on enum This fixes compilation with sufficiently recent XGL. Also, it matches the enum definition, which uses the same guard. --- llpc/tool/amdllpc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llpc/tool/amdllpc.cpp b/llpc/tool/amdllpc.cpp index 583e505682..4fa506079d 100644 --- a/llpc/tool/amdllpc.cpp +++ b/llpc/tool/amdllpc.cpp @@ -348,7 +348,11 @@ LlpcRaytracingModeSetting("llpc-raytracing-mode", cl::init(LlpcRaytracingMode::L cl::desc("Override the LLPC raytracing mode"), cl::values( clEnumValN(LlpcRaytracingMode::Legacy, "legacy", "Legacy mode"), +#if LLPC_CLIENT_INTERFACE_MAJOR_VERSION < 69 clEnumValN(LlpcRaytracingMode::Gpurt2, "continufy", "Legacy RT pipeline with continufy"), +#else + clEnumValN(LlpcRaytracingMode::Continufy, "continufy", "Legacy RT pipeline with continufy"), +#endif clEnumValN(LlpcRaytracingMode::Continuations, "continuations", "Continuations mode"))); // -enable-color-export-shader