Lines Matching refs:format
23 #include "util/format/u_format.h"
63 * 4. the format can be rendered to and the format is a readback format
64 * or the format is a scanout format and we can read back from scanout
70 vs->base.is_format_supported(&vs->base, res->b.format, res->b.target,
81 virgl_has_scanout_format(vs, res->b.format, true);
93 const struct util_format_description *descr = util_format_description(res->b.format);
103 virgl_has_readback_format(&vs->base, pipe_to_virgl_format(res->b.format), false) &&
319 stride = util_format_get_stride(pres->format, box->width);
320 layer_stride = util_format_get_2d_size(pres->format, stride, box->height);
451 templ->format,
612 nblocksy = util_format_get_nblocksy(pt->format, height);
614 util_format_get_stride(pt->format, width);
652 (templ->format == PIPE_FORMAT_B8G8R8A8_SRGB ||
653 templ->format == PIPE_FORMAT_B8G8R8A8_UNORM ||
654 templ->format == PIPE_FORMAT_B8G8R8X8_SRGB ||
655 templ->format == PIPE_FORMAT_B8G8R8X8_UNORM)) {
671 templ->format, vbind,
774 pipe_to_virgl_format(res->b.format),
845 enum pipe_format format = pres->format;
846 const unsigned blocksy = box->y / util_format_get_blockheight(format);
847 const unsigned blocksx = box->x / util_format_get_blockwidth(format);
866 offset += blocksx * util_format_get_blocksize(format);