Lines Matching defs:template
609 const struct pipe_resource *template,
615 so->base = *template;
622 if (template->bind & PAN_BIND_SHARED_MASK) {
637 panfrost_resource_setup(dev, so, modifier, template->format);
640 unsigned bind = template->bind;
656 if (dev->ro && (template->bind & PIPE_BIND_SCANOUT)) {
658 struct pan_block_size blocksize = panfrost_block_size(modifier, template->format);
664 assert(util_format_get_blockwidth(template->format) == 1);
665 assert(util_format_get_blockheight(template->format) == 1);
682 unsigned width = ALIGN_POT(template->width0, blocksize.width);
683 unsigned stride = ALIGN_POT(template->width0, blocksize.width) *
684 util_format_get_blocksize(template->format);
690 .format = template->format,
730 if (template->bind & PIPE_BIND_INDEX_BUFFER)
740 const struct pipe_resource *template)
742 return panfrost_resource_create_with_modifier(screen, template,
751 const struct pipe_resource *template,
756 return panfrost_resource_create_with_modifier(screen, template,
763 return panfrost_resource_create(screen, template);