summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-07-04 14:48:03 -0500
committerDudemanguy <random342@airmail.cc>2023-07-04 22:14:43 +0000
commit48e0ee9979c2928edef813e64592217420dbd4a0 (patch)
tree00000f45448e793195de23317de1430b236d2ade /video/out
parentd6a690109022210b1196487e1509b940380bee6b (diff)
downloadmpv-48e0ee9979c2928edef813e64592217420dbd4a0.tar.bz2
mpv-48e0ee9979c2928edef813e64592217420dbd4a0.tar.xz
vo_gpu/vo_gpu_next: enable gpu shader and icc cache by default
4502522a7aee093c923e79a65e4684ea2634af30 changed the way mpv handled and saved cached files. In particular, it made a separate boolean option for actually enabling cache and left the *-dir options as purely just a path (i.e. having a dir set didn't mean you save cache). This technically regressed people's configs, so let's just turn the cache on by default. Linux users already expect random stuff in ~/.cache and well everyone else can just live with some files possibly appearing in their config directory.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gpu/lcms.c1
-rw-r--r--video/out/gpu/video.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/lcms.c b/video/out/gpu/lcms.c
index 0ff4de8344..7880f279e6 100644
--- a/video/out/gpu/lcms.c
+++ b/video/out/gpu/lcms.c
@@ -516,5 +516,6 @@ const struct m_sub_options mp_icc_conf = {
.size_str = "64x64x64",
.intent = MP_INTENT_RELATIVE_COLORIMETRIC,
.use_embedded = true,
+ .cache = true,
},
};
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 4ca5428098..d961002e7b 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -327,6 +327,7 @@ static const struct gl_video_opts gl_video_opts_def = {
.scene_threshold_high = 10.0,
},
.early_flush = -1,
+ .shader_cache = true,
.hwdec_interop = "auto",
};