summaryrefslogtreecommitdiffstats
path: root/drivers/bus/omap_l3_smx.h
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2023-04-07 00:06:27 +0200
committerAlex Deucher <alexander.deucher@amd.com>2023-06-30 19:12:15 +0200
commit27fc10d1095f7a7de7c917638d7134033a190dd8 (patch)
tree35de0f9d563efb86f600566817a72de12a602ee9 /drivers/bus/omap_l3_smx.h
parentdrm/amdgpu: Keep non-psp path for partition switch (diff)
downloadlinux-27fc10d1095f7a7de7c917638d7134033a190dd8.tar.xz
linux-27fc10d1095f7a7de7c917638d7134033a190dd8.zip
drm/amd/display: Fix the delta clamping for shaper LUT
The shaper LUT requires a 10-bit value of the delta between segments. We were using dc_fixpt_clamp_u0d10() to do that but it doesn't do what we want it to do. It will preserve 10-bit precision after the decimal point, but that's not quite what we want. We want 14-bit precision and discard the 4 most-significant bytes. To do that we'll do dc_fixpt_clamp_u0d14() & 0x3ff instead. Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Reviewed-by: Krunoslav Kovac <krunoslav.kovac@amd.com> Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/bus/omap_l3_smx.h')
0 files changed, 0 insertions, 0 deletions