]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "drm/amd/display: Hardware cursor changes color when switched to software...
authorMelissa Wen <mwen@igalia.com>
Tue, 22 Apr 2025 14:58:11 +0000 (11:58 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 May 2025 15:51:04 +0000 (11:51 -0400)
commitfe14c0f096f58d2569e587e9f4b05d772272bbb4
tree60aea9f3b0e51026240c64d50bff2ff7f42444e7
parentd33724ffb743d3d2698bd969e29253ae0cff9739
Revert "drm/amd/display: Hardware cursor changes color when switched to software cursor"

This reverts commit 272e6aab14bbf98d7a06b2b1cd6308a02d4a10a1.

Applying degamma curve to the cursor by default breaks Linux userspace
expectation.

On Linux, AMD display manager enables cursor degamma ROM just for
implict sRGB on HW versions where degamma is split into two blocks:
degamma ROM for pre-defined TFs and `gamma correction` for user/custom
curves, and degamma ROM settings doesn't apply to cursor plane.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1513
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2803
Reported-by: Michel Dänzer <michel.daenzer@mailbox.org>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4144
Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit f6a305d4748801a6c799ae9375b2ecff3aed094b)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_cm.c