Lines Matching defs:format
30 #include "util/format/u_format.h"
112 blit.src.format = src->format;
116 blit.dst.format = dst->format;
124 blit.mask = util_format_get_mask(src->format) &
125 util_format_get_mask(dst->format);
208 util_format_description(ptex->format);
217 ptex->format == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT) {
220 bpe = util_format_get_blocksize(ptex->format);
832 rtex->surface.flags, util_format_short_name(rtex->resource.b.b.format));
916 rtex->is_depth = util_format_has_depth(util_format_description(rtex->resource.b.b.format));
920 rtex->db_render_format = base->format;
937 (rtex->resource.b.b.format == PIPE_FORMAT_Z16_UNORM ||
938 rtex->resource.b.b.format == PIPE_FORMAT_Z32_FLOAT))
1008 base->nr_samples ? base->nr_samples : 1, util_format_short_name(base->format));
1028 const struct util_format_description *desc = util_format_description(templ->format);
1030 bool is_depth_stencil = util_format_is_depth_or_stencil(templ->format) &&
1053 !util_format_is_compressed(templ->format)) {
1157 enum pipe_format pipe_format = texture->format;
1194 resource.format = pipe_format;
1229 res->format = orig->format;
1531 surface->base.format = templ->format;
1552 if (tex->target != PIPE_BUFFER && templ->format != tex->format) {
1554 = util_format_description(tex->format);
1556 = util_format_description(templ->format);
1564 unsigned nblks_x = util_format_get_nblocksx(tex->format, width);
1565 unsigned nblks_y = util_format_get_nblocksy(tex->format, height);
1570 width0 = util_format_get_nblocksx(tex->format, width0);
1571 height0 = util_format_get_nblocksy(tex->format, height0);
1601 tmpl.format = tex->format;
1616 util_format_unpack_z_float(tex->format, &depth, data, 1);
1620 util_format_unpack_s_8uint(tex->format, &stencil, data, 1);
1629 util_format_unpack_rgba(tex->format, color.ui, data, 1);
1631 if (screen->is_format_supported(screen, tex->format,
1647 unsigned r600_translate_colorswap(enum pipe_format format, bool do_endian_swap)
1649 const struct util_format_description *desc = util_format_description(format);
1653 if (format == PIPE_FORMAT_R11G11B10_FLOAT) /* isn't plain */
1821 evergreen_set_clear_color(tex, fb->cbufs[i]->format, color);