L0 Metrics Api fixes:

1. DEBUG_BREAK_IF instead of UNRECOVERABLE_IF.
2. Proper oa configuration deinitialization.

Change-Id: I2b966fb627d4a79ad1c0a1589b9e0916ea640545
This commit is contained in:
Piotr Maciejewski
2020-03-17 14:15:35 +01:00
committed by sys_ocldev
parent 93c8ffe326
commit e438da0f92
8 changed files with 100 additions and 81 deletions

View File

@@ -25,10 +25,13 @@ enum class ClientGen : uint32_t { Unknown,
Gen9,
Gen11,
Gen12 };
enum class ValueType : uint32_t { Uint32 };
enum class ValueType : uint32_t { Uint32,
Last };
enum class GpuConfigurationActivationType : uint32_t { Tbs,
EscapeCode };
enum class ObjectType : uint32_t { QueryHwCounters,
MarkerStreamUser,
OverrideFlushCaches,
ConfigurationHwCountersUser,
ConfigurationHwCountersOa };
enum class ParameterType : uint32_t { QueryHwCountersReportApiSize,
@@ -95,6 +98,7 @@ struct ClientType_1_0 {
struct TypedValue_1_0 {
uint32_t ValueUInt32;
ValueType Type;
};
struct GpuMemory_1_0 {
@@ -106,6 +110,15 @@ struct CommandBufferQueryHwCounters_1_0 {
QueryHandle_1_0 Handle;
ConfigurationHandle_1_0 HandleUserConfiguration;
bool Begin;
uint32_t Slot;
};
struct CommandBufferMarkerStreamUser_1_0 {
uint32_t Value;
};
struct CommandBufferOverride_1_0 {
bool Enable;
};
struct CommandBufferSize_1_0 {
@@ -125,6 +138,8 @@ struct CommandBufferData_1_0 {
void *Data;
uint32_t Size;
CommandBufferQueryHwCounters_1_0 QueryHwCounters;
CommandBufferMarkerStreamUser_1_0 MarkerStreamUser;
CommandBufferOverride_1_0 Override;
};
struct QueryCreateData_1_0 {