| 273 | } |
| 274 | |
| 275 | ze_result_t XEventQueryStatus(ze_event_handle_t hEvent) |
| 276 | { |
| 277 | ze_command_list_handle_t cmdlist = g_event_to_cmdlist.Get(hEvent, nullptr); |
| 278 | if (cmdlist == nullptr) { |
| 279 | auto cmd = g_event_to_cmd.Get(hEvent, nullptr); |
| 280 | if (cmd == nullptr) return Driver::EventQueryStatus(hEvent); |
| 281 | return cmd->EventQueryStatus(); |
| 282 | } |
| 283 | |
| 284 | auto cmd = g_cmdlist_to_cmd.Get(cmdlist, nullptr); |
| 285 | if (cmd == nullptr) return Driver::EventQueryStatus(hEvent); |
| 286 | cmd->WaitUntil(kCommandStateInFlight); |
| 287 | return Driver::EventQueryStatus(hEvent); |
| 288 | } |
| 289 | |
| 290 | } // namespace xsched::levelzero |
nothing calls this directly
no test coverage detected