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

Subject: media: venus: helpers: update NUM_MBS macro calculation
Author:  Dikshita Agarwal <[email protected]>
Date:    Tue Aug 10 11:47:54 2021 +0200

Consider alignment while calculating NUM_MBS.

Co-developed-by: Mansur Alisha Shaik <[email protected]>
Signed-off-by: Mansur Alisha Shaik <[email protected]>
Signed-off-by: Dikshita Agarwal <[email protected]>
Signed-off-by: Stanimir Varbanov <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

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

---

diff --git a/drivers/media/platform/qcom/venus/helpers.c 
b/drivers/media/platform/qcom/venus/helpers.c
index 1f46a6f4456a..196a24892176 100644
--- a/drivers/media/platform/qcom/venus/helpers.c
+++ b/drivers/media/platform/qcom/venus/helpers.c
@@ -18,8 +18,8 @@
 #include "hfi_platform.h"
 #include "hfi_parser.h"
 
-#define NUM_MBS_720P   (((1280 + 15) >> 4) * ((720 + 15) >> 4))
-#define NUM_MBS_4K     (((4096 + 15) >> 4) * ((2304 + 15) >> 4))
+#define NUM_MBS_720P   (((ALIGN(1280, 16)) >> 4) * ((ALIGN(736, 16)) >> 4))
+#define NUM_MBS_4K     (((ALIGN(4096, 16)) >> 4) * ((ALIGN(2304, 16)) >> 4))
 
 struct intbuf {
        struct list_head list;

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

Reply via email to