diff options
author | Bin Jin <bjin@ctrl-d.org> | 2019-03-12 00:44:09 +0000 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-03-13 21:47:24 +0200 |
commit | dd83b66652d93e5422757f569b084867a9052e48 (patch) | |
tree | 20b11e7fcc0264a8be27878ddd5b3e4c9abe621d | |
parent | 92e9b6da71cca2e654aba73e566451d9c682c13b (diff) | |
download | mpv-dd83b66652d93e5422757f569b084867a9052e48.tar.bz2 mpv-dd83b66652d93e5422757f569b084867a9052e48.tar.xz |
vo_gpu: increase user shader size limit
The old size limit was chosen before LUT texture was supported in user
shader. At that time, the whole user shader will be compiled and run
on GPU, which makes large user shader impractical to be used.
With the introduction of LUT texture, the old size limit doesn't make
any sense. For example, a 1024x1024 rgba16f LUT will cost 32MB shader
size.
Fix this by increasing the size limit to a value that's unlikely be
reached.
-rw-r--r-- | video/out/gpu/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 6004a0ab60..fd35d3a2af 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -472,7 +472,7 @@ static struct bstr load_cached_file(struct gl_video *p, const char *path) return p->files[n].body; } // not found -> load it - struct bstr s = stream_read_file(path, p, p->global, 1024000); // 1024 kB + struct bstr s = stream_read_file(path, p, p->global, 1000000000); // 1GB if (s.len) { struct cached_file new = { .path = talloc_strdup(p, path), |