[Fix] (Remote): order buffer writebacks by producing seq so a stale capture writeback cannot retire a newer GPU-write mark

This commit is contained in:
2026-10-12 06:46:04 -04:00
parent 9b5e15dfc8
commit bc3c4fbb6c
11 changed files with 150 additions and 19 deletions
@@ -457,6 +457,7 @@ namespace MobileGL::MG_Remote::Server {
head.Resource = Transport::EventHandle{res.Slot, res.Gen};
head.Offset = offset;
head.Size = bytes.Size;
head.ProducedAtSeq = session.Consumer().ProducingSeq();
std::memcpy(slot, &head, sizeof(head));
if (bytes.Size != 0) {
std::memcpy(static_cast<Uint8*>(slot) + sizeof(head),