From 07b5be66ae42830ffd8645732836ebab5df1786d Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Fri, 17 May 2024 14:32:05 +0800 Subject: [PATCH] renderer: support "no_compute" for pl_sample_filter --- src/renderer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer.c b/src/renderer.c index 802480d7..7f518f6c 100644 --- a/src/renderer.c +++ b/src/renderer.c @@ -732,6 +732,10 @@ static void dispatch_sampler(struct pass_state *pass, pl_shader sh, fparams.no_compute = !(pass->fbofmt[4]->caps & PL_FMT_CAP_STORABLE); } + if (params->no_compute) { + fparams.no_compute = true; + } + bool ok; if (info.config->polar) { // Polar samplers are always a single function call