In the absence of universal planes support, drm_output_find_special_plane() sets the plane format to zero as a placeholder. Then in drm_output_init_planes() it sets the format to output->gbm_format. As output->gbm_format is already set by the time we call drm_output_find_special_plane(), simply set the plane format to it directly in this function. This makes the code clearer, as there is no reason to use the placeholder. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>dev
parent
61f2e0273f
commit
2984f36c72
Loading…
Reference in new issue