Home
last modified time | relevance | path

Searched refs:prsc (Results 26 - 50 of 86) sorted by relevance

1234

/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_query_acc.c42 pipe_resource_reference(&aq->prsc, NULL);
55 pipe_resource_reference(&aq->prsc, NULL); in realloc_query_bo()
57 aq->prsc = in realloc_query_bo()
61 rsc = fd_resource(aq->prsc); in realloc_query_bo()
93 fd_batch_resource_write(batch, fd_resource(aq->prsc));
144 struct fd_resource *rsc = fd_resource(aq->prsc); in fd_acc_get_query_result()
H A Dfreedreno_draw.c46 resource_read(struct fd_batch *batch, struct pipe_resource *prsc) assert_dt
48 if (!prsc)
50 fd_batch_resource_read(batch, fd_resource(prsc));
54 resource_written(struct fd_batch *batch, struct pipe_resource *prsc) assert_dt
56 if (!prsc)
58 fd_batch_resource_write(batch, fd_resource(prsc));
232 resource_written(batch, aq->prsc);
427 resource_written(batch, aq->prsc);
H A Dfreedreno_query_hw.c209 assert(start->prsc == end->prsc); in fd_hw_get_query_result()
212 struct fd_resource *rsc = fd_resource(start->prsc); in fd_hw_get_query_result()
301 samp->prsc = NULL; in fd_hw_sample_init()
322 pipe_resource_reference(&samp->prsc, batch->query_buf); in fd_hw_sample_init()
330 pipe_resource_reference(&samp->prsc, NULL); in __fd_hw_sample_destroy()
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3d_resource.h137 v3d_resource(struct pipe_resource *prsc) in v3d_resource() argument
139 return (struct v3d_resource *)prsc; in v3d_resource()
160 uint32_t v3d_layer_offset(struct pipe_resource *prsc, uint32_t level,
H A Dv3d_context.c102 v3d_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in v3d_invalidate_resource() argument
105 struct v3d_resource *rsc = v3d_resource(prsc); in v3d_invalidate_resource()
110 prsc); in v3d_invalidate_resource()
115 if (job->key.zsbuf && job->key.zsbuf->texture == prsc) in v3d_invalidate_resource()
H A Dv3d_context.h730 void v3d_job_add_write_resource(struct v3d_job *job, struct pipe_resource *prsc);
731 void v3d_job_add_tf_write_resource(struct v3d_job *job, struct pipe_resource *prsc);
735 struct pipe_resource *prsc,
739 struct pipe_resource *prsc,
772 struct pipe_resource *prsc,
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_query_acc_occlusion.c70 struct etna_resource *rsc = etna_resource(aq->prsc); in occlusion_resume()
84 resource_written(ctx, aq->prsc); in occlusion_resume()
92 resource_written(ctx, aq->prsc); in occlusion_suspend()
H A Detnaviv_etc2.c35 etna_etc2_needs_patching(const struct pipe_resource *prsc) in etna_etc2_needs_patching() argument
37 const struct etna_screen *screen = etna_screen(prsc->screen); in etna_etc2_needs_patching()
39 if (!util_format_is_etc(prsc->format)) in etna_etc2_needs_patching()
45 switch (prsc->format) { in etna_etc2_needs_patching()
H A Detnaviv_clear_blit.c171 etna_flush_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in etna_flush_resource() argument
173 struct etna_resource *rsc = etna_resource(prsc); in etna_flush_resource()
177 etna_copy_resource(pctx, prsc, rsc->render, 0, 0); in etna_flush_resource()
181 etna_copy_resource(pctx, prsc, prsc, 0, 0); in etna_flush_resource()
H A Detnaviv_query_acc_perfmon.c84 .bo = etna_resource(aq->prsc)->bo, in pm_query()
90 resource_written(ctx, aq->prsc); in pm_query()
H A Detnaviv_etc2.h40 etna_etc2_needs_patching(const struct pipe_resource *prsc);
H A Detnaviv_surface.h45 struct pipe_resource *prsc; member
H A Detnaviv_texture.h57 etna_texture_handle_incompatible(struct pipe_context *pctx, struct pipe_resource *prsc);
H A Detnaviv_texture.c217 etna_texture_handle_incompatible(struct pipe_context *pctx, struct pipe_resource *prsc) in etna_texture_handle_incompatible() argument
219 struct etna_resource *res = etna_resource(prsc); in etna_texture_handle_incompatible()
224 struct pipe_resource templat = *prsc; in etna_texture_handle_incompatible()
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_texture.c73 struct pipe_resource *prsc, in lima_texture_desc_set_res()
78 struct lima_resource *lima_res = lima_resource(prsc); in lima_texture_desc_set_res()
80 width = prsc->width0; in lima_texture_desc_set_res()
81 height = prsc->height0; in lima_texture_desc_set_res()
82 depth = prsc->depth0; in lima_texture_desc_set_res()
89 desc->format = lima_format_get_texel(prsc->format); in lima_texture_desc_set_res()
90 desc->swap_r_b = lima_format_get_texel_swap_rb(prsc->format); in lima_texture_desc_set_res()
72 lima_texture_desc_set_res(struct lima_context *ctx, lima_tex_desc *desc, struct pipe_resource *prsc, unsigned first_level, unsigned last_level, unsigned first_layer, unsigned mrt_idx) lima_texture_desc_set_res() argument
H A Dlima_context.c107 lima_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in lima_invalidate_resource() argument
111 struct hash_entry *entry = _mesa_hash_table_search(ctx->write_jobs, prsc); in lima_invalidate_resource()
116 if (job->key.zsbuf && (job->key.zsbuf->texture == prsc)) in lima_invalidate_resource()
119 if (job->key.cbuf && (job->key.cbuf->texture == prsc)) in lima_invalidate_resource()
122 _mesa_hash_table_remove_key(ctx->write_jobs, prsc); in lima_invalidate_resource()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
H A Dfd2_context.c65 struct pipe_resource *prsc = in create_solid_vertexbuf() local
68 pipe_buffer_write(pctx, prsc, 0, sizeof(init_shader_const), in create_solid_vertexbuf()
70 return prsc; in create_solid_vertexbuf()
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_context.c99 vc4_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc) in vc4_invalidate_resource() argument
102 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_invalidate_resource()
107 prsc); in vc4_invalidate_resource()
112 if (job->key.zsbuf && job->key.zsbuf->texture == prsc) in vc4_invalidate_resource()
H A Dvc4_draw.c396 struct pipe_resource *prsc; in vc4_draw_vbo() local
398 prsc = vc4_get_shadow_index_buffer(pctx, info, in vc4_draw_vbo()
405 prsc = NULL; in vc4_draw_vbo()
409 &offset, &prsc); in vc4_draw_vbo()
411 prsc = info->index.resource; in vc4_draw_vbo()
414 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_draw_vbo()
450 pipe_resource_reference(&prsc, NULL); in vc4_draw_vbo()
H A Dvc4_resource.h84 vc4_resource(struct pipe_resource *prsc) in vc4_resource() argument
86 return (struct vc4_resource *)prsc; in vc4_resource()
H A Dvc4_job.c100 struct pipe_resource *prsc) in vc4_flush_jobs_writing_resource()
103 prsc); in vc4_flush_jobs_writing_resource()
112 struct pipe_resource *prsc) in vc4_flush_jobs_reading_resource()
114 struct vc4_resource *rsc = vc4_resource(prsc); in vc4_flush_jobs_reading_resource()
116 vc4_flush_jobs_writing_resource(vc4, prsc); in vc4_flush_jobs_reading_resource()
99 vc4_flush_jobs_writing_resource(struct vc4_context *vc4, struct pipe_resource *prsc) vc4_flush_jobs_writing_resource() argument
111 vc4_flush_jobs_reading_resource(struct vc4_context *vc4, struct pipe_resource *prsc) vc4_flush_jobs_reading_resource() argument
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_image.c42 struct pipe_resource *prsc, in fd6_emit_single_plane_descriptor()
46 if (!prsc) { in fd6_emit_single_plane_descriptor()
52 struct fd_resource *rsc = fd_resource(prsc); in fd6_emit_single_plane_descriptor()
41 fd6_emit_single_plane_descriptor(struct fd_ringbuffer *ring, struct pipe_resource *prsc, uint32_t *descriptor) fd6_emit_single_plane_descriptor() argument
H A Dfd6_texture.c159 fd6_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, in fd6_sampler_view_create() argument
168 pipe_reference(NULL, &prsc->reference); in fd6_sampler_view_create()
169 so->base.texture = prsc; in fd6_sampler_view_create()
212 struct pipe_resource *prsc = cso->texture; in fd6_sampler_view_update() local
213 struct fd_resource *rsc = fd_resource(prsc); in fd6_sampler_view_update()
/third_party/mesa3d/src/gallium/drivers/panfrost/
H A Dpan_resource.c65 struct pipe_resource *prsc; in panfrost_resource_from_handle() local
73 prsc = &rsc->base; in panfrost_resource_from_handle()
75 *prsc = *templat; in panfrost_resource_from_handle()
77 pipe_reference_init(&prsc->reference, 1); in panfrost_resource_from_handle()
78 prsc->screen = pscreen; in panfrost_resource_from_handle()
96 .width = prsc->width0, in panfrost_resource_from_handle()
97 .height = prsc->height0, in panfrost_resource_from_handle()
98 .depth = prsc->depth0, in panfrost_resource_from_handle()
99 .array_size = prsc->array_size, in panfrost_resource_from_handle()
100 .nr_samples = MAX2(prsc in panfrost_resource_from_handle()
186 panfrost_resource_get_param(struct pipe_screen *pscreen, struct pipe_context *pctx, struct pipe_resource *prsc, unsigned plane, unsigned layer, unsigned level, enum pipe_resource_param param, unsigned usage, uint64_t *value) panfrost_resource_get_param() argument
222 panfrost_flush_resource(struct pipe_context *pctx, struct pipe_resource *prsc) panfrost_flush_resource() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_compute.c140 struct pipe_resource *prsc = ctx->global_bindings.buf[i]; variable
141 OUT_RELOC(ring, fd_resource(prsc)->bo, 0, 0, 0);

Completed in 18 milliseconds

1234