aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2023-04-06 18:06:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-06-30 13:12:15 -0400
commit27fc10d1095f7a7de7c917638d7134033a190dd8 (patch)
tree35de0f9d563efb86f600566817a72de12a602ee9 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parenta28eb4871acd4132a39a3e93b1e4f4bf500ffb41 (diff)
downloadlinux-27fc10d1095f7a7de7c917638d7134033a190dd8.tar.gz
linux-27fc10d1095f7a7de7c917638d7134033a190dd8.tar.bz2
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/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions