diff options
author | sfan5 <sfan5@live.de> | 2023-01-21 15:46:06 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-01-23 14:13:34 +0100 |
commit | 9b59d39a3ab64da0e9489ee4ce2062d4503e7cc5 (patch) | |
tree | 95ad1bfc4177f44f80faf59359c9739273b11abc /video/out/opengl/common.h | |
parent | 2531a89fcb93d7c7578cec4c5536c37244f08d39 (diff) | |
download | mpv-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/opengl/common.h')
-rw-r--r-- | video/out/opengl/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h index a9e67d9756..35535322ad 100644 --- a/video/out/opengl/common.h +++ b/video/out/opengl/common.h @@ -59,6 +59,7 @@ enum { MPGL_CAP_COMPUTE_SHADER = (1 << 23), // GL_ARB_compute_shader & GL_ARB_shader_image_load_store MPGL_CAP_NESTED_ARRAY = (1 << 24), // GL_ARB_arrays_of_arrays + MPGL_CAP_SLOW_DR = (1 << 29), // direct rendering is assumed to be slow MPGL_CAP_SW = (1 << 30), // indirect or sw renderer }; |