Lines Matching defs:tmpl
798 struct pipe_resource tmpl = rsc->base;
800 tmpl.width0 = box->width;
801 tmpl.height0 = box->height;
805 if (tmpl.array_size > 1) {
806 if (tmpl.target == PIPE_TEXTURE_CUBE)
807 tmpl.target = PIPE_TEXTURE_2D_ARRAY;
808 tmpl.array_size = box->depth;
809 tmpl.depth0 = 1;
811 tmpl.array_size = 1;
812 tmpl.depth0 = box->depth;
814 tmpl.last_level = 0;
815 tmpl.bind |= PIPE_BIND_LINEAR;
816 tmpl.bind &= ~PAN_BIND_SHARED_MASK;
819 pctx->screen->resource_create(pctx->screen, &tmpl);