mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 08:21:56 +09:00
[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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user