Lines Matching refs:prsc
44 struct pipe_resource *prsc = &rsc->base; in vc4_resource_bo_alloc() local
45 struct pipe_screen *pscreen = prsc->screen; in vc4_resource_bo_alloc()
55 rsc->cube_map_stride * (prsc->array_size - 1)); in vc4_resource_bo_alloc()
61 rsc->cube_map_stride * (prsc->array_size - 1), in vc4_resource_bo_alloc()
100 struct pipe_resource *prsc, in vc4_resource_transfer_map() argument
106 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_resource_transfer_map()
109 enum pipe_format format = prsc->format; in vc4_resource_transfer_map()
117 !(prsc->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) && in vc4_resource_transfer_map()
118 prsc->last_level == 0 && in vc4_resource_transfer_map()
119 prsc->width0 == box->width && in vc4_resource_transfer_map()
120 prsc->height0 == box->height && in vc4_resource_transfer_map()
121 prsc->depth0 == box->depth && in vc4_resource_transfer_map()
122 prsc->array_size == 1 && in vc4_resource_transfer_map()
132 if (prsc->bind & PIPE_BIND_VERTEX_BUFFER) in vc4_resource_transfer_map()
138 vc4_flush_jobs_reading_resource(vc4, prsc); in vc4_resource_transfer_map()
146 vc4_flush_jobs_reading_resource(vc4, prsc); in vc4_resource_transfer_map()
148 vc4_flush_jobs_writing_resource(vc4, prsc); in vc4_resource_transfer_map()
166 pipe_resource_reference(&ptrans->resource, prsc); in vc4_resource_transfer_map()
236 struct pipe_resource *prsc, in vc4_texture_subdata() argument
244 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_texture_subdata()
251 return u_default_texture_subdata(pctx, prsc, level, usage, box, in vc4_texture_subdata()
274 struct pipe_resource *prsc) in vc4_resource_destroy() argument
277 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_resource_destroy()
289 struct pipe_resource *prsc, in vc4_resource_get_handle() argument
294 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_resource_get_handle()
341 struct pipe_resource *prsc = &rsc->base; in vc4_setup_slices() local
342 uint32_t width = prsc->width0; in vc4_setup_slices()
343 uint32_t height = prsc->height0; in vc4_setup_slices()
344 if (prsc->format == PIPE_FORMAT_ETC1_RGB8) { in vc4_setup_slices()
355 for (int i = prsc->last_level; i >= 0; i--) { in vc4_setup_slices()
369 if (prsc->nr_samples > 1) { in vc4_setup_slices()
393 MAX2(prsc->nr_samples, 1)); in vc4_setup_slices()
408 util_format_short_name(prsc->format), in vc4_setup_slices()
410 prsc->width0, prsc->height0, in vc4_setup_slices()
424 for (int i = 0; i <= prsc->last_level; i++) in vc4_setup_slices()
431 if (prsc->target == PIPE_TEXTURE_CUBE) { in vc4_setup_slices()
444 struct pipe_resource *prsc = &rsc->base; in vc4_resource_setup() local
446 *prsc = *tmpl; in vc4_resource_setup()
448 pipe_reference_init(&prsc->reference, 1); in vc4_resource_setup()
449 prsc->screen = pscreen; in vc4_resource_setup()
451 if (prsc->nr_samples <= 1) in vc4_resource_setup()
462 get_resource_texture_format(struct pipe_resource *prsc) in get_resource_texture_format() argument
464 struct vc4_resource *rsc = vc4_resource(prsc); in get_resource_texture_format()
465 uint8_t format = vc4_get_tex_format(prsc->format); in get_resource_texture_format()
468 if (prsc->nr_samples > 1) { in get_resource_texture_format()
489 struct pipe_resource *prsc = &rsc->base; in vc4_resource_create_with_modifiers() local
516 vc4_size_is_lt(prsc->width0, prsc->height0, rsc->cpp)) in vc4_resource_create_with_modifiers()
542 rsc->vc4_format = get_resource_texture_format(prsc); in vc4_resource_create_with_modifiers()
574 renderonly_scanout_for_resource(prsc, screen->ro, NULL); in vc4_resource_create_with_modifiers()
582 rsc->cpp * 8, prsc->last_level); in vc4_resource_create_with_modifiers()
584 return prsc; in vc4_resource_create_with_modifiers()
586 vc4_resource_destroy(pscreen, prsc); in vc4_resource_create_with_modifiers()
606 struct pipe_resource *prsc = &rsc->base; in vc4_resource_from_handle() local
658 rsc->vc4_format = get_resource_texture_format(prsc); in vc4_resource_from_handle()
689 renderonly_create_gpu_import_for_resource(prsc, in vc4_resource_from_handle()
703 prsc->width0, prsc->height0, in vc4_resource_from_handle()
704 util_format_short_name(prsc->format), in vc4_resource_from_handle()
713 return prsc; in vc4_resource_from_handle()
716 vc4_resource_destroy(pscreen, prsc); in vc4_resource_from_handle()
763 struct pipe_resource *prsc = psurf->texture; in vc4_dump_surface_non_msaa() local
764 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_dump_surface_non_msaa()
860 struct pipe_resource *prsc = psurf->texture; in vc4_surface_msaa_get_sample() local
861 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_surface_msaa_get_sample()