From 06900eef63c112fc9404f649daf31de334711bbc Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 31 Jul 2022 11:50:57 -0700 Subject: hwdec/vaapi: rename interops to reflect more general use This is the first in a series of changes that will introduce a drmprime hwdec. As our vaapi hwdec is based around exporting surfaces as drmprime dmabufs, we've actually got a lot of useful code already in place in the GL/PL interops. I'm going to reorganise and adjust this code to make the interops usable with the new hwdec as well. The first step is to rename the files and functions. There are no functional or other changes here. They will come next. --- video/out/hwdec/hwdec_vaapi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'video/out/hwdec/hwdec_vaapi.c') diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index ea0fa9e746..b62c68ccc4 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -26,7 +26,7 @@ #include "config.h" #include "video/out/gpu/hwdec.h" -#include "video/out/hwdec/hwdec_vaapi.h" +#include "video/out/hwdec/dmabuf_interop.h" #include "video/fmt-conversion.h" #include "video/mp_image_pool.h" #include "video/vaapi.h" @@ -107,12 +107,12 @@ static void uninit(struct ra_hwdec *hw) va_destroy(p->ctx); } -const static vaapi_interop_init interop_inits[] = { +const static dmabuf_interop_init interop_inits[] = { #if HAVE_VAAPI_EGL - vaapi_gl_init, + dmabuf_interop_gl_init, #endif #if HAVE_VAAPI_LIBPLACEBO - vaapi_pl_init, + dmabuf_interop_pl_init, #endif NULL }; -- cgit v1.2.3