From dd83b66652d93e5422757f569b084867a9052e48 Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Tue, 12 Mar 2019 00:44:09 +0000 Subject: 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. --- video/out/gpu/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3