rocr: Expose PM4 emulation in the agent info (#1869)

Native AQL path in Windows requires extra logic, which has a conflict
with the implementation of Pm4 emulation and needs a detection in the client.
Αυτή η υποβολή περιλαμβάνεται σε:
German Andryeyev
2025-11-19 18:26:23 -05:00
υποβλήθηκε από GitHub
γονέας d36b8ec66d
υποβολή 919642f721
2 αρχεία άλλαξαν με 8 προσθήκες και 1 διαγραφές
@@ -1710,6 +1710,9 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
}
return HSA_STATUS_ERROR;
}
case HSA_AMD_AGENT_INFO_PM4_EMULATION:
*((bool*)value) = properties_.Capability2.ui32.AqlEmulationPm4_;
break;
default:
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
break;
@@ -705,7 +705,11 @@ typedef enum hsa_amd_agent_info_s {
* Queries the driver for clock counters of the agent.
* The type of this attribute is hsa_amd_clock_counters_t.
*/
HSA_AMD_AGENT_INFO_CLOCK_COUNTERS = 0xA118
HSA_AMD_AGENT_INFO_CLOCK_COUNTERS = 0xA118,
/**
* The agent uses PM4 emulation mode.
*/
HSA_AMD_AGENT_INFO_PM4_EMULATION = 0xA119
} hsa_amd_agent_info_t;
/**