drm/gem-vram: Ignore planes that are unused by framebuffer format
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 May 2022 11:33:26 +0000 (13:33 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 May 2022 17:25:19 +0000 (19:25 +0200)
commita8d6e127254c48d895c4f6e973ec998fd4a0eff3
tree945d3147dba32115738d6f8c305b9c7918638d9e
parent1c89b4b718168aa6cf136a984b474d663e4203b7
drm/gem-vram: Ignore planes that are unused by framebuffer format

Only handle color planes that exist in a framebuffer's color format.
Ignore non-existing planes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220517113327.26919-5-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c