Lines Matching refs:format
42 #include "util/format/u_format.h"
217 info.format = ici->format;
235 if (vk_format_aspects(ici->format) & VK_IMAGE_ASPECT_PLANE_1_BIT)
239 ret = VKSCR(GetPhysicalDeviceImageFormatProperties)(screen->pdev, ici->format, ici->imageType,
258 bool is_planar = util_format_get_num_planes(templ->format) > 1;
288 } else if ((bind & PIPE_BIND_SAMPLER_VIEW) && !util_format_is_depth_or_stencil(templ->format)) {
360 const struct zink_modifier_prop *prop = &screen->modifier_props[templ->format];
389 VkFormatProperties props = screen->format_props[templ->format];
411 if (util_format_get_num_planes(templ->format) > 1)
433 if (util_format_is_depth_or_stencil(templ->format))
462 util_format_has_depth(util_format_description(templ->format)))
465 ici->format = zink_get_format(screen, templ->format);
492 templ->format != PIPE_FORMAT_B4G4R4A4_UNORM &&
493 templ->format != PIPE_FORMAT_B4G4R4A4_UINT)
562 if (whandle && whandle->plane >= util_format_get_num_planes(whandle->format))
578 unsigned num_planes = util_format_get_num_planes(templ->format);
649 modifiers_count = screen->modifier_props[templ->format].drmFormatModifierCount;
651 mods[j] = screen->modifier_props[templ->format].pDrmFormatModifierProperties[j].drmFormatModifier;
662 * image view/shader image format compatibility (that path means losing fast clears or compression on some hardware).
665 srgb = util_format_is_srgb(templ->format) ? util_format_linear(templ->format) : util_format_srgb(templ->format);
667 if (srgb == templ->format)
678 formats[0] = zink_get_format(screen, templ->format);
764 feats = screen->format_props[templ->format].linearTilingFeatures;
767 feats = screen->format_props[templ->format].optimalTilingFeatures;
774 with VkImageFormatProperties::format equal to VkImageCreateInfo::format and with
783 for (unsigned i = 0; i < screen->modifier_props[templ->format].drmFormatModifierCount; i++)
784 feats &= screen->modifier_props[templ->format].pDrmFormatModifierProperties[i].drmFormatModifierTilingFeatures;
790 if (util_format_is_yuv(templ->format)) {
796 sycci.format = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM;
849 unsigned num_dmabuf_planes = screen->base.get_dmabuf_modifier_planes(&screen->base, obj->modifier, templ->format);
1118 if (screen->faked_e5sparse && templ->format == PIPE_FORMAT_R9G9B9E5_FLOAT) {
1129 res->internal_format = templ->format;
1151 res->format = zink_get_format(screen, templ->format);
1153 res->need_2D = (screen->need_2D_zs && util_format_is_depth_or_stencil(templ->format)) ||
1160 res->aspect = aspect_from_format(templ->format);
1168 res->base.b.format,
1238 res->modifiers_count = screen->modifier_props[res->base.b.format].drmFormatModifierCount;
1240 for (unsigned i = 0; i < screen->modifier_props[res->base.b.format].drmFormatModifierCount; i++)
1241 res->modifiers[i] = screen->modifier_props[res->base.b.format].pDrmFormatModifierProperties[i].drmFormatModifier;
1486 if (templ->format == PIPE_FORMAT_NONE)
1487 templ2.format = whandle->format;
1498 res->drm_format = whandle->format;
1928 enum pipe_format format = pres->format;
1930 format = util_format_get_depth_only(pres->format);
1932 format = PIPE_FORMAT_S8_UINT;
1933 trans->base.b.stride = util_format_get_stride(format, box->width);
1934 trans->base.b.layer_stride = util_format_get_2d_size(format,
1940 templ.format = format;
1991 const struct util_format_description *desc = util_format_description(res->base.b.format);
2045 size = (VkDeviceSize)box->width * box->height * util_format_get_blocksize(m->base.b.format);
2048 util_format_get_2d_size(m->base.b.format, trans->base.b.stride, box->y) +
2049 util_format_get_stride(m->base.b.format, box->x);
2150 if (pres->next && pres->next->format == PIPE_FORMAT_S8_UINT)
2224 if (res->format != PIPE_FORMAT_S8_UINT) {
2237 assert(util_format_has_depth(util_format_description(pres->format)));