Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Hardware cursor changes color when switched to software cursor

[Why & How]
DCN4 Cursor has separate degamma block and should always
do Cursor degamma for Cursor color modes.

Reviewed-by: Chris Park <chris.park@amd.com>
Signed-off-by: Nevenko Stupar <Nevenko.Stupar@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Nevenko Stupar and committed by
Alex Deucher
272e6aab 4e9e50b6

+2 -3
+2 -3
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_cm.c
··· 120 120 enum dc_cursor_color_format color_format = cursor_attributes->color_format; 121 121 int cur_rom_en = 0; 122 122 123 + // DCN4 should always do Cursor degamma for Cursor Color modes 123 124 if (color_format == CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA || 124 125 color_format == CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA) { 125 - if (cursor_attributes->attribute_flags.bits.ENABLE_CURSOR_DEGAMMA) { 126 - cur_rom_en = 1; 127 - } 126 + cur_rom_en = 1; 128 127 } 129 128 130 129 REG_UPDATE_3(CURSOR0_CONTROL,