Lines Matching defs:templ
417 struct pipe_resource templ;
427 templ = This->base.info;
430 templ.width0 = u_minify(templ.width0, This->managed.lod);
431 templ.height0 = u_minify(templ.height0, This->managed.lod);
432 templ.depth0 = u_minify(templ.depth0, This->managed.lod);
434 templ.last_level = This->base.info.last_level - This->managed.lod;
438 if (old->width0 == templ.width0 &&
439 old->height0 == templ.height0 &&
440 old->depth0 == templ.depth0)
444 res = nine_resource_create_with_retry(This->base.base.device, screen, &templ);
458 box.width = u_minify(templ.width0, l);
459 box.height = u_minify(templ.height0, l);
460 box.depth = u_minify(templ.depth0, l);
464 for (; l <= templ.last_level; ++l, ++m) {
492 struct pipe_sampler_view templ;
556 templ.format = srgb_format;
558 templ.format = resource->format;
559 templ.u.tex.first_layer = 0;
560 templ.u.tex.last_layer = resource->target == PIPE_TEXTURE_3D ?
562 templ.u.tex.first_level = 0;
563 templ.u.tex.last_level = resource->last_level;
564 templ.swizzle_r = swizzle[0];
565 templ.swizzle_g = swizzle[1];
566 templ.swizzle_b = swizzle[2];
567 templ.swizzle_a = swizzle[3];
568 templ.target = resource->target;
571 This->view[sRGB] = pipe->create_sampler_view(pipe, resource, &templ);