summaryrefslogtreecommitdiffstats
path: root/video/out/placebo/ra_pl.c
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2023-01-21 15:46:06 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2023-01-23 14:13:34 +0100
commit9b59d39a3ab64da0e9489ee4ce2062d4503e7cc5 (patch)
tree95ad1bfc4177f44f80faf59359c9739273b11abc /video/out/placebo/ra_pl.c
parent2531a89fcb93d7c7578cec4c5536c37244f08d39 (diff)
downloadmpv-9b59d39a3ab64da0e9489ee4ce2062d4503e7cc5.tar.bz2
mpv-9b59d39a3ab64da0e9489ee4ce2062d4503e7cc5.tar.xz
vo_gpu: implement VO_DR_FLAG_HOST_CACHED
For OpenGL, this is based on simply comparing GL_VENDOR strings against a list of allowed vendors. Co-authored-by: Nicolas F. <ovdev@fratti.ch> Co-authored-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'video/out/placebo/ra_pl.c')
-rw-r--r--video/out/placebo/ra_pl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/placebo/ra_pl.c b/video/out/placebo/ra_pl.c
index dd24e1dadf..3493e79d97 100644
--- a/video/out/placebo/ra_pl.c
+++ b/video/out/placebo/ra_pl.c
@@ -52,6 +52,10 @@ struct ra *ra_create_pl(pl_gpu gpu, struct mp_log *log)
if (gpu->limits.max_variables)
ra->caps |= RA_CAP_GLOBAL_UNIFORM;
#endif
+#if PL_API_VER >= 234
+ if (!gpu->limits.host_cached)
+ ra->caps |= RA_CAP_SLOW_DR;
+#endif
if (gpu->limits.max_tex_1d_dim)
ra->caps |= RA_CAP_TEX_1D;