Lines Matching refs:fmt
5 #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__
60 static int _dpu_format_get_media_color_ubwc(const struct msm_format *fmt)
76 if (fmt->pixel_format == DRM_FORMAT_NV12 ||
77 fmt->pixel_format == DRM_FORMAT_P010) {
78 if (MSM_FORMAT_IS_DX(fmt)) {
79 if (fmt->flags & MSM_FORMAT_FLAG_UNPACK_TIGHT)
89 if (fmt->pixel_format == dpu_media_ubwc_map[i].format) {
97 const struct msm_format *fmt,
104 bool meta = MSM_FORMAT_IS_UBWC(fmt);
107 layout->format = fmt;
110 layout->num_planes = fmt->num_planes;
112 color = _dpu_format_get_media_color_ubwc(fmt);
114 DRM_ERROR("UBWC format not supported for fmt: %p4cc\n",
115 &fmt->pixel_format);
176 const struct msm_format *fmt,
185 layout->format = fmt;
188 layout->num_planes = fmt->num_planes;
191 if (fmt->fetch_type == MDP_PLANE_INTERLEAVED) {
200 chroma_samp = fmt->chroma_sample;
209 if ((fmt->pixel_format == DRM_FORMAT_NV12) &&
210 (MSM_FORMAT_IS_DX(fmt)))
218 if (fmt->fetch_type == MDP_PLANE_PSEUDO_PLANAR) {
248 const struct msm_format *fmt,
254 if (!layout || !fmt) {
264 if (MSM_FORMAT_IS_UBWC(fmt) || MSM_FORMAT_IS_TILE(fmt))
265 return _dpu_format_get_plane_sizes_ubwc(fmt, w, h, layout);
267 return _dpu_format_get_plane_sizes_linear(fmt, w, h, layout, pitches);
429 const struct msm_format *fmt,
438 if (!fmt || !cmd || !bos) {
443 info = drm_format_info(fmt->pixel_format);
447 ret = dpu_format_get_plane_sizes(fmt, cmd->width, cmd->height,