]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Request HW cursor on DCN3.2 with SubVP
authorAric Cyr <Aric.Cyr@amd.com>
Thu, 23 Jan 2025 21:39:52 +0000 (16:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:39:00 +0000 (10:39 -0500)
commitb74f46f3ce1e5f6336645f1e9ff47c56d5dfdef1
treedc1ad630ef03c44a672e155ae5026ada6c56129b
parentc3c584c18c90a024a54716229809ba36424f9660
drm/amd/display: Request HW cursor on DCN3.2 with SubVP

[why]
When SubVP is active the HW cursor size is limited to 64x64, and
anything larger will force composition which is bad for gaming on
DCN3.2 if the game uses a larger cursor.

[how]
If HW cursor is requested, typically by a fullscreen game, do not
enable SubVP so that up to 256x256 cursor sizes are available for
DCN3.2.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Aric Cyr <Aric.Cyr@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c