1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
8 #include <drm/drm_fourcc.h>
10 #include "dpu_hw_mdss.h"
13 * dpu_find_format - validate if the pixel format is supported
15 * @supported_formats: supported formats by dpu HW
16 * @num_formatss: total number of formats
18 * Return: false if not valid format, true on success
20 static inline bool dpu_find_format(u32 format, const u32 *supported_formats,
25 for (i = 0; i < num_formats; i++) {
26 /* check for valid formats supported */
27 if (format == supported_formats[i])
34 void dpu_format_populate_addrs(struct msm_gem_address_space *aspace,
35 struct drm_framebuffer *fb,
36 struct dpu_hw_fmt_layout *layout);
38 int dpu_format_populate_plane_sizes(
39 struct drm_framebuffer *fb,
40 struct dpu_hw_fmt_layout *layout);
42 #endif /*_DPU_FORMATS_H */