Skip to content

Commit

Permalink
renderer: support "no_compute" for pl_sample_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed May 17, 2024
1 parent 1b39748 commit 07b5be6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07b5be6

Please sign in to comment.