Lines Matching refs:templ

38             const struct pipe_surface *templ,
81 ivci.format = zink_get_format(screen, templ->format);
86 const struct util_format_description *desc = util_format_description(templ->format);
98 ivci.subresourceRange.baseMipLevel = templ->u.tex.level;
100 ivci.subresourceRange.baseArrayLayer = templ->u.tex.first_layer;
101 ivci.subresourceRange.layerCount = 1 + templ->u.tex.last_layer - templ->u.tex.first_layer;
104 ivci.viewType = zink_surface_clamp_viewtype(ivci.viewType, templ->u.tex.first_layer, templ->u.tex.last_layer, res->base.b.array_size);
130 const struct pipe_surface *templ,
136 unsigned int level = templ->u.tex.level;
146 screen->format_props[templ->format].optimalTilingFeatures :
147 screen->format_props[templ->format].linearTilingFeatures;
153 for (unsigned i = 0; i < screen->modifier_props[templ->format].drmFormatModifierCount; i++) {
154 if (res->obj->modifier == screen->modifier_props[templ->format].pDrmFormatModifierProperties[i].drmFormatModifier)
155 feats &= screen->modifier_props[templ->format].pDrmFormatModifierProperties[i].drmFormatModifierTilingFeatures;
166 surface->base.format = templ->format;
171 surface->base.nr_samples = templ->nr_samples;
173 surface->base.u.tex.first_layer = templ->u.tex.first_layer;
174 surface->base.u.tex.last_layer = templ->u.tex.last_layer;
201 do_create_surface(struct pipe_context *pctx, struct pipe_resource *pres, const struct pipe_surface *templ, VkImageViewCreateInfo *ivci, uint32_t hash, bool actually)
204 struct zink_surface *surface = create_surface(pctx, pres, templ, ivci, actually);
214 const struct pipe_surface *templ,
226 surface = do_create_surface(&ctx->base, pres, templ, ivci, hash, true);
258 const struct pipe_surface *templ)
261 bool is_array = templ->u.tex.last_layer != templ->u.tex.first_layer;
263 VkImageViewCreateInfo ivci = create_ivci(zink_screen(pctx->screen), res, templ,
269 struct zink_surface *surface = do_create_surface(pctx, pres, templ, &ivci, 0, false);
275 psurf = zink_get_surface(zink_context(pctx), pres, templ, &ivci);
281 if (templ->nr_samples) {
284 rtempl.nr_samples = templ->nr_samples;
290 csurf->transient = (struct zink_ctx_surface*)wrap_surface(pctx, (struct pipe_surface*)create_surface(pctx, &transient->base.b, templ, &ivci, true));
403 struct pipe_resource templ = {0};
404 templ.width0 = width;
405 templ.height0 = height;
406 templ.depth0 = 1;
407 templ.format = PIPE_FORMAT_R8G8B8A8_UNORM;
408 templ.target = target;
409 templ.bind = PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW;
411 templ.bind |= PIPE_BIND_SHADER_IMAGE;
412 templ.nr_samples = samples;
414 pres = ctx->base.screen->resource_create(ctx->base.screen, &templ);