mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Instrumentation refactoring
Use bool instead of int where it should be. Tweak naming. Removed unused members Change-Id: I468be28d78e9da7c7fa1632e362ed077929fb91a
This commit is contained in:

committed by
sys_ocldev

parent
dd601ff73a
commit
3883f790cc
@ -444,10 +444,10 @@ bool CommandQueue::setPerfCountersEnabled(bool perfCountersEnabled, cl_uint conf
|
||||
perfCounters->shutdown();
|
||||
return false;
|
||||
}
|
||||
InstrReadRegsCfg *pUserCounters = &perfConfigurationData->readRegs;
|
||||
for (uint32_t i = 0; i < pUserCounters->regsCount; ++i) {
|
||||
InstrReadRegsCfg *pUserCounters = &perfConfigurationData->ReadRegs;
|
||||
for (uint32_t i = 0; i < pUserCounters->RegsCount; ++i) {
|
||||
perfCountersUserRegistersNumber++;
|
||||
if (pUserCounters->reg[i].bitSize > 32) {
|
||||
if (pUserCounters->Reg[i].BitSize > 32) {
|
||||
perfCountersUserRegistersNumber++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user