summaryrefslogtreecommitdiffstats
path: root/video/out/placebo/ra_pl.c
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/placebo/ra_pl.c
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/placebo/ra_pl.c')
-rw-r--r--video/out/placebo/ra_pl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/placebo/ra_pl.c b/video/out/placebo/ra_pl.c
index ccff9df499..e1baf09a2f 100644
--- a/video/out/placebo/ra_pl.c
+++ b/video/out/placebo/ra_pl.c
@@ -67,6 +67,7 @@ struct ra *ra_create_pl(const struct pl_gpu *gpu, struct mp_log *log)
ra->max_texture_wh = gpu->limits.max_tex_2d_dim;
ra->max_shmem = gpu->limits.max_shmem_size;
ra->max_pushc_size = gpu->limits.max_pushc_size;
+ ra->max_compute_group_threads = gpu->limits.max_group_threads;
// Set up format wrappers
for (int i = 0; i < gpu->num_formats; i++) {