Pipe: fire-and-forget is async - mipmap, copies, XFB span and storage-block rows to kWaitNone, inproc creates and PBO readbacks stop waiting, and the default dual block lets a barriered verb cost one wait (FCL BSL: ~40 sync points/frame).

This commit is contained in:
2026-10-08 19:49:04 -04:00
parent 1771381057
commit 2fbcc22410
18 changed files with 234 additions and 64 deletions
@@ -292,6 +292,9 @@ void main() { o_color = gl_FragCoord.y < u_split ? u_bottom : u_top; }
glBindTexture(GL_TEXTURE_2D, m_texture);
glGenerateMipmap(GL_TEXTURE_2D);
ASSERT_EQ(FirstGLError(), 0u) << "glGenerateMipmap";
// generate_mipmap is fire-and-forget (P15): the server applies it after this
// returns, so the server log this case reads is complete only after a finish.
glFinish();
}
// Under the knob the SERVER must say it filtered on the CPU; without that line the entry
@@ -466,6 +466,10 @@ void main() { oColor = vec4(vColor, 1.0); }
}
Gl().EndFrame(); // close the setup window; SetUp's own store and map go in it
// The window is emitted where the SERVER applies that present, and the client runs ahead
// of it (a buffer create no longer waits since P15): without this the counted window's
// map can be tallied before the setup window closes and land in it.
glFinish();
unsigned long long acquisitionsBefore = 0, pushedBefore = 0;
const bool separateClientStats = PeekSeparateClientMapStats(&acquisitionsBefore, &pushedBefore);