amd/vpelib: Add macro to perform ceil division

Add macro to perform ceil division

Reviewed-by: Brendan Steve Leder <BrendanSteve.Leder@amd.com>
Reviewed-by: Navid Assadian <Navid.Assadian@amd.com>
Acked-by: ChuanYu Tseng <ChuanYu.Tseng@amd.com>
Signed-off-by: Agate, Jesse <Jesse.Agate@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35012>
diff --git a/src/amd/vpelib/src/core/inc/common.h b/src/amd/vpelib/src/core/inc/common.h
index 0ff796e..49ea20e 100644
--- a/src/amd/vpelib/src/core/inc/common.h
+++ b/src/amd/vpelib/src/core/inc/common.h
@@ -53,6 +53,10 @@
 #define max(x, y) (((x) > (y)) ? (x) : (y))
 #endif
 
+#ifndef int_divide_with_ceil
+#define int_divide_with_ceil(x, y) ((x + (y-1))/y)
+#endif
+
 bool vpe_find_color_space_from_table(
     const struct vpe_color_space *table, int table_size, const struct vpe_color_space *cs);