Lines Matching defs:templ
154 const struct pipe_resource *templ)
163 nresource->base = *templ;
167 nresource->mipmapped = (templ->last_level > 0);
171 unsigned blocksize = util_format_get_blocksize(templ->format);
173 for (unsigned l = 0; l <= templ->last_level; ++l) {
174 unsigned width = u_minify(templ->width0, l);
175 unsigned height = u_minify(templ->height0, l);
178 unsigned tile = agx_select_tile_size(templ->width0, templ->height0, l, blocksize);
185 nresource->slices[l].line_stride = util_format_get_stride(templ->format, width);
198 unsigned size = nresource->array_stride * templ->array_size * templ->depth0;
204 if (templ->bind & (PIPE_BIND_DISPLAY_TARGET |
207 unsigned width0 = templ->width0, height0 = templ->height0;
215 templ->bind,
216 templ->format,
226 offset = nresource->slices[0].line_stride * ALIGN_POT(templ->height0, 64);