We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33724f commit fe14c0fCopy full SHA for fe14c0f
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_cm.c
@@ -120,10 +120,11 @@ void dpp401_set_cursor_attributes(
120
enum dc_cursor_color_format color_format = cursor_attributes->color_format;
121
int cur_rom_en = 0;
122
123
- // DCN4 should always do Cursor degamma for Cursor Color modes
124
if (color_format == CURSOR_MODE_COLOR_PRE_MULTIPLIED_ALPHA ||
125
color_format == CURSOR_MODE_COLOR_UN_PRE_MULTIPLIED_ALPHA) {
126
- cur_rom_en = 1;
+ if (cursor_attributes->attribute_flags.bits.ENABLE_CURSOR_DEGAMMA) {
+ cur_rom_en = 1;
127
+ }
128
}
129
130
REG_UPDATE_3(CURSOR0_CONTROL,
0 commit comments