From c75cb1233c49f9a783ee7b82eb272a6b9b1ff329 Mon Sep 17 00:00:00 2001 From: "Ali, Nawwar" Date: Wed, 10 Sep 2025 12:56:59 +0800 Subject: [PATCH] amd/vpelib: add FL capabilitie and lut container size [WHY] get a clear definition of fastload support and actual 3d lut container size [HOW] Added related code Acked-by: Chuanyu Tseng Signed-off-by: Nawwar Ali Part-of: --- src/amd/vpelib/inc/vpe_types.h | 5 +++-- src/amd/vpelib/src/chip/vpe10/vpe10_resource.c | 2 +- src/amd/vpelib/src/chip/vpe11/vpe11_resource.c | 2 +- src/amd/vpelib/src/core/color.c | 2 +- src/amd/vpelib/src/core/common.c | 2 +- src/amd/vpelib/src/core/inc/shaper_builder.h | 2 +- src/amd/vpelib/src/core/shaper_builder.c | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/amd/vpelib/inc/vpe_types.h b/src/amd/vpelib/inc/vpe_types.h index aaf6e006fe7..363f2a02ead 100644 --- a/src/amd/vpelib/inc/vpe_types.h +++ b/src/amd/vpelib/inc/vpe_types.h @@ -1,4 +1,4 @@ -/* Copyright 2022 Advanced Micro Devices, Inc. +/* Copyright 2022-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -746,7 +746,8 @@ struct vpe_tonemap_params { enum vpe_color_primaries lut_out_gamut; /**< Output color primary */ uint16_t input_pq_norm_factor; /**< Perceptual Quantizer normalization factor. */ - uint16_t lut_dim; /**< Size of one dimension of the 3D-LUT */ + uint16_t lut_dim; /**< Size of one dimension of the 3D-LUT data*/ + uint16_t lut_container_dim; /**< Size of one dimension of the 3D-LUT container*/ /** @brief 3D LUT settings */ union { diff --git a/src/amd/vpelib/src/chip/vpe10/vpe10_resource.c b/src/amd/vpelib/src/chip/vpe10/vpe10_resource.c index a84fad4d2ae..df0cc313125 100644 --- a/src/amd/vpelib/src/chip/vpe10/vpe10_resource.c +++ b/src/amd/vpelib/src/chip/vpe10/vpe10_resource.c @@ -1,4 +1,4 @@ -/* Copyright 2022 Advanced Micro Devices, Inc. +/* Copyright 2022-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/src/amd/vpelib/src/chip/vpe11/vpe11_resource.c b/src/amd/vpelib/src/chip/vpe11/vpe11_resource.c index c644300b2e0..b403b6425d4 100644 --- a/src/amd/vpelib/src/chip/vpe11/vpe11_resource.c +++ b/src/amd/vpelib/src/chip/vpe11/vpe11_resource.c @@ -1,4 +1,4 @@ -/* Copyright 2023 Advanced Micro Devices, Inc. +/* Copyright 2023-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/src/amd/vpelib/src/core/color.c b/src/amd/vpelib/src/core/color.c index 83659900ac6..a08ec20f7cd 100644 --- a/src/amd/vpelib/src/core/color.c +++ b/src/amd/vpelib/src/core/color.c @@ -1,4 +1,4 @@ -/* Copyright 2022 Advanced Micro Devices, Inc. +/* Copyright 2022-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/src/amd/vpelib/src/core/common.c b/src/amd/vpelib/src/core/common.c index 8f428d1a18d..4e23c71a17c 100644 --- a/src/amd/vpelib/src/core/common.c +++ b/src/amd/vpelib/src/core/common.c @@ -1,4 +1,4 @@ -/* Copyright 2022 Advanced Micro Devices, Inc. +/* Copyright 2022-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/src/amd/vpelib/src/core/inc/shaper_builder.h b/src/amd/vpelib/src/core/inc/shaper_builder.h index 3d7f30118f1..d8d25cf0522 100644 --- a/src/amd/vpelib/src/core/inc/shaper_builder.h +++ b/src/amd/vpelib/src/core/inc/shaper_builder.h @@ -1,4 +1,4 @@ -/* Copyright 2022 Advanced Micro Devices, Inc. +/* Copyright 2022-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/src/amd/vpelib/src/core/shaper_builder.c b/src/amd/vpelib/src/core/shaper_builder.c index 86720ec45b3..d0735e3fdf6 100644 --- a/src/amd/vpelib/src/core/shaper_builder.c +++ b/src/amd/vpelib/src/core/shaper_builder.c @@ -1,4 +1,4 @@ -/* Copyright 2022 Advanced Micro Devices, Inc. +/* Copyright 2022-2025 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"),