diff options
author | Harry Wentland <harry.wentland@amd.com> | 2023-04-07 00:06:27 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-30 19:12:15 +0200 |
commit | 27fc10d1095f7a7de7c917638d7134033a190dd8 (patch) | |
tree | 35de0f9d563efb86f600566817a72de12a602ee9 /drivers/hid/hid-wiimote.h | |
parent | drm/amdgpu: Keep non-psp path for partition switch (diff) | |
download | linux-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/hid/hid-wiimote.h')
0 files changed, 0 insertions, 0 deletions