Lines Matching defs:templ

44 		   const struct pipe_resource *templ);
362 struct pipe_resource templ = rtex->resource.b.b;
365 templ.bind |= new_bind_flag;
379 if (r600_choose_tiling(rctx->screen, &templ) !=
384 new_tex = (struct r600_texture*)screen->resource_create(screen, &templ);
390 for (i = 0; i <= templ.last_level; i++) {
394 u_minify(templ.width0, i), u_minify(templ.height0, i),
395 util_num_layers(&templ, i), &box);
407 rtex->resource.b.b.bind = templ.bind;
532 struct pipe_resource templ = res->b.b;
533 templ.bind |= PIPE_BIND_SHARED;
536 screen->resource_create(screen, &templ);
599 struct pipe_resource templ = rtex->resource.b.b;
605 templ.nr_samples = 1;
637 if (rscreen->ws->surface_init(rscreen->ws, &templ,
1026 const struct pipe_resource *templ)
1028 const struct util_format_description *desc = util_format_description(templ->format);
1029 bool force_tiling = templ->flags & R600_RESOURCE_FLAG_FORCE_TILING;
1030 bool is_depth_stencil = util_format_is_depth_or_stencil(templ->format) &&
1031 !(templ->flags & R600_RESOURCE_FLAG_FLUSHED_DEPTH);
1034 if (templ->nr_samples > 1)
1038 if (templ->flags & R600_RESOURCE_FLAG_TRANSFER)
1043 (templ->bind & PIPE_BIND_COMPUTE_RESOURCE) &&
1044 (templ->target == PIPE_TEXTURE_2D ||
1045 templ->target == PIPE_TEXTURE_3D))
1053 !util_format_is_compressed(templ->format)) {
1061 if (templ->bind & PIPE_BIND_LINEAR)
1065 if (templ->target == PIPE_TEXTURE_1D ||
1066 templ->target == PIPE_TEXTURE_1D_ARRAY)
1070 if (templ->usage == PIPE_USAGE_STAGING ||
1071 templ->usage == PIPE_USAGE_STREAM)
1076 if (templ->width0 <= 16 || templ->height0 <= 16 ||
1085 const struct pipe_resource *templ)
1089 bool is_flushed_depth = templ->flags & R600_RESOURCE_FLAG_FLUSHED_DEPTH;
1092 r = r600_init_surface(rscreen, &surface, templ,
1093 r600_choose_tiling(rscreen, templ), 0, 0,
1100 r600_texture_create_object(screen, templ, NULL, &surface);
1104 const struct pipe_resource *templ,
1118 if ((templ->target != PIPE_TEXTURE_2D && templ->target != PIPE_TEXTURE_RECT) ||
1119 templ->depth0 != 1 || templ->last_level != 0)
1131 r = r600_init_surface(rscreen, &surface, templ, array_mode,
1138 rtex = r600_texture_create_object(screen, templ, buf, &surface);
1516 const struct pipe_surface *templ,
1525 assert(templ->u.tex.first_layer <= util_max_layer(texture, templ->u.tex.level));
1526 assert(templ->u.tex.last_layer <= util_max_layer(texture, templ->u.tex.level));
1531 surface->base.format = templ->format;
1534 surface->base.u = templ->u;
1544 const struct pipe_surface *templ)
1546 unsigned level = templ->u.tex.level;
1552 if (tex->target != PIPE_BUFFER && templ->format != tex->format) {
1556 = util_format_description(templ->format);
1575 return r600_create_surface_custom(pipe, tex, templ,
1870 const struct pipe_resource *templ,
1916 r = r600_init_surface(rscreen, &surface, templ,
1923 rtex = r600_texture_create_object(screen, templ, memobj->buf, &surface);