Skip to content

Commit

Permalink
llpc: Add missing version guard on enum
Browse files Browse the repository at this point in the history
This fixes compilation with sufficiently recent XGL.
Also, it matches the enum definition, which uses the same guard.
  • Loading branch information
jasilvanus committed Nov 10, 2023
1 parent 82ef966 commit d8b1d94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llpc/tool/amdllpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8b1d94

Please sign in to comment.