Lines Matching refs:templat
130 const struct pipe_resource *templat) in etna_screen_can_create_resource() argument
133 if (!translate_samples_to_xyscale(templat->nr_samples, NULL, NULL, NULL)) in etna_screen_can_create_resource()
140 if (templat->width0 > max_size || templat->height0 > max_size) in etna_screen_can_create_resource()
182 uint64_t modifier, const struct pipe_resource *templat) in etna_resource_alloc() argument
191 templat->target, util_format_name(templat->format), templat->width0, in etna_resource_alloc()
192 templat->height0, templat->depth0, templat->array_size, in etna_resource_alloc()
193 templat->last_level, templat->nr_samples, templat->usage, in etna_resource_alloc()
194 templat->bind, templat->flags); in etna_resource_alloc()
197 int nr_samples = templat->nr_samples; in etna_resource_alloc()
198 if ((templat->bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL)) && in etna_resource_alloc()
199 !(templat->bind & PIPE_BIND_SAMPLER_VIEW)) { in etna_resource_alloc()
215 if (!util_format_is_compressed(templat->format)) { in etna_resource_alloc()
222 !etna_resource_sampler_only(templat)); in etna_resource_alloc()
233 if (!screen->specs.use_blt && templat->target != PIPE_BUFFER) in etna_resource_alloc()
236 if (templat->bind & PIPE_BIND_SCANOUT) { in etna_resource_alloc()
237 struct pipe_resource scanout_templat = *templat; in etna_resource_alloc()
255 rsc = etna_resource(pscreen->resource_from_handle(pscreen, templat, in etna_resource_alloc()
271 rsc->base = *templat; in etna_resource_alloc()
283 if (templat->bind & PIPE_BIND_VERTEX_BUFFER) in etna_resource_alloc()
308 const struct pipe_resource *templat) in etna_resource_create() argument
318 if (etna_resource_sampler_only(templat)) { in etna_resource_create()
324 if (util_format_is_compressed(templat->format)) in etna_resource_create()
326 } else if (templat->target != PIPE_BUFFER) { in etna_resource_create()
343 if (util_format_get_blocksize(templat->format) == 1 && in etna_resource_create()
344 !(templat->bind & PIPE_BIND_DEPTH_STENCIL)) { in etna_resource_create()
345 assert(!(templat->bind & PIPE_BIND_RENDER_TARGET && want_multitiled)); in etna_resource_create()
356 if (templat->target == PIPE_TEXTURE_3D) in etna_resource_create()
360 return etna_resource_alloc(pscreen, layout, DRM_FORMAT_MOD_LINEAR, templat); in etna_resource_create()
424 const struct pipe_resource *templat, in etna_resource_create_modifiers() argument
428 struct pipe_resource tmpl = *templat; in etna_resource_create_modifiers()