all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob e7caa7b5f96b7d05f23441de5cb9441c2a6e5995 1184 bytes (raw)
name: gnu/packages/patches/amlogic-0033-WIP-drivers-meson-vdec-remove-redundant-if-statement.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
From b07432a29e196337c9e9506a0b1ece3a2c5d2944 Mon Sep 17 00:00:00 2001
From: benjamin545 <benjamin545@gmail.com>
Date: Thu, 15 Jul 2021 14:32:33 -0400
Subject: [PATCH 33/73] WIP: drivers: meson: vdec: remove redundant if
 statement

checking if sess->fmt_out->pixfmt is V4L2_PIX_FMT_VP9 was already done
as a condition to enter the if statement where this additional check is performed
---
 drivers/staging/media/meson/vdec/esparser.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/media/meson/vdec/esparser.c b/drivers/staging/media/meson/vdec/esparser.c
index 86ccc8937afc..7b15fc54efe4 100644
--- a/drivers/staging/media/meson/vdec/esparser.c
+++ b/drivers/staging/media/meson/vdec/esparser.c
@@ -314,8 +314,7 @@ esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf)
 			num_dst_bufs = codec_ops->num_pending_bufs(sess);
 
 		num_dst_bufs += v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx);
-		if (sess->fmt_out->pixfmt == V4L2_PIX_FMT_VP9)
-			num_dst_bufs -= 3;
+		num_dst_bufs -= 3;
 
 		if (esparser_vififo_get_free_space(sess) < payload_size ||
 		    atomic_read(&sess->esparser_queued_bufs) >= num_dst_bufs)
-- 
2.17.1


debug log:

solving e7caa7b5f9 ...
found e7caa7b5f9 in https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/

applying [1/1] https://yhetil.org/guix/C2ORkCSHJz-4jxwCauZznk4tZlP9KS4u_3Ywe4q2QrfJ7tvIswRWw4vX6OuzXDIHRriNNTQaCiYC67GgL30p8g80J9OcduCgaoZ8XNf-amE=@protonmail.com/
diff --git a/gnu/packages/patches/amlogic-0033-WIP-drivers-meson-vdec-remove-redundant-if-statement.patch b/gnu/packages/patches/amlogic-0033-WIP-drivers-meson-vdec-remove-redundant-if-statement.patch
new file mode 100644
index 0000000000..e7caa7b5f9

1:24: space before tab in indent.
 			num_dst_bufs = codec_ops->num_pending_bufs(sess);
1:25: trailing whitespace.
 
1:26: space before tab in indent.
 		num_dst_bufs += v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx);
1:30: trailing whitespace.
 
1:31: space before tab in indent.
 		if (esparser_vififo_get_free_space(sess) < payload_size ||
Checking patch gnu/packages/patches/amlogic-0033-WIP-drivers-meson-vdec-remove-redundant-if-statement.patch...
Applied patch gnu/packages/patches/amlogic-0033-WIP-drivers-meson-vdec-remove-redundant-if-statement.patch cleanly.
warning: squelched 3 whitespace errors
warning: 8 lines add whitespace errors.

index at:
100644 e7caa7b5f96b7d05f23441de5cb9441c2a6e5995	gnu/packages/patches/amlogic-0033-WIP-drivers-meson-vdec-remove-redundant-if-statement.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.