Lines Matching refs:templ
439 const struct pipe_resource *templ = &res->b;
443 vbind = pipe_to_virgl_bind(vs, templ->bind);
444 vflags = pipe_to_virgl_flags(vs, templ->flags);
449 templ->target,
451 templ->format,
453 templ->width0,
454 templ->height0,
455 templ->depth0,
456 templ->array_size,
457 templ->last_level,
458 templ->nr_samples,
635 const struct pipe_resource *templ,
643 res->b = *templ;
646 vbind = pipe_to_virgl_bind(vs, templ->bind);
647 vflags = pipe_to_virgl_flags(vs, templ->flags);
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)) {
669 res->hw_res = vs->vws->resource_create(vs->vws, templ->target,
671 templ->format, vbind,
672 templ->width0,
673 templ->height0,
674 templ->depth0,
675 templ->array_size,
676 templ->last_level,
677 templ->nr_samples,
687 if (templ->target == PIPE_BUFFER) {
699 const struct pipe_resource *templ)
701 return virgl_resource_create_front(screen, templ, NULL);
705 const struct pipe_resource *templ,
712 if (templ->target == PIPE_BUFFER)
716 res->b = *templ;