Lines Matching defs:format
400 /* Mutable image with no format list, we have to assume all formats */
404 enum isl_format img_format = image->planes[plane].primary_surface.isl.format;
417 /* Switching between any of those format types on Gfx7/8 will cause
445 * If the image was created with an explicit format, we check it for typed
447 * format list, seeing if /any/ of the formats support typed atomics. If no
449 * make an image view with a format that does use atomics.
454 enum isl_format format,
458 if (isl_format_supports_typed_atomics(devinfo, format))
477 /* No explicit format list. Any 16/32/64bpp format could be used with atomics. */
478 unsigned bpb = isl_format_get_layout(format)->bpb;
490 struct anv_format_plane format =
495 isl_is_storage_image_format(format.isl_format)) {
497 isl_lower_storage_image_format(devinfo, format.isl_format);
499 /* If we lower the format, we should ensure either they both match in
504 format.isl_format) ||
505 isl_swizzle_is_identity(format.swizzle));
507 format.isl_format = lowered_format;
510 return format.isl_format;
516 enum isl_format format, VkImageTiling vk_tiling,
520 if (!isl_format_supports_ccs_e(devinfo, format))
524 * always be used with the original format. In particular, they will always
525 * be used with a format that supports color compression.
539 if (!isl_formats_are_ccs_e_compatible(devinfo, format, view_format))
553 enum isl_format format =
558 if (!formats_ccs_e_compatible(devinfo, create_flags, format, vk_tiling,
571 if (!isl_formats_are_ccs_e_compatible(devinfo, format, lower_format))
574 if (!formats_ccs_e_compatible(devinfo, create_flags, format, vk_tiling,
581 if (storage_image_format_supports_atomic(devinfo, create_flags, format,
694 * surface is not required (for example, by neither hardware nor DRM format
803 * format. (Putting the clear state a page/4096bytes further fixes
834 image->vk.format, image->vk.tiling,
897 .format = plane_format.isl_format,
941 .format = plane_format.isl_format,
1120 * Check that the fully-initialized anv_image is compatible with its DRM format
1168 isl_format_get_layout(plane->primary_surface.isl.format);
1215 anv_get_format_plane(devinfo, image->vk.format, plane, image->vk.tiling);
1295 * - Each format plane must map to a distint memory plane.
1298 * planes to format planes and aux planes due to the lack of defined ABI
1333 anv_get_format_plane(devinfo, image->vk.format, plane, image->vk.tiling);
1474 image->n_planes = anv_get_format_planes(image->vk.format);
1648 * format and prepare anv_image properly.
1671 /* Check format. */
1672 VkFormat vk_format = vk_format_from_android(desc.format, desc.usage);
1680 switch (desc.format) {
1692 image->n_planes = anv_get_format_planes(image->vk.format);
1753 * and only if the image is disjoint (that is, multi-planar format and
1875 * the image be disjoint (that is, multi-planar format and
2490 isl_format_is_compressed(view.format) &&
2492 assert(isl_format_is_compressed(surface->isl.format));
2530 view.format)) {
2539 .format = ISL_FORMAT_RAW,
2550 * image formats. Translate it into the closest format the hardware
2554 isl_lower_storage_image_format(&device->info, view.format);
2559 view.format,
2563 /* If we lower the format, we should ensure either they both match in
2568 view.format) ||
2569 isl_swizzle_is_identity_for_format(view.format, view.swizzle));
2571 view.format = lower_format;
2579 if (isl_format_is_compressed(surface->isl.format) &&
2580 !isl_format_is_compressed(view.format)) {
2687 /* If image has an external format, the pNext chain must contain an
2689 * created with the same external format as image."
2696 conv_format = conversion->format;
2700 /* "If image has an external format, format must be VK_FORMAT_UNDEFINED." */
2702 pCreateInfo->format == VK_FORMAT_UNDEFINED);
2706 * view format from the passed conversion info.
2719 struct anv_format_plane format;
2720 format = anv_get_format_plane(&device->info, iview->vk.view_format,
2726 .format = format.isl_format,
2733 .r = remap_swizzle(iview->vk.swizzle.r, format.swizzle),
2734 .g = remap_swizzle(iview->vk.swizzle.g, format.swizzle),
2735 .b = remap_swizzle(iview->vk.swizzle.b, format.swizzle),
2736 .a = remap_swizzle(iview->vk.swizzle.a, format.swizzle),
2783 /* NOTE: This one needs to go last since it may stomp isl_view.format */
2798 if (isl_is_storage_image_format(format.isl_format)) {
2811 /* In this case, we support the format but, because there's no
2812 * SPIR-V format specifier corresponding to it, we only support it
2818 format.isl_format));
2885 struct anv_format_plane format;
2886 format = anv_get_format_plane(&device->info, pCreateInfo->format,
2889 const uint32_t format_bs = isl_format_get_layout(format.isl_format)->bpb / 8;
2900 format.isl_format, format.swizzle,
2912 format.isl_format, format.swizzle,
2918 format.isl_format) ?
2919 isl_lower_storage_image_format(&device->info, format.isl_format) :
2922 /* If we lower the format, we should ensure either they both match in
2927 format.isl_format) ||
2928 isl_swizzle_is_identity(format.swizzle));
2931 lowered_format, format.swizzle,
2939 format.isl_format, view->range);