Lines Matching refs:format
40 #include "util/format/u_format.h"
103 if (!modifier_is_supported(devinfo, templ->format, templ->bind,
178 util_format_description(templ->format);
184 if (devinfo->ver < 6 && !util_format_is_depth_or_stencil(templ->format))
211 if (templ->format == PIPE_FORMAT_S8_UINT)
216 if (templ->format == PIPE_FORMAT_Z24X8_UNORM ||
217 templ->format == PIPE_FORMAT_Z24_UNORM_S8_UINT ||
218 templ->format == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT)
224 if (templ->format == PIPE_FORMAT_S8_UINT)
228 const enum isl_format format =
229 crocus_format_for_usage(&screen->devinfo, templ->format, usage).fmt;
235 row_pitch_B = util_format_get_stride(templ->format, templ->width0);
241 .format = format,
266 res->internal_format = templ->format;
319 assert(util_format_has_depth(util_format_description(p_res->format)));
465 if (isl_format_supports_ccs_d(devinfo, res->surf.format))
606 * of bytes instead of trying to recalculate based on different format
657 assert(templ->format == PIPE_FORMAT_NONE ||
658 util_format_get_blocksize(templ->format) == 1);
660 res->internal_format = templ->format;
743 if (templ->format == PIPE_FORMAT_S8_UINT && !(templ->usage == PIPE_USAGE_STAGING) &&
755 .format = PIPE_FORMAT_R8_UINT,
808 res->internal_format = templ->format;
852 res->external_format = whandle->format;
854 if (whandle->plane < util_format_get_num_planes(whandle->format)) {
917 if (util_format_has_depth(util_format_description(templ->format)))
928 res->external_format = memobj->format;
1067 whandle->format = res->external_format;
1251 .format = res->internal_format,
1461 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
1569 isl_format_get_layout(surf->format);
1696 const struct isl_format_layout *fmtl = isl_format_get_layout(surf->format);
1927 enum pipe_format format)
1929 return util_format_get_num_planes(format);
1976 memobj->format = whandle->format;