Lines Matching defs:tex
71 struct pipe_resource *tex)
76 templ.format = tex->format;
77 surf = ctx->create_surface(ctx, tex, &templ);
79 fb.width = tex->width0;
80 fb.height = tex->height0;
119 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex)
123 viewport.scale[0] = 0.5f * tex->width0;
124 viewport.scale[1] = 0.5f * tex->height0;
126 viewport.translate[0] = 0.5f * tex->width0;
127 viewport.translate[1] = 0.5f * tex->height0;
222 util_probe_rect_rgba_multi(struct pipe_context *ctx, struct pipe_resource *tex,
234 map = pipe_texture_map(ctx, tex, 0, 0, PIPE_MAP_READ,
236 pipe_get_tile_rgba(transfer, map, 0, 0, w, h, tex->format, pixels);
272 util_probe_rect_rgba(struct pipe_context *ctx, struct pipe_resource *tex,
276 return util_probe_rect_rgba_multi(ctx, tex, offx, offy, w, h, expected, 1);
540 struct pipe_resource *tex =
550 u_box_2d(0, 0, tex->width0, tex->height0, &box);
551 ctx->clear_texture(ctx, tex, 0, &box, &value);
618 pipe_resource_reference(&tex, NULL);
874 nv12_validate_resource_fields(struct pipe_resource *tex)
876 return tex->format == util_format_get_plane_format(PIPE_FORMAT_NV12, 0) &&
877 tex->width0 == NV12_WIDTH &&
878 tex->height0 == NV12_HEIGHT &&
879 tex->last_level == 0 &&
880 tex->usage == PIPE_USAGE_DEFAULT &&
881 tex->next &&
882 tex->next->format == util_format_get_plane_format(PIPE_FORMAT_NV12, 1) &&
883 tex->next->width0 == tex->width0 / 2 &&
884 tex->next->height0 == tex->height0 / 2 &&
885 tex->next->usage == tex->usage;
892 struct pipe_resource *tex = util_create_texture2d(screen, NV12_WIDTH, NV12_HEIGHT,
895 if (!tex) {
901 if (!nv12_validate_resource_fields(tex)) {
915 struct pipe_resource *res = i == 2 ? tex->next : tex;
990 if (!screen->resource_get_handle(screen, NULL, tex, &handle[i], 0)) {
1023 pipe_resource_reference(&tex, NULL);