[Test] (tools/trace_replay): dump every live framebuffer attachment at a call boundary

This commit is contained in:
2026-08-11 22:25:57 -04:00
parent 99ebf67a3d
commit 38eb9589f9
7 changed files with 593 additions and 2 deletions
+5
View File
@@ -1,6 +1,8 @@
#include "glws.hpp"
#include "retrace.hpp"
#include "apitrace_fbo_dump.hpp"
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <algorithm>
@@ -632,6 +634,9 @@ bool makeCurrentInternal(Drawable *drawable, Drawable *readable, Context *contex
gCurrentDrawable = drawable;
gCurrentContext = eglContext;
PrintGlIdentityOnce();
// retrace::setUp() installs the GL dumper after glws::init(), so the earliest point at
// which the dump hook can wrap it is the first time a context becomes current.
mobilegl_trace_dump::InstallIfRequested();
return true;
}