mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-19 07:51:57 +09:00
[Refactor] (P13 W5 S7): the record arm's remaining transport-guarded blocks (XFB capture landing, staged-texture follows, view-window mips, tracker membership, unit-window checks) follow the record-arm guard.
This commit is contained in:
@@ -529,10 +529,9 @@ TEST(ProgramArtifactsCodec, AVersionMismatchIsRefused) {
|
||||
// TProgram, which is null for every archived instance by construction and points into an arena
|
||||
// no archive owns. A codec arm for it would be a use-after-free waiting for a cache hit.
|
||||
TEST(ProgramArtifactsCodec, TheTablesVisitEveryMemberExceptTheLiveProgram) {
|
||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||
#if MOBILEGL_BUILD_RECORD_ARM
|
||||
// P7 OQ-8: 59 members, 58 visited. The 59th is still the live TProgram; the 58th is
|
||||
// storageBlocks, which exists only in this build (ProgramArtifacts.h guards it so the pull
|
||||
// build's LinkArtifacts keeps its size, its destructor and its .text).
|
||||
// storageBlocks, which follows the record arm's guard (ProgramArtifacts.h).
|
||||
EXPECT_EQ(ProgramArtifactsVisitedFieldCount<LinkArtifacts>(), 58u);
|
||||
EXPECT_EQ(ProgramArtifactsVisitedFieldCount<StorageBlockReflection>(), 3u);
|
||||
#else
|
||||
|
||||
@@ -81,10 +81,9 @@ namespace {
|
||||
EXPECT_EQ(CountFields<TypeFacts>(), 20u);
|
||||
EXPECT_EQ(CountFields<ResourceReflection>(), 14u);
|
||||
EXPECT_EQ(CountFields<XfbVarying>(), 11u);
|
||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||
// P7 OQ-8 added LinkArtifacts::storageBlocks and its own three-field table, in the
|
||||
// disaggregated build only. The pull/monolith number below is the one G1 measures and
|
||||
// it has not moved - which is the whole reason the member is guarded.
|
||||
#if MOBILEGL_BUILD_RECORD_ARM
|
||||
// P7 OQ-8 added LinkArtifacts::storageBlocks and its own three-field table; since P13 W5
|
||||
// the member follows the record arm (ProgramArtifacts.h), which every library builds.
|
||||
EXPECT_EQ(CountFields<StorageBlockReflection>(), 3u);
|
||||
EXPECT_EQ(CountFields<LinkArtifacts>(), 58u);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user