From adb556bf15e9b09afce6c9cb0a0911c53cf27feb Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 26 Oct 2022 23:23:49 -0500 Subject: vo_dmabuf_wayland: use special ra_ctx_create_by_name vo_dmabuf_wayland has its own ra and context so it can handle all the different hwdec correctly. Unfortunately, this API was pretty clearly designed with vo_gpu/vo_gpu_next in mind and has a lot of concepts that don't make sense for vo_dmabuf_wayland. We still want to bolt on a ra_ctx, but instead let's rework the ra_ctx logic a little bit. First, this introduces a hidden bool within the ra_ctx_fns that is used to hide the wldmabuf context from users as an option (unlike the other usual contexts). We also want to make sure that hidden contexts wouldn't be autoprobed in the usual ra_ctx_create, so we be sure to skip those in that function. Additionally, let's create a new ra_ctx_create_by_name function which does exactly what says. It specifically selects a context based on a passed string. This function has no probing or option logic is simplified just for what vo_dmabuf_wayland needs. The api/context validations functions are modified just a little bit to make sure hidden contexts are skipped and the documentation is updated to remove this entries. Fixes #10793. --- DOCS/man/options.rst | 5 ----- 1 file changed, 5 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index ed55dbfeae..278a5e4d87 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -6150,8 +6150,6 @@ them. X11/EGL android Android/EGL. Requires ``--wid`` be set to an ``android.view.Surface``. - wldmabuf - dmabuf buffers are rendered directly by Wayland compositor ``--gpu-api=`` Controls which type of graphics APIs will be accepted: @@ -6164,9 +6162,6 @@ them. Allow only Vulkan (requires a valid/working ``--spirv-compiler``) d3d11 Allow only ``--gpu-context=d3d11`` - none - No graphics API is used - Wayland alone is used for rendering - (requires Wayland compositor) ``--opengl-es=`` Controls which type of OpenGL context will be accepted: -- cgit v1.2.3