This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: venus: helpers: Calculate properly compressed buffer size
Author:  Stanimir Varbanov <[email protected]>
Date:    Wed Nov 11 15:37:51 2020 +0100

For resolutions below 720p the size of the compressed buffer must
be bigger. Correct this by checking the resolution when calculating
buffer size and multiply by eight.

Signed-off-by: Stanimir Varbanov <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/qcom/venus/helpers.c | 2 ++
 1 file changed, 2 insertions(+)

---

diff --git a/drivers/media/platform/qcom/venus/helpers.c 
b/drivers/media/platform/qcom/venus/helpers.c
index c2a82cf43361..11f35e36149b 100644
--- a/drivers/media/platform/qcom/venus/helpers.c
+++ b/drivers/media/platform/qcom/venus/helpers.c
@@ -986,6 +986,8 @@ u32 venus_helper_get_framesz(u32 v4l2_fmt, u32 width, u32 
height)
 
        if (compressed) {
                sz = ALIGN(height, 32) * ALIGN(width, 32) * 3 / 2 / 2;
+               if (width < 1280 || height < 720)
+                       sz *= 8;
                return ALIGN(sz, SZ_4K);
        }
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to