summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/basics/conversion.h
diff options
context:
space:
mode:
authorAlvin Lee <Alvin.Lee2@amd.com>2022-08-04 14:42:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-08-16 18:14:20 -0400
commitfbe43dcd1aad7dbcee1cffdbe6c3e1d62c85f76a (patch)
tree965b7468616495eab96041d2e0494a16dd0b5c4d /drivers/gpu/drm/amd/display/dc/basics/conversion.h
parent385bf5a856c196d5997ce4111a23df7e1b679c17 (diff)
drm/amd/display: Include scaling factor for SubVP command
[Description] For SubVP scaling cases, we must include the scaling info as part of the cmd. This is required when converting OTG line to HUBP line for the MALL_START_LINE programming. Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Brian Chang <Brian.Chang@amd.com> Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics/conversion.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/basics/conversion.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/basics/conversion.h b/drivers/gpu/drm/amd/display/dc/basics/conversion.h
index ade785c4fdc7..81da4e6f7a1a 100644
--- a/drivers/gpu/drm/amd/display/dc/basics/conversion.h
+++ b/drivers/gpu/drm/amd/display/dc/basics/conversion.h
@@ -38,6 +38,9 @@ void convert_float_matrix(
struct fixed31_32 *flt,
uint32_t buffer_size);
+void reduce_fraction(uint32_t num, uint32_t den,
+ uint32_t *out_num, uint32_t *out_den);
+
static inline unsigned int log_2(unsigned int num)
{
return ilog2(num);