-
- Downloads
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>
Showing
- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c 15 additions, 4 deletionsdrivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c
- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.h 1 addition, 0 deletionsdrivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.h
- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c 1 addition, 1 deletiondrivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c 3 additions, 3 deletionsdrivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c 1 addition, 1 deletiondrivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c
- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c 1 addition, 1 deletiondrivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c
- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c 3 additions, 3 deletionsdrivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c
Loading
Please register or sign in to comment