From 5904eddb38f20bf794aadff659050c0b32479054 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 26 Jul 2017 02:42:23 +0200 Subject: vo_opengl: describe the texture uploading mode Be a bit more transparent here, which is especially helpful when people are sending me screenshots of stats pages. --- video/out/opengl/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 9867751684..8724d5ff9e 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3334,7 +3334,6 @@ static bool pass_upload_image(struct gl_video *p, struct mp_image *mpi, uint64_t // Software decoding assert(mpi->num_planes == p->plane_count); - pass_describe(p, "upload frame (swdec)"); gl_timer_start(p->upload_timer); for (int n = 0; n < p->plane_count; n++) { struct texplane *plane = &vimg->planes[n]; @@ -3373,6 +3372,8 @@ static bool pass_upload_image(struct gl_video *p, struct mp_image *mpi, uint64_t gl->BindTexture(plane->gl_target, 0); } gl_timer_stop(gl); + const char *mode = p->using_dr_path ? "DR" : p->opts.pbo ? "PBO" : "naive"; + pass_describe(p, "upload frame (%s)", mode); pass_record(p, gl_timer_measure(p->upload_timer)); return true; -- cgit v1.2.3