Lines Matching defs:format
439 const struct anv_format *format =
441 if (format->planes[0].isl_format == ISL_FORMAT_UNSUPPORTED)
444 return format;
447 /** Return true if any format plane has non-power-of-two bits-per-block. */
468 * this function has no parameter for the DRM format modifier, and therefore
476 const struct anv_format *format = anv_get_format(vk_format);
481 if (format == NULL)
484 assert(plane < format->n_planes);
485 struct anv_format_plane plane_format = format->planes[plane];
524 /* The B4G4R4A4 format isn't available prior to Broadwell so we have to fall
525 * back to a format with a more complex swizzle.
641 /* Load/store is determined based on base format. This prevents RGB
745 /* Each DRM_FORMAT that we support uses unorm (if the DRM format name
746 * has no type suffix) or sfloat (if it has suffix F). No format
754 anv_finishme("support YUV colorspace with DRM format modifiers");
774 /* For simplicity, keep DISJOINT disabled for multi-planar format. */
789 /* Currently there is no way to properly map memory planes to format
1006 const struct anv_format *format = anv_get_format(info->format);
1011 if (format == NULL)
1023 assert(format->vk_format == info->format);
1024 format_feature_flags = anv_get_image_format_features2(devinfo, info->format,
1025 format, info->tiling,
1029 * image view format. (Removals are more likely to occur when a DRM format
1091 * created with usage flags that are not supported for the format the
1092 * image is created with but are supported for at least one format a
1120 !anv_formats_ccs_e_compatible(devinfo, info->flags, info->format,
1129 * * This field cannot be a compressed (BC*, DXT*, FXT*, ETC*, EAC*) format
1131 * * This field cannot be ASTC format if the Surface Type is SURFTYPE_1D.
1134 isl_format_is_compressed(format->planes[0].isl_format)) {
1144 isl_format_supports_multisampling(devinfo, format->planes[0].isl_format)) {
1174 isl_format_get_layout(format->planes[0].isl_format);
1200 * If format is a multi-planar format, and if imageCreateFormatFeatures
1205 if (format->n_planes > 1 &&
1212 * If format is not a multi-planar format, and flags does not include
1216 if (format->n_planes == 1 &&
1232 /* Reject aliasing of images with non-linear DRM format modifiers because:
1285 format->n_planes;
1304 VkFormat format,
1316 .format = format,
1595 VkFormat format,
1677 /* Search for VkExternalFormatANDROID and resolve the format. */
1682 uint64_t format = ext_info ? ext_info->externalFormat : 0;
1683 if (format) {
1684 assert(pCreateInfo->format == VK_FORMAT_UNDEFINED);
1685 ext_format = (struct anv_format *) (uintptr_t) format;
1695 conversion->format = anv_get_format(pCreateInfo->format);
1699 /* The Vulkan 1.1.95 spec says "When creating an external format conversion,
1713 /* Setup external format. */
1715 conversion->format = ext_format;
1718 for (uint32_t p = 0; p < conversion->format->n_planes; p++) {
1719 if (conversion->format->planes[p].has_chroma &&
1720 (conversion->format->planes[p].denominator_scales[0] > 1 ||
1721 conversion->format->planes[p].denominator_scales[1] > 1))