Lines Matching defs:templ
472 struct pipe_resource templ = {};
482 templ.format = src->base.b.format;
483 templ.width0 = copy_src.width;
484 templ.height0 = copy_src.height;
485 templ.depth0 = copy_src.depth;
486 templ.array_size = 1;
487 templ.nr_samples = src->base.b.nr_samples;
488 templ.nr_storage_samples = src->base.b.nr_storage_samples;
489 templ.usage = PIPE_USAGE_STAGING;
490 templ.bind = util_format_is_depth_or_stencil(templ.format) ? PIPE_BIND_DEPTH_STENCIL : PIPE_BIND_RENDER_TARGET;
491 templ.target = src->base.b.target;
493 staging_res = ctx->base.screen->resource_create(ctx->base.screen, &templ);