P4 to Git Change 2010251 by vsytchen@vsytchen-remote-ocl-win10 on 2019/10/08 18:30:23

SWDEV-193973 - Update perfcounter info to accomodate PAL interface changes

	Gfx103 added perf counters for three new blocks - GeDist, GeSe and Df

	1. Update the blockIdToIndexSelect array to reflect these changes.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/18063/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#25 edit


[ROCm/clr commit: 5fc5006853]
Этот коммит содержится в:
foreman
2019-10-08 18:38:10 -04:00
родитель 6f4f575ac7
Коммит 4ca6ca35b6
+9
Просмотреть файл
@@ -138,7 +138,11 @@ bool PalCounterReference::finalize() {
}
}
#if !IS_MAINLINE && (PAL_CLIENT_INTERFACE_MAJOR_VERSION >= 543)
static const std::array<PCIndexSelect, 49> blockIdToIndexSelect = {{
#else
static const std::array<PCIndexSelect, 46> blockIdToIndexSelect = {{
#endif
PCIndexSelect::None, // CPF
PCIndexSelect::ShaderEngine, // IA
PCIndexSelect::ShaderEngine, // VGT
@@ -185,6 +189,11 @@ static const std::array<PCIndexSelect, 46> 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<size_t>(Pal::GpuBlock::Count), "size of blockIdToIndexSelect does not match GpuBlock::Count");