Home
last modified time | relevance | path

Searched refs:prsc (Results 1 – 25 of 60) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_resource.c51 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
[all …]
Dvc5_job.c63 const struct pipe_resource *prsc = entry->key; in vc5_job_free() local
65 remove_from_ht(vc5->write_jobs, (void *)prsc); in vc5_job_free()
139 vc5_job_add_write_resource(struct vc5_job *job, struct pipe_resource *prsc) in vc5_job_add_write_resource() argument
149 _mesa_set_add(job->write_prscs, prsc); in vc5_job_add_write_resource()
150 _mesa_hash_table_insert(vc5->write_jobs, prsc, job); in vc5_job_add_write_resource()
155 struct pipe_resource *prsc) in vc5_flush_jobs_writing_resource() argument
158 prsc); in vc5_flush_jobs_writing_resource()
167 struct pipe_resource *prsc) in vc5_flush_jobs_reading_resource() argument
169 struct vc5_resource *rsc = vc5_resource(prsc); in vc5_flush_jobs_reading_resource()
171 vc5_flush_jobs_writing_resource(vc5, prsc); in vc5_flush_jobs_reading_resource()
Dvc5_state.c644 vc5_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, argument
650 struct vc5_resource *rsc = vc5_resource(prsc);
657 pipe_reference(NULL, &prsc->reference);
673 so->base.texture = prsc;
677 int msaa_scale = prsc->nr_samples > 1 ? 2 : 1;
689 tex.image_width = prsc->width0 * msaa_scale;
690 tex.image_height = prsc->height0 * msaa_scale;
696 if (prsc->target == PIPE_TEXTURE_1D ||
697 prsc->target == PIPE_TEXTURE_1D_ARRAY) {
702 if (prsc->target == PIPE_TEXTURE_3D) {
[all …]
Dvc5_context.c71 vc5_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in vc5_invalidate_resource() argument
74 struct vc5_resource *rsc = vc5_resource(prsc); in vc5_invalidate_resource()
79 prsc); in vc5_invalidate_resource()
84 if (job->key.zsbuf && job->key.zsbuf->texture == prsc) in vc5_invalidate_resource()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.c58 rebind_resource(struct fd_context *ctx, struct pipe_resource *prsc) in rebind_resource() argument
62 if (ctx->vtx.vertexbuf.vb[i].buffer.resource == prsc) in rebind_resource()
75 if (ctx->constbuf[stage].cb[i].buffer == prsc) in rebind_resource()
83 if (ctx->tex[stage].textures[i] && (ctx->tex[stage].textures[i]->texture == prsc)) in rebind_resource()
92 if (ctx->shaderbuf[stage].sb[i].buffer == prsc) in rebind_resource()
140 struct pipe_resource *prsc = &rsc->base; in fd_try_shadow_resource() local
143 if (prsc->next) in fd_try_shadow_resource()
150 prsc->format, prsc->target, prsc->nr_samples, in fd_try_shadow_resource()
155 if (prsc->target == PIPE_BUFFER) in fd_try_shadow_resource()
158 bool whole_level = util_texrange_covers_whole_level(prsc, level, in fd_try_shadow_resource()
[all …]
Dfreedreno_query_acc.c49 pipe_resource_reference(&aq->prsc, NULL); in fd_acc_destroy_query()
61 pipe_resource_reference(&aq->prsc, NULL); in realloc_query_bo()
63 aq->prsc = pipe_buffer_create(&ctx->screen->base, in realloc_query_bo()
67 rsc = fd_resource(aq->prsc); in realloc_query_bo()
121 struct fd_resource *rsc = fd_resource(aq->prsc); in fd_acc_get_query_result()
Dfreedreno_query_hw.c204 struct fd_resource *rsc = fd_resource(period->end->prsc); in fd_hw_get_query_result()
236 assert(start->prsc == end->prsc); in fd_hw_get_query_result()
239 struct fd_resource *rsc = fd_resource(start->prsc); in fd_hw_get_query_result()
308 samp->prsc = NULL; in fd_hw_sample_init()
329 pipe_resource_reference(&samp->prsc, batch->query_buf); in fd_hw_sample_init()
337 pipe_resource_reference(&samp->prsc, NULL); in __fd_hw_sample_destroy()
Dfreedreno_resource.h172 fd_resource_level_linear(struct pipe_resource *prsc, int level) in fd_resource_level_linear() argument
174 unsigned w = u_minify(prsc->width0, level); in fd_resource_level_linear()
188 void fd_resource_resize(struct pipe_resource *prsc, uint32_t sz);
Dfreedreno_draw.c46 resource_read(struct fd_batch *batch, struct pipe_resource *prsc) in resource_read() argument
48 if (!prsc) in resource_read()
50 fd_batch_resource_used(batch, fd_resource(prsc), false); in resource_read()
54 resource_written(struct fd_batch *batch, struct pipe_resource *prsc) in resource_written() argument
56 if (!prsc) in resource_written()
58 fd_batch_resource_used(batch, fd_resource(prsc), true); in resource_written()
227 resource_written(batch, aq->prsc); in fd_draw_vbo()
406 resource_written(batch, aq->prsc); in fd_clear()
/external/mesa3d/src/gallium/auxiliary/util/
Du_transfer_helper.c41 static inline bool handle_transfer(struct pipe_resource *prsc) in handle_transfer() argument
43 struct u_transfer_helper *helper = prsc->screen->transfer_helper; in handle_transfer()
47 helper->vtbl->get_internal_format(prsc); in handle_transfer()
48 if (internal_format != prsc->format) in handle_transfer()
52 if (helper->msaa_map && (prsc->nr_samples > 1)) in handle_transfer()
89 struct pipe_resource *prsc; in u_transfer_helper_resource_create() local
97 prsc = helper->vtbl->resource_create(pscreen, &t); in u_transfer_helper_resource_create()
98 if (!prsc) in u_transfer_helper_resource_create()
101 prsc->format = format; /* frob the format back to the "external" format */ in u_transfer_helper_resource_create()
107 helper->vtbl->resource_destroy(pscreen, prsc); in u_transfer_helper_resource_create()
[all …]
Du_transfer_helper.h60 struct pipe_resource *prsc);
63 struct pipe_resource *prsc,
88 enum pipe_format (*get_internal_format)(struct pipe_resource *prsc);
97 void (*set_stencil)(struct pipe_resource *prsc, struct pipe_resource *stencil);
98 struct pipe_resource *(*get_stencil)(struct pipe_resource *prsc);
105 struct pipe_resource *prsc);
108 struct pipe_resource *prsc,
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_resource.c49 struct pipe_resource *prsc = &rsc->base; in setup_slices() local
50 struct fd_screen *screen = fd_screen(prsc->screen); in setup_slices()
55 uint32_t width = prsc->width0; in setup_slices()
56 uint32_t height = prsc->height0; in setup_slices()
57 uint32_t depth = prsc->depth0; in setup_slices()
61 uint32_t layers_in_level = rsc->layer_first ? 1 : prsc->array_size; in setup_slices()
65 for (level = 0; level <= prsc->last_level; level++) { in setup_slices()
67 bool linear_level = fd_resource_level_linear(prsc, level); in setup_slices()
84 if ((level == prsc->last_level) && (prsc->target != PIPE_BUFFER)) in setup_slices()
103 if (prsc->target == PIPE_TEXTURE_3D && ( in setup_slices()
[all …]
Dfd5_image.c63 struct pipe_resource *prsc = pimg->resource; in translate_image() local
64 struct fd_resource *rsc = fd_resource(prsc); in translate_image()
75 img->type = fd5_tex_type(prsc->target); in translate_image()
80 if (prsc->target == PIPE_BUFFER) { in translate_image()
92 img->width = u_minify(prsc->width0, lvl); in translate_image()
93 img->height = u_minify(prsc->height0, lvl); in translate_image()
94 img->depth = u_minify(prsc->depth0, lvl); in translate_image()
Dfd5_texture.c196 fd5_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd5_sampler_view_create() argument
200 struct fd_resource *rsc = fd_resource(prsc); in fd5_sampler_view_create()
213 pipe_reference(NULL, &prsc->reference); in fd5_sampler_view_create()
214 so->base.texture = prsc; in fd5_sampler_view_create()
262 A5XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd5_sampler_view_create()
263 A5XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd5_sampler_view_create()
301 A5XX_TEX_CONST_5_DEPTH(u_minify(prsc->depth0, lvl)); in fd5_sampler_view_create()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c46 struct pipe_resource *prsc = &rsc->base; in vc4_resource_bo_alloc() local
47 struct pipe_screen *pscreen = prsc->screen; in vc4_resource_bo_alloc()
57 rsc->cube_map_stride * (prsc->array_size - 1)); in vc4_resource_bo_alloc()
63 rsc->cube_map_stride * (prsc->array_size - 1), in vc4_resource_bo_alloc()
132 struct pipe_resource *prsc, in vc4_get_temp_resource() argument
138 temp_setup.target = prsc->target; in vc4_get_temp_resource()
139 temp_setup.format = prsc->format; in vc4_get_temp_resource()
150 struct pipe_resource *prsc, in vc4_resource_transfer_map() argument
156 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_resource_transfer_map()
159 enum pipe_format format = prsc->format; in vc4_resource_transfer_map()
[all …]
Dvc4_state.c559 vc4_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, in vc4_create_sampler_view() argument
563 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_create_sampler_view()
570 pipe_reference(NULL, &prsc->reference); in vc4_create_sampler_view()
571 so->base.texture = prsc; in vc4_create_sampler_view()
586 struct pipe_resource tmpl = *prsc; in vc4_create_sampler_view()
596 prsc = vc4_resource_create(pctx->screen, &tmpl); in vc4_create_sampler_view()
597 if (!prsc) { in vc4_create_sampler_view()
601 rsc = vc4_resource(prsc); in vc4_create_sampler_view()
610 so->texture = prsc; in vc4_create_sampler_view()
612 pipe_resource_reference(&so->texture, prsc); in vc4_create_sampler_view()
[all …]
Dvc4_context.c80 vc4_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in vc4_invalidate_resource() argument
83 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_invalidate_resource()
88 prsc); in vc4_invalidate_resource()
93 if (job->key.zsbuf && job->key.zsbuf->texture == prsc) in vc4_invalidate_resource()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.c150 struct pipe_resource *prsc = &rsc->base; in setup_miptree() local
152 unsigned width = prsc->width0; in setup_miptree()
153 unsigned height = prsc->height0; in setup_miptree()
154 unsigned depth = prsc->depth0; in setup_miptree()
156 for (level = 0; level <= prsc->last_level; level++) { in setup_miptree()
163 mip->stride = util_format_get_stride(prsc->format, mip->padded_width); in setup_miptree()
165 mip->layer_stride = mip->stride * util_format_get_nblocksy(prsc->format, mip->padded_height); in setup_miptree()
166 mip->size = prsc->array_size * mip->layer_stride; in setup_miptree()
445 etna_resource_changed(struct pipe_screen *pscreen, struct pipe_resource *prsc) in etna_resource_changed() argument
447 struct etna_resource *res = etna_resource(prsc); in etna_resource_changed()
[all …]
Detnaviv_transfer.c137 etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc, in etna_transfer_map() argument
144 struct etna_resource *rsc = etna_resource(prsc); in etna_transfer_map()
147 enum pipe_format format = prsc->format; in etna_transfer_map()
157 pipe_resource_reference(&ptrans->resource, prsc); in etna_transfer_map()
162 assert(level <= prsc->last_level); in etna_transfer_map()
170 prsc->last_level == 0 && in etna_transfer_map()
171 prsc->width0 == box->width && in etna_transfer_map()
172 prsc->height0 == box->height && in etna_transfer_map()
173 prsc->depth0 == box->depth && in etna_transfer_map()
174 prsc->array_size == 1) { in etna_transfer_map()
[all …]
Detnaviv_resource.h133 etna_resource_used(struct etna_context *ctx, struct pipe_resource *prsc,
137 resource_read(struct etna_context *ctx, struct pipe_resource *prsc) in resource_read() argument
139 etna_resource_used(ctx, prsc, ETNA_PENDING_READ); in resource_read()
143 resource_written(struct etna_context *ctx, struct pipe_resource *prsc) in resource_written() argument
145 etna_resource_used(ctx, prsc, ETNA_PENDING_WRITE); in resource_written()
154 struct etna_resource *prsc);
Detnaviv_query_hw.c48 struct etna_resource *rsc = etna_resource(hq->prsc); in occlusion_start()
105 pipe_resource_reference(&hq->prsc, NULL); in etna_hw_destroy_query()
125 pipe_resource_reference(&hq->prsc, NULL); in realloc_query_bo()
128 hq->prsc = pipe_buffer_create(&ctx->screen->base, PIPE_BIND_QUERY_BUFFER, in realloc_query_bo()
132 rsc = etna_resource(hq->prsc); in realloc_query_bo()
176 struct etna_resource *rsc = etna_resource(hq->prsc); in etna_hw_get_query_result()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c214 fd3_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd3_sampler_view_create() argument
218 struct fd_resource *rsc = fd_resource(prsc); in fd3_sampler_view_create()
226 pipe_reference(NULL, &prsc->reference); in fd3_sampler_view_create()
227 so->base.texture = prsc; in fd3_sampler_view_create()
232 A3XX_TEX_CONST_0_TYPE(tex_type(prsc->target)) | in fd3_sampler_view_create()
237 if (prsc->target == PIPE_BUFFER || util_format_is_pure_integer(cso->format)) in fd3_sampler_view_create()
242 if (prsc->target == PIPE_BUFFER) { in fd3_sampler_view_create()
257 A3XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd3_sampler_view_create()
258 A3XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd3_sampler_view_create()
263 switch (prsc->target) { in fd3_sampler_view_create()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_texture.c127 fd2_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd2_sampler_view_create() argument
131 struct fd_resource *rsc = fd_resource(prsc); in fd2_sampler_view_create()
137 pipe_reference(NULL, &prsc->reference); in fd2_sampler_view_create()
138 so->base.texture = prsc; in fd2_sampler_view_create()
146 A2XX_SQ_TEX_2_HEIGHT(prsc->height0 - 1) | in fd2_sampler_view_create()
147 A2XX_SQ_TEX_2_WIDTH(prsc->width0 - 1); in fd2_sampler_view_create()
Dfd2_context.c62 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen, in create_solid_vertexbuf() local
64 pipe_buffer_write(pctx, prsc, 0, in create_solid_vertexbuf()
66 return prsc; in create_solid_vertexbuf()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_texture.c222 fd4_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd4_sampler_view_create() argument
226 struct fd_resource *rsc = fd_resource(prsc); in fd4_sampler_view_create()
240 pipe_reference(NULL, &prsc->reference); in fd4_sampler_view_create()
241 so->base.texture = prsc; in fd4_sampler_view_create()
277 A4XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) | in fd4_sampler_view_create()
278 A4XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl)); in fd4_sampler_view_create()
314 A4XX_TEX_CONST_3_DEPTH(u_minify(prsc->depth0, lvl)) | in fd4_sampler_view_create()

123