[MG_Pipe, MG_Backend, MG_Remote, docs] (P7): ID-P7-30 - D3's two review fixes: the bit-8 and bit-13 rows are pinned, and deletion ordering is guaranteed by the Live/Gen test

The vertex-input and buffer-bindings rows of SubsystemDeps.def became live
behaviour when every reader started reading the table; two static_asserts
now pin them the way the texture and programs rows already were. The
"safe by construction" story about destroy ordering was inverted for the
case where a view holds its owner's last reference - the owner's destroy
reaches the wire first - so the three places that told it now say that the
walk's Live/Gen test is the guarantee.
This commit is contained in:
2026-09-22 18:27:43 -04:00
parent 498eb66a14
commit 22761a692d
5 changed files with 44 additions and 23 deletions
+8
View File
@@ -234,6 +234,14 @@ namespace MobileGL::MG_Pipe {
return "";
}
// Rows 1 and 6 became live behaviour when D3 made every reader read the table (before that
// the bit-7 tests were hard-coded in Managers.cpp and DirectGLES.cpp and these rows were
// dead data). An edit that drops either row now makes BOTH readers agree, so nothing
// downstream can catch it; these two lines can.
static_assert(MGPipeSubsystemRequires(kMGPipeSubsystemVertexInput) == kMGPipeSubsystemResources,
"D-K2's vertex-input row (bit 8 requires bit 7) has gone missing");
static_assert(MGPipeSubsystemRequires(kMGPipeSubsystemBufferBindings) == kMGPipeSubsystemResources,
"D-K2's buffer-bindings row (bit 13 requires bit 7) has gone missing");
static_assert(MGPipeSubsystemRequires(kMGPipeSubsystemTextureResources) ==
(kMGPipeSubsystemResources | kMGPipeSubsystemSamplers),
"D-K2's fourth row (bit 10 requires bit 11) has gone missing again");