Lines Matching defs:template
406 const struct pipe_resource *template)
414 tex->b.b = *template;
419 assert(template->last_level < SVGA_MAX_TEXTURE_LEVELS);
420 if(template->last_level >= SVGA_MAX_TEXTURE_LEVELS)
424 tex->key.size.width = template->width0;
425 tex->key.size.height = template->height0;
426 tex->key.size.depth = template->depth0;
428 if(template->target == PIPE_TEXTURE_CUBE) {
438 if (template->bind & PIPE_BIND_SAMPLER_VIEW)
441 if (template->bind & PIPE_BIND_DISPLAY_TARGET) {
445 if (template->bind & PIPE_BIND_SHARED) {
449 if (template->bind & (PIPE_BIND_SCANOUT |
466 if((template->bind & PIPE_BIND_RENDER_TARGET) &&
467 !util_format_is_s3tc(template->format))
470 if(template->bind & PIPE_BIND_DEPTH_STENCIL)
473 tex->key.numMipLevels = template->last_level + 1;
475 tex->key.format = svga_translate_format(svgascreen, template->format, template->bind);
498 const struct pipe_resource *template,
508 if ((template->target != PIPE_TEXTURE_2D &&
509 template->target != PIPE_TEXTURE_RECT) ||
510 template->last_level != 0 ||
511 template->depth0 != 1) {
520 if (svga_translate_format(svga_screen(screen), template->format, template->bind) != format) {
521 unsigned f1 = svga_translate_format(svga_screen(screen), template->format, template->bind);
538 tex->b.b = *template;