master hovercats/oakiss / pkg / mpv / patch / 0009-Disable-vo_gpu.patch
 1From c951d848007b2938b805a4faf32e8c3344d45a43 Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Thu, 15 Aug 2024 00:28:33 -0700
 4Subject: [PATCH] Disable vo_gpu
 5
 6---
 7 options/options.c     | 2 ++
 8 video/out/vo.c        | 4 ++++
 9 video/out/vo_libmpv.c | 2 ++
10 3 files changed, 8 insertions(+)
11
12diff --git a/options/options.c b/options/options.c
13index 8640ecb27f..f0f85a5b2d 100644
14--- a/options/options.c
15+++ b/options/options.c
16@@ -877,10 +877,12 @@ static const m_option_t mp_opts[] = {
17     {"", OPT_SUBSTRUCT(demux_cache_opts, demux_cache_conf)},
18     {"", OPT_SUBSTRUCT(stream_opts, stream_conf)},
19 
20+#if 0
21     {"", OPT_SUBSTRUCT(ra_ctx_opts, ra_ctx_conf)},
22     {"", OPT_SUBSTRUCT(gl_video_opts, gl_video_conf)},
23     {"", OPT_SUBSTRUCT(gl_next_opts, gl_next_conf)},
24     {"", OPT_SUBSTRUCT(spirv_opts, spirv_conf)},
25+#endif
26 
27 #if HAVE_GL
28     {"", OPT_SUBSTRUCT(opengl_opts, opengl_conf)},
29diff --git a/video/out/vo.c b/video/out/vo.c
30index db29690950..3081f9878d 100644
31--- a/video/out/vo.c
32+++ b/video/out/vo.c
33@@ -72,8 +72,10 @@ static const struct vo_driver *const video_out_drivers[] =
34 #if HAVE_ANDROID
35     &video_out_mediacodec_embed,
36 #endif
37+#if 0
38     &video_out_gpu,
39     &video_out_gpu_next,
40+#endif
41 #if HAVE_VDPAU
42     &video_out_vdpau,
43 #endif
44@@ -304,7 +306,9 @@ static struct vo *vo_create(bool probing, struct mpv_global *global,
45     m_config_cache_set_dispatch_change_cb(vo->opts_cache, vo->in->dispatch,
46                                           update_opts, vo);
47 
48+#if 0
49     vo->gl_opts_cache = m_config_cache_alloc(NULL, global, &gl_video_conf);
50+#endif
51     vo->eq_opts_cache = m_config_cache_alloc(NULL, global, &mp_csp_equalizer_conf);
52 
53     mp_input_set_mouse_transform(vo->input_ctx, NULL, NULL);
54diff --git a/video/out/vo_libmpv.c b/video/out/vo_libmpv.c
55index 7974eed3f7..cf8d7ff477 100644
56--- a/video/out/vo_libmpv.c
57+++ b/video/out/vo_libmpv.c
58@@ -112,7 +112,9 @@ struct mpv_render_context {
59 };
60 
61 const struct render_backend_fns *render_backends[] = {
62+#if 0
63     &render_backend_gpu,
64+#endif
65     &render_backend_sw,
66     NULL
67 };
68-- 
692.44.0
70