hexagon: fix Windows crash when op_poll is enabled (#26029)

This commit is contained in:
adgup-qti
2026-07-23 09:08:10 -07:00
committed by GitHub
parent 1425386fd9
commit c0bc8591e8
2 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -1662,7 +1662,7 @@ void ggml_hexagon_session::flush_pending(bool all) {
const uint32_t timeo = opt_oppoll ? 0 : DSPQUEUE_TIMEOUT;
int err = dspqueue_read(this->queue, &flags, 1, &n_dbufs, &dbuf, sizeof(rsp), &rsp_size, (uint8_t *) &rsp, timeo);
if (err == AEE_EEXPIRED) {
if (err == AEE_EEXPIRED || err == AEE_EWOULDBLOCK) {
continue;
}