Home | History | Annotate | Download | only in r600

Lines Matching refs:format

142 		util_format_description(texture->resource.b.b.format);
190 surf_tmpl.format = texture->resource.b.b.format;
198 surf_tmpl.format = flushed_depth_texture->resource.b.b.format;
280 surf_tmpl.format = rtex->resource.b.b.format;
393 return info->dst.res->format == info->src.res->format &&
433 templ.format = info->src.res->format;
492 util_format_is_pure_integer(info->src.res->format)) {
508 fb->nr_cbufs, buffers, fb->nr_cbufs ? fb->cbufs[0]->format : PIPE_FORMAT_NONE,
561 unsigned format;
575 unsigned pixsize = util_format_get_blocksize(rtex->resource.b.b.format);
579 orig->format = tex->format;
592 new_width = util_format_get_nblocksx(tex->format, orig->width0);
593 new_height = util_format_get_nblocksy(tex->format, orig->height0);
597 tex->format = new_format;
598 rtex->surface.level[0].npix_x = util_format_get_nblocksx(orig->format, orig->npix0_x);
599 rtex->surface.level[0].npix_y = util_format_get_nblocksy(orig->format, orig->npix0_y);
600 rtex->surface.level[level].npix_x = util_format_get_nblocksx(orig->format, orig->npix_x);
601 rtex->surface.level[level].npix_y = util_format_get_nblocksy(orig->format, orig->npix_y);
610 orig->format = tex->format;
618 tex->width0 = util_format_get_nblocksx(orig->format, orig->width0);
619 tex->format = PIPE_FORMAT_R8G8B8A8_UINT;
620 rtex->surface.level[0].npix_x = util_format_get_nblocksx(orig->format, orig->npix0_x);
621 rtex->surface.level[level].npix_x = util_format_get_nblocksx(orig->format, orig->npix_x);
627 enum pipe_format format)
631 orig->format = tex->format;
639 tex->format = format;
648 tex->format = orig->format;
657 static bool util_format_is_subsampled_2x1_32bpp(enum pipe_format format)
659 const struct util_format_description *desc = util_format_description(format);
711 if (util_format_is_compressed(src->format) &&
712 util_format_is_compressed(dst->format)) {
715 sbox.x = util_format_get_nblocksx(orig_info[0].format, src_box->x);
716 sbox.y = util_format_get_nblocksy(orig_info[0].format, src_box->y);
718 sbox.width = util_format_get_nblocksx(orig_info[0].format, src_box->width);
719 sbox.height = util_format_get_nblocksy(orig_info[0].format, src_box->height);
726 dstx = util_format_get_nblocksx(orig_info[1].format, dstx);
727 dsty = util_format_get_nblocksy(orig_info[1].format, dsty);
730 if (util_format_is_subsampled_2x1_32bpp(src->format) &&
731 util_format_is_subsampled_2x1_32bpp(dst->format)) {
736 sbox.x = util_format_get_nblocksx(orig_info[0].format, src_box->x);
737 sbox.width = util_format_get_nblocksx(orig_info[0].format, src_box->width);
740 dstx = util_format_get_nblocksx(orig_info[1].format, dstx);
742 unsigned blocksize = util_format_get_blocksize(src->format);
758 fprintf(stderr, "Unhandled format %s with blocksize %u\n",
759 util_format_short_name(src->format), blocksize);