amd/vpelib: Add VPE prefix on API to avoid naming conflict

We need to add vpe prefix on some API such as convert_to_tetrahedral
to avoid naming conflict.

Reviewed-by: Roy Chan <Roy.Chan@amd.com>
Acked-by: Alan Liu <haoping.liu@amd.com>
Signed-off-by: Jude Shih <shenshih@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26841>
This commit is contained in:
Shih, Jude
2023-12-13 09:43:47 +08:00
committed by Marge Bot
parent 16c1628f73
commit 25d0384df8
3 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ static void convert_3dlut_to_tetrahedral_params(
params->use_tetrahedral_9 = !is_17x17x17;
}
bool convert_to_tetrahedral(struct vpe_priv *vpe_priv, uint16_t rgb_lib[17 * 17 * 17 * 3],
bool vpe_convert_to_tetrahedral(struct vpe_priv *vpe_priv, uint16_t rgb_lib[17 * 17 * 17 * 3],
struct vpe_3dlut *params, bool enable_3dlut)
{

View File

@@ -842,7 +842,7 @@ enum vpe_status vpe_color_update_movable_cm(
vpe_color_update_gamut(vpe_priv, out_lut_cs, vpe_priv->output_ctx.cs,
output_ctx->gamut_remap, !enable_3dlut);
convert_to_tetrahedral(vpe_priv, param->streams[stream_idx].tm_params.lut_data,
vpe_convert_to_tetrahedral(vpe_priv, param->streams[stream_idx].tm_params.lut_data,
stream_ctx->lut3d_func, enable_3dlut);
stream_ctx->update_3dlut = false;

View File

@@ -30,5 +30,5 @@
#define LUT3D_SIZE_17x17x17 4913
#define LUT3D_SIZE_9x9x9 729
bool convert_to_tetrahedral(struct vpe_priv *vpe_priv, uint16_t rgb[17 * 17 * 17 * 3],
bool vpe_convert_to_tetrahedral(struct vpe_priv *vpe_priv, uint16_t rgb[17 * 17 * 17 * 3],
struct vpe_3dlut *params, bool enable_3dlut);