diff options
author | Rob Clark <robdclark@chromium.org> | 2020-03-07 10:23:44 -0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-03-07 15:16:15 -0800 |
commit | 28c3af8445a14b4920a190157e660f35d2e44368 (patch) | |
tree | f6e8dead9a3ef24b092fbd592aea34936cf14ca5 /cube-shadertoy.c | |
parent | daea3dd7d5727116025e0c18ba97ff104dcd546d (diff) | |
download | kmscube-28c3af8445a14b4920a190157e660f35d2e44368.tar.gz |
kmscube: add AMD_performance_monitor support
Only wired up for shadertoy mode, other modes aren't likely to be
interesting.
Diffstat (limited to 'cube-shadertoy.c')
-rw-r--r-- | cube-shadertoy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cube-shadertoy.c b/cube-shadertoy.c index 7642285..7b148da 100644 --- a/cube-shadertoy.c +++ b/cube-shadertoy.c @@ -313,8 +313,12 @@ static void draw_shadertoy(unsigned i) glDrawBuffers(1, mrt_bufs); + start_perfcntrs(); + glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); + end_perfcntrs(); + glDisableVertexAttribArray(0); /* switch back to back buffer: */ |