summaryrefslogtreecommitdiffstats
path: root/video/vaapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/vaapi.c')
-rw-r--r--video/vaapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/vaapi.c b/video/vaapi.c
index 2b2b7819dd..56bffaa05f 100644
--- a/video/vaapi.c
+++ b/video/vaapi.c
@@ -448,3 +448,9 @@ void va_pool_set_allocator(struct mp_image_pool *pool, struct mp_vaapi_ctx *ctx,
mp_image_pool_set_allocator(pool, alloc_pool, alloc_ctx);
mp_image_pool_set_lru(pool);
}
+
+bool va_guess_if_emulated(struct mp_vaapi_ctx *ctx)
+{
+ const char *s = vaQueryVendorString(ctx->display);
+ return s && strstr(s, "VDPAU backend");
+}