diff options
author | Philip Langdale <philipl@overt.org> | 2021-12-17 15:55:55 -0800 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-12-19 01:51:54 +0100 |
commit | fd63bf398af14c95ee7df18815dc3c9d1b4d9b49 (patch) | |
tree | e3da78ba264bdb4a2bca721b9d27da6aab10a423 /video/out/gpu/ra.h | |
parent | c8b6dc489baf21b3945fabfb069be884c53e138a (diff) | |
download | mpv-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/gpu/ra.h')
-rw-r--r-- | video/out/gpu/ra.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gpu/ra.h b/video/out/gpu/ra.h index cc7fd570f1..85e293d84b 100644 --- a/video/out/gpu/ra.h +++ b/video/out/gpu/ra.h @@ -26,6 +26,10 @@ struct ra { // time. size_t max_shmem; + // Maximum number of threads in a compute work group. Set by the RA backend + // at init time. + size_t max_compute_group_threads; + // Maximum push constant size. Set by the RA backend at init time. size_t max_pushc_size; |