Lines Matching refs:prsc

51         struct pipe_resource *prsc = &rsc->base;  in vc5_debug_resource_layout()  local
53 if (prsc->target == PIPE_BUFFER) { in vc5_debug_resource_layout()
57 util_format_short_name(prsc->format), in vc5_debug_resource_layout()
58 prsc->width0, prsc->height0, in vc5_debug_resource_layout()
73 for (int i = 0; i <= prsc->last_level; i++) { in vc5_debug_resource_layout()
83 util_format_short_name(prsc->format), in vc5_debug_resource_layout()
84 prsc->width0, prsc->height0, in vc5_debug_resource_layout()
86 u_minify(prsc->width0, i), in vc5_debug_resource_layout()
87 u_minify(prsc->height0, i), in vc5_debug_resource_layout()
98 struct pipe_resource *prsc = &rsc->base; in vc5_resource_bo_alloc() local
99 struct pipe_screen *pscreen = prsc->screen; in vc5_resource_bo_alloc()
101 int layers = (prsc->target == PIPE_TEXTURE_3D ? in vc5_resource_bo_alloc()
102 prsc->depth0 : prsc->array_size); in vc5_resource_bo_alloc()
149 struct pipe_resource *prsc, in vc5_resource_transfer_map() argument
155 struct vc5_resource *rsc = vc5_resource(prsc); in vc5_resource_transfer_map()
158 enum pipe_format format = prsc->format; in vc5_resource_transfer_map()
162 assert(prsc->nr_samples <= 1); in vc5_resource_transfer_map()
169 !(prsc->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT) && in vc5_resource_transfer_map()
170 prsc->last_level == 0 && in vc5_resource_transfer_map()
171 prsc->width0 == box->width && in vc5_resource_transfer_map()
172 prsc->height0 == box->height && in vc5_resource_transfer_map()
173 prsc->depth0 == box->depth && in vc5_resource_transfer_map()
174 prsc->array_size == 1 && in vc5_resource_transfer_map()
185 if (prsc->bind & PIPE_BIND_VERTEX_BUFFER) in vc5_resource_transfer_map()
187 if (prsc->bind & PIPE_BIND_CONSTANT_BUFFER) in vc5_resource_transfer_map()
193 vc5_flush_jobs_reading_resource(vc5, prsc); in vc5_resource_transfer_map()
201 vc5_flush_jobs_reading_resource(vc5, prsc); in vc5_resource_transfer_map()
203 vc5_flush_jobs_writing_resource(vc5, prsc); in vc5_resource_transfer_map()
221 pipe_resource_reference(&ptrans->resource, prsc); in vc5_resource_transfer_map()
290 struct pipe_resource *prsc) in vc5_resource_destroy() argument
292 struct vc5_resource *rsc = vc5_resource(prsc); in vc5_resource_destroy()
301 struct pipe_resource *prsc, in vc5_resource_get_handle() argument
305 struct vc5_resource *rsc = vc5_resource(prsc); in vc5_resource_get_handle()
333 struct pipe_resource *prsc = &rsc->base; in vc5_setup_slices() local
334 uint32_t width = prsc->width0; in vc5_setup_slices()
335 uint32_t height = prsc->height0; in vc5_setup_slices()
343 uint32_t block_width = util_format_get_blockwidth(prsc->format); in vc5_setup_slices()
344 uint32_t block_height = util_format_get_blockheight(prsc->format); in vc5_setup_slices()
345 bool msaa = prsc->nr_samples > 1; in vc5_setup_slices()
351 for (int i = prsc->last_level; i >= 0; i--) { in vc5_setup_slices()
373 if (prsc->target == PIPE_TEXTURE_1D) in vc5_setup_slices()
424 for (int i = 0; i <= prsc->last_level; i++) in vc5_setup_slices()
443 struct pipe_resource *prsc = &rsc->base; in vc5_resource_setup() local
445 *prsc = *tmpl; in vc5_resource_setup()
447 pipe_reference_init(&prsc->reference, 1); in vc5_resource_setup()
448 prsc->screen = pscreen; in vc5_resource_setup()
450 if (prsc->nr_samples <= 1) { in vc5_resource_setup()
451 rsc->cpp = util_format_get_blocksize(prsc->format); in vc5_resource_setup()
453 assert(vc5_rt_format_supported(&screen->devinfo, prsc->format)); in vc5_resource_setup()
455 vc5_get_rt_format(&screen->devinfo, prsc->format); in vc5_resource_setup()
501 struct pipe_resource *prsc = &rsc->base; in vc5_resource_create_with_modifiers() local
541 rsc->internal_format = prsc->format; in vc5_resource_create_with_modifiers()
547 return prsc; in vc5_resource_create_with_modifiers()
549 vc5_resource_destroy(pscreen, prsc); in vc5_resource_create_with_modifiers()
569 struct pipe_resource *prsc = &rsc->base; in vc5_resource_from_handle() local
623 prsc->width0, prsc->height0, in vc5_resource_from_handle()
624 util_format_short_name(prsc->format), in vc5_resource_from_handle()
631 return prsc; in vc5_resource_from_handle()
634 vc5_resource_destroy(pscreen, prsc); in vc5_resource_from_handle()
740 vc5_resource_get_internal_format(struct pipe_resource *prsc) in vc5_resource_get_internal_format() argument
742 return vc5_resource(prsc)->internal_format; in vc5_resource_get_internal_format()
746 vc5_resource_set_stencil(struct pipe_resource *prsc, in vc5_resource_set_stencil() argument
749 vc5_resource(prsc)->separate_stencil = vc5_resource(stencil); in vc5_resource_set_stencil()
753 vc5_resource_get_stencil(struct pipe_resource *prsc) in vc5_resource_get_stencil() argument
755 struct vc5_resource *rsc = vc5_resource(prsc); in vc5_resource_get_stencil()