Lines Matching defs:format

111 	state->format = m_state->format;
141 drm_printf(p, "\tformat_id=%u\n", ms->format);
149 u32 format, u64 modifier)
165 return !malidp_hw_format_is_afbc_only(format);
202 info = drm_format_info(format);
209 if (malidp_hw_format_is_linear_only(format) == true) {
210 DRM_DEBUG_KMS("Given format (0x%x) is supported is linear mode only\n",
211 format);
235 if (!(format == DRM_FORMAT_YUV420_10BIT &&
254 u32 format, u64 modifier)
256 return malidp_format_mod_supported(plane->dev, format, modifier);
374 * current format, AFBC state and rotation.
376 static bool malidp_partial_prefetch_supported(u32 format, u64 modifier,
389 switch (format) {
432 * is selected as long as it is supported for the current format. The selected
457 if (malidp_partial_prefetch_supported(ms->base.fb->format->format,
520 ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map,
521 mp->layer->id, fb->format->format,
523 if (ms->format == MALIDP_INVALID_FORMAT_ID)
526 ms->n_planes = fb->format->num_planes;
530 if (((fb->pitches[i] * drm_format_info_block_height(fb->format, i))
538 block_w = drm_format_info_block_width(fb->format, 0);
539 block_h = drm_format_info_block_height(fb->format, 0);
579 if ((fb->format->format == DRM_FORMAT_RGB888 ||
580 fb->format->format == DRM_FORMAT_BGR888) && !(fb->modifier))
596 fb->format->format,
607 fb->format->has_alpha)
634 unsigned int block_h = drm_format_info_block_height(mp->base.state->fb->format, i);
822 val = (val & ~LAYER_FORMAT_MASK) | ms->format;
879 } else if (state->fb->format->has_alpha) {
880 /* We only care about blend mode if the format has alpha */
982 formats[n++] = map->pixel_formats[j].format;