]> git.cworth.org Git - fips/blobdiff - glxwrap.c
Add collection of (AMD_performance_monitor) performance counters to fips
[fips] / glxwrap.c
index eda358313dc26b09570547c40987c56526c9306a..9a28d7d0f231cb395b818ceadee564e1a3767cca 100644 (file)
--- a/glxwrap.c
+++ b/glxwrap.c
@@ -88,6 +88,8 @@ glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx)
 
        GLWRAP_DEFER_WITH_RETURN (ret, glXMakeCurrent, dpy, drawable, ctx);
 
+       metrics_info_init ();
+
        metrics_set_current_op (METRICS_OP_SHADER + 0);
        metrics_counter_start ();
 
@@ -103,6 +105,8 @@ glXMakeContextCurrent (Display *dpy, GLXDrawable drawable, GLXDrawable read, GLX
 
        GLWRAP_DEFER_WITH_RETURN (ret, glXMakeContextCurrent, dpy, drawable, read, ctx);
 
+       metrics_info_init ();
+
        metrics_set_current_op (METRICS_OP_SHADER + 0);
        metrics_counter_start ();