Lines Matching defs:prsc
44 struct pipe_resource *prsc = &rsc->base;
45 struct pipe_screen *pscreen = prsc->screen;
55 rsc->cube_map_stride * (prsc->array_size - 1));
61 rsc->cube_map_stride * (prsc->array_size - 1),
100 struct pipe_resource *prsc,
106 struct vc4_resource *rsc = vc4_resource(prsc);
109 enum pipe_format format = prsc->format;
117 !(prsc->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) &&
118 prsc->last_level == 0 &&
119 prsc->width0 == box->width &&
120 prsc->height0 == box->height &&
121 prsc->depth0 == box->depth &&
122 prsc->array_size == 1 &&
132 if (prsc->bind & PIPE_BIND_VERTEX_BUFFER)
138 vc4_flush_jobs_reading_resource(vc4, prsc);
146 vc4_flush_jobs_reading_resource(vc4, prsc);
148 vc4_flush_jobs_writing_resource(vc4, prsc);
164 pipe_resource_reference(&ptrans->resource, prsc);
223 struct pipe_resource *prsc,
231 struct vc4_resource *rsc = vc4_resource(prsc);
238 return u_default_texture_subdata(pctx, prsc, level, usage, box,
261 struct pipe_resource *prsc)
264 struct vc4_resource *rsc = vc4_resource(prsc);
285 struct pipe_resource *prsc,
290 struct vc4_resource *rsc = vc4_resource(prsc);
331 struct pipe_context *pctx, struct pipe_resource *prsc,
336 struct vc4_resource *rsc = vc4_resource(prsc);
356 struct pipe_resource *prsc = &rsc->base;
357 uint32_t width = prsc->width0;
358 uint32_t height = prsc->height0;
359 if (prsc->format == PIPE_FORMAT_ETC1_RGB8) {
370 for (int i = prsc->last_level; i >= 0; i--) {
384 if (prsc->nr_samples > 1) {
408 MAX2(prsc->nr_samples, 1));
423 util_format_short_name(prsc->format),
425 prsc->width0, prsc->height0,
439 for (int i = 0; i <= prsc->last_level; i++)
446 if (prsc->target == PIPE_TEXTURE_CUBE) {
459 struct pipe_resource *prsc = &rsc->base;
461 *prsc = *tmpl;
463 pipe_reference_init(&prsc->reference, 1);
464 prsc->screen = pscreen;
466 if (prsc->nr_samples <= 1)
477 get_resource_texture_format(struct pipe_resource *prsc)
479 struct vc4_resource *rsc = vc4_resource(prsc);
480 uint8_t format = vc4_get_tex_format(prsc->format);
483 if (prsc->nr_samples > 1) {
504 struct pipe_resource *prsc = &rsc->base;
531 vc4_size_is_lt(prsc->width0, prsc->height0, rsc->cpp))
557 rsc->vc4_format = get_resource_texture_format(prsc);
589 renderonly_scanout_for_resource(prsc, screen->ro, NULL);
597 rsc->cpp * 8, prsc->last_level);
599 return prsc;
601 vc4_resource_destroy(pscreen, prsc);
621 struct pipe_resource *prsc = &rsc->base;
673 rsc->vc4_format = get_resource_texture_format(prsc);
704 renderonly_create_gpu_import_for_resource(prsc,
716 prsc->width0, prsc->height0,
717 util_format_short_name(prsc->format),
726 return prsc;
729 vc4_resource_destroy(pscreen, prsc);
776 struct pipe_resource *prsc = psurf->texture;
777 struct vc4_resource *rsc = vc4_resource(prsc);
873 struct pipe_resource *prsc = psurf->texture;
874 struct vc4_resource *rsc = vc4_resource(prsc);