From 701d72126b58ccfb64f81ed19cacac93bd7fb2a0 Mon Sep 17 00:00:00 2001 From: Lypheo Date: Fri, 26 May 2023 16:27:06 +0200 Subject: [PATCH] tonemap.c: fix tex downloading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There’s no need to specify the pitch because p2p expects tightly packed data anyway --- src/tonemap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tonemap.c b/src/tonemap.c index 21362f9..92e2f67 100644 --- a/src/tonemap.c +++ b/src/tonemap.c @@ -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, ));