summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/gl_headers.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2021-12-17 15:55:55 -0800
committersfan5 <sfan5@live.de>2021-12-19 01:51:54 +0100
commitfd63bf398af14c95ee7df18815dc3c9d1b4d9b49 (patch)
treee3da78ba264bdb4a2bca721b9d27da6aab10a423 /video/out/opengl/gl_headers.h
parentc8b6dc489baf21b3945fabfb069be884c53e138a (diff)
downloadmpv-fd63bf398af14c95ee7df18815dc3c9d1b4d9b49.tar.bz2
mpv-fd63bf398af14c95ee7df18815dc3c9d1b4d9b49.tar.xz
vo_gpu: stop hard-coding max compute group threads
We've been assuming that maximum number of compute group threads is never less than the 1024 defined by the desktop GL spec. Given that we haven't had working compute shaders for GLES and I guess the Vulkan spec defines at least as high a value, we've gotten away with it so far. But we should really look the value up and respect it.
Diffstat (limited to 'video/out/opengl/gl_headers.h')
-rw-r--r--video/out/opengl/gl_headers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/gl_headers.h b/video/out/opengl/gl_headers.h
index ad276b3c7b..5c367185bd 100644
--- a/video/out/opengl/gl_headers.h
+++ b/video/out/opengl/gl_headers.h
@@ -138,6 +138,7 @@ typedef uint64_t GLuint64;
#define GL_COMPUTE_SHADER 0x91B9
#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
+#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
// --- GL 4.3 or GL_ARB_shader_storage_buffer_object