Lines Matching defs:template
290 struct pipe_resource *template;
306 template = &srf->template;
307 template->format = fdesc.format;
308 template->target = PIPE_TEXTURE_2D;
309 template->width0 = width;
310 template->height0 = height;
311 template->depth0 = 1;
312 template->array_size = 1;
313 template->last_level = 0;
314 template->bind = stype_bind[xa_format_type(fdesc.xa_format)];
317 template->bind |= PIPE_BIND_SHARED;
319 template->bind |= PIPE_BIND_RENDER_TARGET;
321 template->bind |= PIPE_BIND_SCANOUT;
323 srf->tex = xa->screen->resource_create(xa->screen, template);
347 struct pipe_resource *template = &srf->template;
362 if (width == template->width0 && height == template->height0 &&
363 template->format == fdesc.format &&
367 template->bind = stype_bind[xa_format_type(fdesc.xa_format)];
369 template->bind |= PIPE_BIND_SHARED;
371 template->bind |= PIPE_BIND_RENDER_TARGET;
373 template->bind |= PIPE_BIND_SCANOUT;
382 template->bind |
387 save_width = template->width0;
388 save_height = template->height0;
389 save_format = template->format;
391 template->width0 = width;
392 template->height0 = height;
393 template->format = fdesc.format;
395 texture = xa->screen->resource_create(xa->screen, template);
397 template->width0 = save_width;
398 template->height0 = save_height;
399 template->format = save_format;
406 u_box_origin_2d(xa_min(save_width, template->width0),
407 xa_min(save_height, template->height0), &src_box);