Skip to content

Commit

Permalink
tonemap.c: fix tex downloading
Browse files Browse the repository at this point in the history
There’s no need to specify the pitch because p2p expects
tightly packed data anyway
  • Loading branch information
Lypheo committed May 26, 2023
1 parent 4950443 commit 701d721
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/tonemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,9 @@ bool vspl_tonemap_filter(TMData *tm_data, void *dst, struct pl_plane_data *src,
return false;
}

pl_fmt out_fmt = p->tex_out[0]->params.format;

// Download planes
ok = pl_tex_download(p->gpu, pl_tex_transfer_params(
.tex = p->tex_out[0],
.row_pitch = (src->row_stride / src->pixel_stride) * out_fmt->texel_size,
.ptr = dst,
));

Expand Down

0 comments on commit 701d721

Please sign in to comment.