]> git.cworth.org Git - fips/blobdiff - glxwrap.c
Add collection of (AMD_performance_monitor) performance counters to fips
[fips] / glxwrap.c
index a57c5579cba444fe40ba45091b072cb0fb2967b7..9a28d7d0f231cb395b818ceadee564e1a3767cca 100644 (file)
--- a/glxwrap.c
+++ b/glxwrap.c
@@ -88,6 +88,9 @@ 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 ();
 
        return ret;
@@ -102,6 +105,9 @@ 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 ();
 
        return ret;