logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0009-Disable-vo_gpu.patch (2114B)


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