]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fallback to SW cursor if SubVP + cursor too big
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 14 Jul 2022 22:21:28 +0000 (18:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jul 2022 21:16:01 +0000 (17:16 -0400)
commit5487f1f9d25d7a480a7dfb4549552a2b52d0081a
tree6b744fa2bd2176320be89aba0605b938bb74e113
parentc132f21557e41bc0694df641f2bba402157db66f
drm/amd/display: Fallback to SW cursor if SubVP + cursor too big

[Description]
- For SubVP cursor cannot be cached in MALL, therefore
we will switch to SW cursor if the cursor size exceeds
what can fit in the local DCN buffers (64x64x4)
- Returning false / failure for set_cursor_attributes will
fallback to SW cursor

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@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_stream.c