Home
last modified time | relevance | path

Searched refs:etna_resource (Results 1 – 19 of 19) sorted by relevance

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.h73 struct etna_resource { struct
105 etna_resource_newer(struct etna_resource *a, struct etna_resource *b) in etna_resource_newer() argument
112 etna_resource_older(struct etna_resource *a, struct etna_resource *b) in etna_resource_older()
119 etna_resource_has_valid_ts(struct etna_resource *res);
123 etna_resource_needs_flush(struct etna_resource *res) in etna_resource_needs_flush()
148 static inline struct etna_resource *
149 etna_resource(struct pipe_resource *p) in etna_resource() function
151 return (struct etna_resource *)p; in etna_resource()
176 struct etna_resource *prsc);
Detnaviv_texture.c92 struct etna_resource *rsc = etna_resource(pview->texture); in etna_configure_sampler_ts()
134 struct etna_resource *rsc = etna_resource(view->texture); in etna_can_use_sampler_ts()
148 struct etna_resource *base = etna_resource(view->texture); in etna_update_sampler_source()
149 struct etna_resource *to = base, *from = base; in etna_update_sampler_source()
153 if (base->render && etna_resource_newer(etna_resource(base->render), base)) in etna_update_sampler_source()
154 from = etna_resource(base->render); in etna_update_sampler_source()
157 to = etna_resource(base->texture); in etna_update_sampler_source()
187 etna_resource_sampler_compatible(struct etna_resource *res) in etna_resource_sampler_compatible()
216 struct etna_resource *
219 struct etna_resource *res = etna_resource(prsc); in etna_texture_handle_incompatible()
[all …]
Detnaviv_transfer.c64 struct etna_resource *rsc = etna_resource(prsc); in etna_patch_data()
90 struct etna_resource *rsc = etna_resource(prsc); in etna_unpatch_data()
106 struct etna_resource *rsc = etna_resource(ptrans->resource); in etna_transfer_unmap()
116 if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture))) in etna_transfer_unmap()
117 rsc = etna_resource(rsc->texture); /* switch to using the texture resource */ in etna_transfer_unmap()
124 etna_bo_cpu_fini(etna_resource(trans->rsc)->bo); in etna_transfer_unmap()
199 struct etna_resource *rsc = etna_resource(prsc); in etna_transfer_map()
249 if (rsc->render && etna_resource_newer(etna_resource(rsc->render), rsc) && in etna_transfer_map()
250 (!rsc->texture || etna_resource_newer(etna_resource(rsc->render), in etna_transfer_map()
251 etna_resource(rsc->texture)))) { in etna_transfer_map()
[all …]
Detnaviv_resource.c84 struct etna_resource *rsc) in etna_screen_resource_alloc_ts()
162 setup_miptree(struct etna_resource *rsc, unsigned paddingX, unsigned paddingY, in setup_miptree()
210 struct etna_resource *rsc; in etna_resource_alloc()
259 rsc = CALLOC_STRUCT(etna_resource); in etna_resource_alloc()
450 etna_resource(prsc)->seqno++; in etna_resource_changed()
456 struct etna_resource *rsc = etna_resource(prsc); in etna_resource_destroy()
491 struct etna_resource *rsc; in etna_resource_from_handle()
501 rsc = CALLOC_STRUCT(etna_resource); in etna_resource_from_handle()
579 struct etna_resource *rsc = etna_resource(prsc); in etna_resource_get_handle()
609 struct etna_resource *rsc; in etna_resource_used()
[all …]
Detnaviv_surface.c42 static struct etna_resource *
47 struct etna_resource *res = etna_resource(prsc); in etna_render_handle_incompatible()
73 return etna_resource(res->render); in etna_render_handle_incompatible()
82 struct etna_resource *rsc = etna_render_handle_incompatible(pctx, prsc); in etna_create_surface()
163 struct etna_bo *ts_bo = etna_resource(surf->base.texture)->ts_bo; in etna_create_surface()
Detnaviv_clear_blit.c180 struct etna_resource *rsc = etna_resource(prsc); in etna_flush_resource()
183 if (etna_resource_older(rsc, etna_resource(rsc->render))) { in etna_flush_resource()
185 rsc->seqno = etna_resource(rsc->render)->seqno; in etna_flush_resource()
197 struct etna_resource *src_priv = etna_resource(src); in etna_copy_resource()
198 struct etna_resource *dst_priv = etna_resource(dst); in etna_copy_resource()
Detnaviv_query_acc.c62 struct etna_resource *rsc; in realloc_query_bo()
72 rsc = etna_resource(aq->prsc); in realloc_query_bo()
116 struct etna_resource *rsc = etna_resource(aq->prsc); in etna_acc_get_query_result()
Detnaviv_context.c105 struct etna_resource *rsc = (struct etna_resource *)entry->key; in etna_context_destroy()
122 struct etna_resource *rsc = (struct etna_resource *)entry->key; in etna_context_destroy()
275 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo; in etna_draw_vbo()
390 etna_resource(ctx->framebuffer_s.cbufs[0]->texture)->seqno++; in etna_draw_vbo()
392 etna_resource(ctx->framebuffer_s.zsbuf->texture)->seqno++; in etna_draw_vbo()
492 struct etna_resource *rsc = (struct etna_resource *)entry->key; in etna_flush()
510 struct etna_resource *rsc = (struct etna_resource *)entry->key; in etna_flush()
Detnaviv_state.c113 etna_update_render_resource(struct pipe_context *pctx, struct etna_resource *base) in etna_update_render_resource()
115 struct etna_resource *to = base, *from = base; in etna_update_render_resource()
117 if (base->texture && etna_resource_newer(etna_resource(base->texture), base)) in etna_update_render_resource()
118 from = etna_resource(base->texture); in etna_update_render_resource()
121 to = etna_resource(base->render); in etna_update_render_resource()
146 struct etna_resource *res = etna_resource(cbuf->base.texture); in etna_set_framebuffer_state()
151 etna_update_render_resource(pctx, etna_resource(cbuf->prsc)); in etna_set_framebuffer_state()
239 struct etna_resource *res = etna_resource(zsbuf->base.texture); in etna_set_framebuffer_state()
241 etna_update_render_resource(pctx, etna_resource(zsbuf->prsc)); in etna_set_framebuffer_state()
445 cs->FE_VERTEX_STREAM_BASE_ADDR.bo = etna_resource(vbi->buffer.resource)->bo; in etna_set_vertex_buffers()
Detnaviv_texture_desc.c142 struct etna_resource *res = etna_texture_handle_incompatible(pctx, prsc); in etna_create_sampler_view_desc()
241 struct etna_resource *res = etna_resource(sv->base.texture); in etna_sampler_view_update_descriptor()
243 res = etna_resource(res->texture); in etna_sampler_view_update_descriptor()
270 struct etna_resource *res = etna_resource(sv->base.texture); in etna_emit_texture_desc()
Detnaviv_blt.c220 struct etna_resource *res = etna_resource(surf->base.texture); in etna_blit_clear_color_blt()
261 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_color_blt()
299 struct etna_resource *res = etna_resource(surf->base.texture); in etna_blit_clear_zs_blt()
338 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_zs_blt()
375 struct etna_resource *src = etna_resource(blit_info->src.resource); in etna_try_blt_blit()
376 struct etna_resource *dst = etna_resource(blit_info->dst.resource); in etna_try_blt_blit()
Detnaviv_query_acc_occlusion.c69 struct etna_resource *rsc = etna_resource(aq->prsc); in occlusion_resume()
Detnaviv_rs.c273 struct etna_resource *dst = etna_resource(surf->base.texture); in etna_rs_gen_clear_surface()
343 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_color_rs()
406 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_zs_rs()
464 etna_manual_blit(struct etna_resource *dst, struct etna_resource_level *dst_lev, in etna_manual_blit()
465 unsigned int dst_offset, struct etna_resource *src, in etna_manual_blit()
587 struct etna_resource *src = etna_resource(blit_info->src.resource); in etna_try_rs_blit()
588 struct etna_resource *dst = etna_resource(blit_info->dst.resource); in etna_try_rs_blit()
Detnaviv_texture.h53 struct etna_resource *
Detnaviv_query_acc_perfmon.c83 .bo = etna_resource(aq->prsc)->bo, in pm_query()
Detnaviv_uniforms.c103 .bo = etna_resource(cb[idx].buffer)->bo, in etna_uniforms_write()
Detnaviv_texture_state.c168 struct etna_resource *res = etna_texture_handle_incompatible(pctx, prsc); in etna_create_sampler_view_state()
/external/mesa3d/docs/relnotes/
D17.1.5.rst50 - etnaviv: don't dereference etna_resource pointer if allocation fails
D19.0.0.rst449 - etnaviv: extend etna_resource with an addressing mode