mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-19 07:51:57 +09:00
[Test] (P11 M): P4aFinalFixScenario expects no re-mint count on the monolith arm either - dev's 568090f0 keeps an immutable, unwidened allocation there as the server already did
This commit is contained in:
@@ -537,11 +537,13 @@ void main() { oColor = texture(uTex, vUv); }
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// THE NUMBER ROADMAP OPEN QUESTION 2 ASKS FOR: a texture Espryt allocated BEFORE the
|
// THE NUMBER ROADMAP OPEN QUESTION 2 ASKS FOR, on a texture Espryt allocated BEFORE the
|
||||||
// hint reached it is re-minted image-bindable at the bind - its levels replayed from
|
// hint reached it. An immutable RGBA8 allocation is already what an image unit needs,
|
||||||
// the client's shadow in monolith - one re-mint, counted. Under inproc the server
|
// so neither arm re-mints it and the counter does not move: the server has kept it
|
||||||
// keeps this immutable RGBA8 allocation instead and counts nothing (P9 W2). Arming
|
// since P9 W2, and the monolith re-mint has had the same keep path since dev's
|
||||||
// the counter here is what makes it readable without a stats-enabled lane.
|
// 568090f0 (merged in P11 M), where it used to re-mint from the shadow and count one.
|
||||||
|
// A counted re-mint is TextureRemintPullScenario's A and H. Arming the counter here is
|
||||||
|
// what makes it readable without a stats-enabled lane.
|
||||||
unsigned long long pullsBefore = 0;
|
unsigned long long pullsBefore = 0;
|
||||||
const bool pullsReadable = PeekPipeStatsTextureRemintPulls(&pullsBefore);
|
const bool pullsReadable = PeekPipeStatsTextureRemintPulls(&pullsBefore);
|
||||||
|
|
||||||
@@ -581,11 +583,10 @@ void main() { oColor = texture(uTex, vUv); }
|
|||||||
|
|
||||||
// THE TRANSITION. An immutable texture has no storage-defining respecify left, so the
|
// THE TRANSITION. An immutable texture has no storage-defining respecify left, so the
|
||||||
// hint can only arrive as a metadata update (ID-18 M4). Espryt syncs the texture
|
// hint can only arrive as a metadata update (ID-18 M4). Espryt syncs the texture
|
||||||
// eagerly inside glBindImageTexture and the widening re-mints its storage, replaying
|
// eagerly inside glBindImageTexture and KEEPS the allocation (above), so the standing
|
||||||
// every defined level from the shadow (the re-mint the counter below counts), so
|
// upload is consumed by the kept storage's own sync and the picture that follows is
|
||||||
// the standing upload is consumed by that regeneration here and the picture that
|
// blue - the KEPT property of the record is proved further down, on a texture that is
|
||||||
// follows is blue whatever the metadata respecify did to the record - the KEPT
|
// image-bindable already.
|
||||||
// property is proved further down, on a texture no re-mint stands in front of.
|
|
||||||
(void)uploadsBeforeBind;
|
(void)uploadsBeforeBind;
|
||||||
(void)uploadsReadable;
|
(void)uploadsReadable;
|
||||||
glBindImageTexture(0, texture, 0, GL_FALSE, 0, GL_READ_ONLY, GL_RGBA8);
|
glBindImageTexture(0, texture, 0, GL_FALSE, 0, GL_READ_ONLY, GL_RGBA8);
|
||||||
@@ -609,14 +610,10 @@ void main() { oColor = texture(uTex, vUv); }
|
|||||||
const auto runtime = PeekSplitRuntime();
|
const auto runtime = PeekSplitRuntime();
|
||||||
if (runtime.transportResolved && runtime.transportName == "inproc") {
|
if (runtime.transportResolved && runtime.transportName == "inproc") {
|
||||||
ASSERT_TRUE(runtime.sessionActive);
|
ASSERT_TRUE(runtime.sessionActive);
|
||||||
EXPECT_EQ(pullsAfter, pullsBefore)
|
|
||||||
<< "the server must preserve this already immutable RGBA8 allocation; "
|
|
||||||
"image binding needs no re-mint";
|
|
||||||
} else {
|
|
||||||
EXPECT_EQ(pullsAfter, pullsBefore + 1)
|
|
||||||
<< "the monolith re-mint of a texture allocated before its hint was not counted "
|
|
||||||
"(trp= on the stats line is ROADMAP open question 2's number)";
|
|
||||||
}
|
}
|
||||||
|
EXPECT_EQ(pullsAfter, pullsBefore)
|
||||||
|
<< "an already immutable RGBA8 allocation must be kept on every arm; image binding "
|
||||||
|
"needs no re-mint (trp= on the stats line is ROADMAP open question 2's number)";
|
||||||
}
|
}
|
||||||
|
|
||||||
// THE PREVENTION HALF, measured the other way round: a texture whose hint arrives at
|
// THE PREVENTION HALF, measured the other way round: a texture whose hint arrives at
|
||||||
|
|||||||
Reference in New Issue
Block a user