mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 14:33:24 +09:00
[MG_Pipe, MG_Remote, MG_Backend, MG_Impl, MG_IntegrationTest] (Disaggregated): P5c ct - the applier_reset and object_death control records
Two appended wire records replace the two cross-role control bypasses:
applier_reset (opcode 77, MGPApplierReset{Uint64 ContextSerial}, kScreen) is emitted by
the GL thread at the FreshlyPrimed make-current edge, before the client-side resets, so
the record's barrier orders the server's MGPipeApplierReset against every verb that
follows; a direct MGPipeApplierReset() from a non-apply thread with a live session is
Fatal{RoleViolation, "g_applier"} (MGPipeApply.cpp carries the layer-2 guard; the
apply-thread and no-session bring-up shapes keep the direct call verbatim).
object_death (opcode 78, reuses MGPipeHandleOnly, kCtxObject) is the framebuffer
family's first wire delete opcode: the client thread resolves the dying object's handle
in its OWN allocator, emits nothing for a handle the server never saw, and EmitAndWaits
otherwise - the wait preserving the death's ordering against in-flight records that
name the handle, the only property the blocking mailbox hop provided. The sink releases
per-kind twins through a handle-keyed ReleaseTwinByHandle (seven kinds, SamplerViewCso's
idempotent second path kept); a null arriving handle is
Fatal{ProtocolCorruption, "ObjectDeath.Handle"}. A documented NoSession fallback arm
delivers a death to a server-only fixture's loop; monolith keeps the mailbox hop and
the FreshlyPrimed direct call character for character.
Evidence: gen_pipe --check/--self-test and gen_pipe_field_ownership --check/--self-test
green; unit 2155/2155; integration-split 111/111 (107 plus four new CtWireScenario
entries, all genuinely run, each with its own log path and an EXPECT_EXIT death case);
red-once - shorting the emission to the direct call turns the four Ct cases red with
Fatal{RoleViolation, "g_applier"} by name, then restores green verbatim.
CONTRACT-P5C sections 1, 5.1-5.2, 7.
This commit is contained in:
@@ -239,7 +239,9 @@ namespace MobileGL::MG_Remote::Wire {
|
||||
X(PatchParameter, MGPPatchParameter) \
|
||||
X(BindStreamOutput, MGPStreamOutputBind) \
|
||||
X(SetStorageBlockBinding, MGPStorageBlockBinding) \
|
||||
X(CopyFramebufferToTexture, MGPCopyFromFramebuffer)
|
||||
X(CopyFramebufferToTexture, MGPCopyFromFramebuffer) \
|
||||
X(ApplierReset, MGPApplierReset) \
|
||||
X(ObjectDeath, MGPHandleOnly)
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -2085,6 +2087,20 @@ namespace MobileGL::MG_Remote::Wire {
|
||||
m_verbs->OnCopyFramebufferToTexture(
|
||||
*static_cast<const MGPCopyFromFramebuffer*>(payload));
|
||||
|
||||
// ---- P5c's two control records, opcodes 77..78 (MG_Remote/CONTRACT-P5C.md §5) --------
|
||||
//
|
||||
// Fixed-size PODs the bounds gate has already proved; neither carries a blob, a tail
|
||||
// or a reply, so each arm hands over and stops. ObjectDeath's null-handle refusal is
|
||||
// the sink's, not the codec's: the codec proves SHAPES, and "the client emits nothing
|
||||
// for an object that never crossed" (§5.2) is a contract fact about the peer.
|
||||
case MGPWireOp::ApplierReset:
|
||||
return m_verbs != nullptr &&
|
||||
m_verbs->OnApplierReset(*static_cast<const MGPApplierReset*>(payload));
|
||||
|
||||
case MGPWireOp::ObjectDeath:
|
||||
return m_verbs != nullptr &&
|
||||
m_verbs->OnObjectDeath(*static_cast<const MGPHandleOnly*>(payload));
|
||||
|
||||
case MGPWireOp::SetSwapInterval:
|
||||
// Class C, wave 3 (census-classC.md "static cross"); not a verb (FillPoints.def:21).
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user