Lines Matching refs:tmpl
581 struct pipe_resource tmpl = rsc->b.b;
587 (util_format_get_mask(tmpl.format) & PIPE_MASK_S))
590 tmpl.width0 = box->width;
591 tmpl.height0 = box->height;
595 if (tmpl.array_size > 1) {
596 if (tmpl.target == PIPE_TEXTURE_CUBE)
597 tmpl.target = PIPE_TEXTURE_2D_ARRAY;
598 tmpl.array_size = box->depth;
599 tmpl.depth0 = 1;
601 tmpl.array_size = 1;
602 tmpl.depth0 = box->depth;
604 tmpl.last_level = 0;
605 tmpl.bind |= PIPE_BIND_LINEAR;
606 tmpl.usage = PIPE_USAGE_STAGING;
609 pctx->screen->resource_create(pctx->screen, &tmpl);
1108 const struct pipe_resource *tmpl)
1117 *prsc = *tmpl;
1136 if (tmpl->target == PIPE_BUFFER)
1151 const struct pipe_resource *tmpl, const uint64_t *modifiers,
1165 if (tmpl->target == PIPE_BUFFER)
1168 if (tmpl->bind & PIPE_BIND_LINEAR) {
1169 if (tmpl->usage != PIPE_USAGE_STAGING)
1179 if (implicit_modifiers && (tmpl->bind & PIPE_BIND_SHARED)) {
1232 const struct pipe_resource *tmpl,
1239 enum pipe_format format = tmpl->format;
1242 rsc = alloc_resource_struct(pscreen, tmpl);
1254 if (tmpl->bind & PIPE_BIND_SHARED)
1260 get_best_layout(screen, prsc, tmpl, modifiers, count);
1312 const struct pipe_resource *tmpl,
1325 ((tmpl->bind & PIPE_BIND_SCANOUT) ||
1327 struct pipe_resource scanout_templat = *tmpl;
1332 scanout_templat.width0 = align(tmpl->width0, screen->info->gmem_align_w);
1343 pscreen, tmpl, &handle, PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE));
1352 fd_resource_allocate_and_resolve(pscreen, tmpl, modifiers, count, &size);
1369 const struct pipe_resource *tmpl)
1372 return fd_resource_create_with_modifiers(pscreen, tmpl, &mod, 1);
1382 const struct pipe_resource *tmpl,
1386 struct fd_resource *rsc = alloc_resource_struct(pscreen, tmpl);
1406 rsc->internal_format = tmpl->format;
1563 const struct pipe_resource *tmpl,
1574 assert(!(tmpl->bind & PIPE_BIND_SCANOUT));
1577 if (tmpl->bind & PIPE_BIND_LINEAR) {
1579 } else if (is_a6xx(screen) && tmpl->width0 >= FDL_MIN_UBWC_WIDTH) {
1584 prsc = fd_resource_allocate_and_resolve(pscreen, tmpl, &modifiers, 1, &size);