[Fix] (Remote): honor fence wait budgets and reject invalid readback status

This commit is contained in:
2026-09-16 14:12:14 -04:00
parent a021e3cc5d
commit 82683d4a83
3 changed files with 164 additions and 3 deletions
+4
View File
@@ -873,6 +873,10 @@ namespace MobileGL::MG_Remote::Client {
"Fatal here rather than a buffer of stale bytes");
std::abort();
}
if (status != Wire::ReplySink::kStatusOk) {
MGLOG_F("MGPipe: Fatal{ReplyStatusInvalid, \"ReadPixels\"} - unknown reply status %d", status);
std::abort();
}
if (replySize != expected) {
MGLOG_F("MGPipe: Fatal{ReadbackReplyShort, \"ReadPixels %llu < %llu\"} - the OK "
"reply carried fewer bytes than the read's own DstSize (CONTRACT-P5 row "