]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Store gem objects for planes 1-3
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 11 Nov 2020 02:48:38 +0000 (03:48 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 22:29:47 +0000 (17:29 -0500)
commitc2b4aac219f177442436e1f3081af375b5c8222f
tree9f0422c39cf3c940bbf88e47161916722aeae86c
parentc9feb032f94f39636de5df456610cd1a7304a2ac
drm/amd/display: Store gem objects for planes 1-3

Also do the proper validation which was missed.

Besides the missing validation, not storing the objects in the
framebuffer led to wrong results in the getfb2 ioctl.

Note that this should really have been done for multi-plane
formats like NV12 already before modifiers landed.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c