summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorBin Jin <bjin@ctrl-d.org>2017-07-24 19:15:15 +0000
committerBin Jin <bjin@ctrl-d.org>2017-07-25 04:07:26 +0800
commit13ef6bcf6fe129614299bb40daa1427a213ed949 (patch)
tree0a18b93c9d60a69f093f154faab5030d512700ee /video/out/opengl/common.h
parentdbef5b737e2f994f02923c8214cba368b663a655 (diff)
downloadmpv-13ef6bcf6fe129614299bb40daa1427a213ed949.tar.bz2
mpv-13ef6bcf6fe129614299bb40daa1427a213ed949.tar.xz
vo_opengl: enable compute shader for mesa
Mesa 17.1 supports compute shader but not full specs of OpenGL 4.3. Change the code to detect OpenGL extension "GL_ARB_compute_shader" rather than OpenGL version 4.3. HDR peak detection requires SSBO, and polar scaler requires 2D array extension. Add these extensions as requirement as well.
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r--video/out/opengl/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index eec7806624..6d8015c8b3 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -55,6 +55,8 @@ enum {
MPGL_CAP_ARB_FLOAT = (1 << 19), // GL_ARB_texture_float
MPGL_CAP_EXT_CR_HFLOAT = (1 << 20), // GL_EXT_color_buffer_half_float
MPGL_CAP_SSBO = (1 << 21), // GL_ARB_shader_storage_buffer_object
+ MPGL_CAP_COMPUTE_SHADER = (1 << 22), // GL_ARB_compute_shader & GL_ARB_shader_image_load_store
+ MPGL_CAP_NESTED_ARRAY = (1 << 23), // GL_ARB_arrays_of_arrays
MPGL_CAP_SW = (1 << 30), // indirect or sw renderer
};