diff --git a/projects/clr/rocclr/runtime/device/pal/palcounters.cpp b/projects/clr/rocclr/runtime/device/pal/palcounters.cpp index 7897e1bec3..807480062d 100644 --- a/projects/clr/rocclr/runtime/device/pal/palcounters.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palcounters.cpp @@ -138,7 +138,11 @@ bool PalCounterReference::finalize() { } } +#if !IS_MAINLINE && (PAL_CLIENT_INTERFACE_MAJOR_VERSION >= 543) +static const std::array blockIdToIndexSelect = {{ +#else static const std::array blockIdToIndexSelect = {{ +#endif PCIndexSelect::None, // CPF PCIndexSelect::ShaderEngine, // IA PCIndexSelect::ShaderEngine, // VGT @@ -185,6 +189,11 @@ static const std::array blockIdToIndexSelect = {{ PCIndexSelect::None, // GCR PCIndexSelect::None, // PH PCIndexSelect::ShaderArray, // UTCL1 +#if !IS_MAINLINE && PAL_CLIENT_INTERFACE_MAJOR_VERSION >= 543 + PCIndexSelect::None, // GeDist + PCIndexSelect::ShaderEngine, // GeSe + PCIndexSelect::None, // Df +#endif }}; static_assert(blockIdToIndexSelect.size() == static_cast(Pal::GpuBlock::Count), "size of blockIdToIndexSelect does not match GpuBlock::Count");