mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-12-01 13:42:15 +09:00
[MG_Pipe, MG_Remote, MG_Backend, MG_Test] (Disaggregated): P5e ID-128 - admission gains the escalation disjunct
- The integrator's census over the merged tree left two markers nothing admitted, both
DirectGLES.Split.ClientVertexArrayScenario: GetBoundVertexArray@DrawArrays. Disjunct 1 fails
(draw_vbo is kWaitNone) and disjunct 2 fails (that row's retiring phase names P5e, correctly,
for the ORDINARY draw path vi and mv retired). But these two entries pull the pair on a record
the client IS parked behind: MGPipeBarriered escalates a draw carrying client vertex arrays
(ID-83), ID-82 puts client arrays outside P5e entirely, and the read site
(SyncClientSideVertexArraysForDrawArrays) aborts by its own name if it is ever applied
unbarriered. The pull is legal; no static table could see it.
- Third disjunct: the record was barriered BY ESCALATION, i.e. wireSaysBarriered(op, payload,
applierState) && MGPipeWaitClassFor(op) == kWaitNone. Both halves were already computed on
every record - ApplyOne computes the predicate unconditionally for ID-103's reason - so this is
one more bit stamped beside the barriered stamp, not new plumbing.
- It is a SEPARATE flag rather than a refinement of the barriered stamp, because the two answer
different questions: the stamp answers "is the client parked" (the allocator and registry
guards ask that), this answers "and for a reason the static table cannot see" (only the strict
knob asks). Its default is false - the answer that admits nothing - which is the opposite of
the stamp's default and deliberately so.
- The marker says WHICH disjunct: ADMITTED when the generated table answered, ADMITTED-ESCALATED
when only the record did. That keeps the lane's comparison against --print-admitted exact
instead of widening the static list with every pair that could ever escalate - and the tag sits
in the slot the grammar already has for the reason, so Fatal{UnmigratedPipeInput filters are
untouched.
- Escalation also happens to be the truer justification for GetTransformFeedbackProgram@DrawArrays,
which ID-125 admits by phase. Both now hold; ID-125's disjunct is kept, as ruled.
- Red-once: AnEscalatedRecordsPullIsAdmittedAndSaysWhy. Dropping `&& !escalated` from the strict
arm kills it - "FieldOwnershipTest.cpp:938: Failure / Actual: false / signal 6" with
'Fatal{UnmigratedPipeInput, "GetBoundVertexArray@DrawArrays"} [BARRIER-PULLED,
MOBILEGL_IPC_STRICT_ERRORS=1, retires in P5e (Espryt unbarriered), P7 (Magma)]'. Its control is
StrictErrorsTurnsABarrierPulledReadIntoANamedAbort, which drives the identical pull with the
flag at its default and must keep aborting.
This commit is contained in:
1 parent
faf19a6aaa
commit
a0836568ac
5 files changed
+124
-4
No files matched your search
@@ -3031,6 +3031,11 @@ namespace MobileGL::MG_Pipe {
|
||||
// MGPipeBarriered in the sink's ApplyOne.
|
||||
namespace {
|
||||
thread_local Bool g_currentRecordBarriered = true;
|
||||
// P5e (gl), ID-128. FALSE IS THE DEFAULT AND IT IS THE STRICT ANSWER: "this record was
|
||||
// barriered by escalation" admits a pull that neither the wait class nor the retiring
|
||||
// phase admits, so a reader that runs before any writer must say no. The stamp above
|
||||
// defaults the other way because ITS safe answer is "the client is parked".
|
||||
thread_local Bool g_currentRecordBarrieredByEscalation = false;
|
||||
} // namespace
|
||||
|
||||
Bool MGPipeApplierCurrentRecordIsBarriered() { return g_currentRecordBarriered; }
|
||||
@@ -3039,6 +3044,14 @@ namespace MobileGL::MG_Pipe {
|
||||
g_currentRecordBarriered = barriered;
|
||||
}
|
||||
|
||||
Bool MGPipeApplierCurrentRecordIsBarrieredByEscalation() {
|
||||
return g_currentRecordBarrieredByEscalation;
|
||||
}
|
||||
|
||||
void MGPipeApplierSetCurrentRecordBarrieredByEscalation(Bool escalated) {
|
||||
g_currentRecordBarrieredByEscalation = escalated;
|
||||
}
|
||||
|
||||
// ================================================================================
|
||||
// w3: the shader CSO, the two program bindings and the default uniform block
|
||||
//
|
||||
|
||||
@@ -948,6 +948,32 @@ namespace MobileGL::MG_Pipe {
|
||||
// the call site (it is the line ra rebases onto); c0e owns the storage so both compile.
|
||||
void MGPipeApplierSetCurrentRecordBarriered(Bool barriered);
|
||||
|
||||
// ---- P5e (gl), ID-128: WAS THIS RECORD BARRIERED BY ESCALATION? ----------------------
|
||||
//
|
||||
// MGPipeBarriered is the static wait class PLUS two payload-derived escalations (ID-83): an
|
||||
// open transform-feedback span makes every context verb inside it barriered, and a draw
|
||||
// carrying client vertex arrays makes that draw barriered. "Escalated" is therefore exactly
|
||||
//
|
||||
// MGPipeBarriered(op, payload, st) && MGPipeWaitClassFor(op) == kWaitNone
|
||||
//
|
||||
// and BOTH HALVES ARE ALREADY COMPUTED on every record - ApplyOne computes the predicate
|
||||
// unconditionally for ID-103's reason and the static class is a table - so this is a bit
|
||||
// carried beside the existing stamp rather than new plumbing.
|
||||
//
|
||||
// IT IS A SEPARATE FLAG AND NOT A REFINEMENT OF THE ONE ABOVE, because the two answer
|
||||
// different questions. The stamp above answers "is the client parked behind this record",
|
||||
// which the allocator guard and the frontend-keyed registry guard ask. This one answers "and
|
||||
// was it parked for a reason the STATIC table cannot see", which only the strict knob asks -
|
||||
// and it asks because the escalations happen exactly for XFB-active and client-array draws,
|
||||
// both of which CONTRACT-P5E puts outside this phase (§5.7 and ID-82). A pull on such a
|
||||
// record is a debt some later phase owes, not a migration P5e skipped.
|
||||
//
|
||||
// FALSE IS THE DEFAULT, which is the opposite of the stamp's default and deliberately so:
|
||||
// "not escalated" is the answer that admits nothing, so a reader that runs before any writer
|
||||
// is strict rather than lax.
|
||||
Bool MGPipeApplierCurrentRecordIsBarrieredByEscalation();
|
||||
void MGPipeApplierSetCurrentRecordBarrieredByEscalation(Bool escalated);
|
||||
|
||||
// THE CLIENT'S HALF OF THE WAIT RULE IS NOT LANDED YET, AND THIS CONSTANT IS THAT FACT.
|
||||
// MGPipeBarriered above describes what the client WILL do; until package ra changes
|
||||
// EmitAndWaitTails the client still blocks after every record, so the answer the server
|
||||
|
||||
Reference in new issue
Block a user