Lines Matching defs:templat
56 const struct pipe_resource *templat,
64 struct pipe_resource scanout_templat = *templat;
75 pres = pscreen->resource_from_handle(pscreen, templat, &handle,
147 const struct pipe_resource *templat,
159 res->base = *templat;
179 const struct pipe_resource *templat,
193 if (templat->target == PIPE_BUFFER)
196 if (templat->bind & (PIPE_BIND_LINEAR | PIPE_BIND_SCANOUT))
200 if (!has_user_modifiers && (templat->bind & PIPE_BIND_SHARED))
209 if (templat->bind & (PIPE_BIND_INDEX_BUFFER |
212 width = templat->width0;
213 height = templat->height0;
215 width = align(templat->width0, 16);
216 height = align(templat->height0, 16);
221 if (screen->ro && (templat->bind & PIPE_BIND_SCANOUT))
222 pres = lima_resource_create_scanout(pscreen, templat, width, height);
224 pres = lima_resource_create_bo(pscreen, templat, width, height, align_to_tile);
230 if (templat->bind & PIPE_BIND_INDEX_BUFFER)
236 pres->target, pres->bind, pres->usage, should_tile, templat->last_level);
243 const struct pipe_resource *templat)
247 return _lima_resource_create_with_modifiers(pscreen, templat, &mod, 1);
252 const struct pipe_resource *templat,
256 struct pipe_resource tmpl = *templat;
292 const struct pipe_resource *templat,
295 if (templat->bind & (PIPE_BIND_SAMPLER_VIEW |
313 *pres = *templat;