Fix queue interception in tools.

1. Correct amd::AqlQueue::ExecutePM4 to support interception.
2. Minor fixes to AqlPacket and SoftCP.
3. Minimal change to disable interception of runtime internal queues.

Change-Id: I103fece2ebf9a188d27f01e61221c737405d7253
Tento commit je obsažen v:
Sean Keely
2017-07-11 00:28:35 -05:00
rodič 29b5b5c029
revize bc0bd00746
3 změnil soubory, kde provedl 19 přidání a 25 odebrání
+3 -5
Zobrazit soubor
@@ -64,15 +64,13 @@ struct AqlPacket {
hsa_agent_dispatch_packet_t agent;
};
uint8_t type() {
uint8_t type() const {
return ((dispatch.header >> HSA_PACKET_HEADER_TYPE) &
((1 << HSA_PACKET_HEADER_WIDTH_TYPE) - 1));
}
bool IsValid() {
const uint8_t packet_type = dispatch.header >> HSA_PACKET_HEADER_TYPE;
return (packet_type > HSA_PACKET_TYPE_INVALID &&
packet_type <= HSA_PACKET_TYPE_BARRIER_OR);
bool IsValid() const {
return (type() <= HSA_PACKET_TYPE_BARRIER_OR) & (type() != HSA_PACKET_TYPE_INVALID);
}
std::string string() const {