Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_resource.h60 struct etna_resource { struct
94 etna_resource_newer(struct etna_resource *a, struct etna_resource *b) in etna_resource_newer() argument
101 etna_resource_older(struct etna_resource *a, struct etna_resource *b) in etna_resource_older()
108 etna_resource_has_valid_ts(struct etna_resource *res);
112 etna_resource_needs_flush(struct etna_resource *res) in etna_resource_needs_flush()
126 static inline struct etna_resource *
127 etna_resource(struct pipe_resource *p) in etna_resource() function
129 return (struct etna_resource *)p; in etna_resource()
154 struct etna_resource *prsc);
Detnaviv_texture.c82 struct etna_resource *rsc = etna_resource(pview->texture); in etna_configure_sampler_ts()
120 struct etna_resource *rsc = etna_resource(view->texture); in etna_can_use_sampler_ts()
133 struct etna_resource *base = etna_resource(view->texture); in etna_update_sampler_source()
134 struct etna_resource *to = base, *from = base; in etna_update_sampler_source()
138 if (base->external && etna_resource_newer(etna_resource(base->external), base)) in etna_update_sampler_source()
139 from = etna_resource(base->external); in etna_update_sampler_source()
142 to = etna_resource(base->texture); in etna_update_sampler_source()
165 etna_resource_sampler_compatible(struct etna_resource *res) in etna_resource_sampler_compatible()
192 struct etna_resource *
195 struct etna_resource *res = etna_resource(prsc); in etna_texture_handle_incompatible()
[all …]
Detnaviv_resource.c87 struct etna_resource *rsc) in etna_screen_resource_alloc_ts()
147 setup_miptree(struct etna_resource *rsc, unsigned paddingX, unsigned paddingY, in setup_miptree()
185 struct etna_resource *rsc; in etna_resource_alloc()
255 rsc = etna_resource(pscreen->resource_from_handle(pscreen, templat, in etna_resource_alloc()
267 rsc = CALLOC_STRUCT(etna_resource); in etna_resource_alloc()
447 struct etna_resource *res = etna_resource(prsc); in etna_resource_changed()
450 etna_resource(res->external)->seqno++; in etna_resource_changed()
458 struct etna_resource *rsc = etna_resource(prsc); in etna_resource_destroy()
483 struct etna_resource *rsc; in etna_resource_from_handle()
494 rsc = CALLOC_STRUCT(etna_resource); in etna_resource_from_handle()
[all …]
Detnaviv_transfer.c65 struct etna_resource *rsc = etna_resource(ptrans->resource); in etna_transfer_unmap()
75 if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture))) in etna_transfer_unmap()
76 rsc = etna_resource(rsc->texture); /* switch to using the texture resource */ in etna_transfer_unmap()
83 etna_bo_cpu_fini(etna_resource(trans->rsc)->bo); in etna_transfer_unmap()
144 struct etna_resource *rsc = etna_resource(prsc); in etna_transfer_map()
178 if (rsc->texture && !etna_resource_newer(rsc, etna_resource(rsc->texture))) { in etna_transfer_map()
182 rsc = etna_resource(rsc->texture); in etna_transfer_map()
245 rsc = etna_resource(trans->rsc); in etna_transfer_map()
313 if ((trans->rsc && (etna_resource(trans->rsc)->status & ETNA_PENDING_WRITE)) || in etna_transfer_map()
Detnaviv_clear_blit.c142 struct etna_resource *rsc = etna_resource(prsc); in etna_flush_resource()
145 if (etna_resource_older(etna_resource(rsc->external), rsc)) { in etna_flush_resource()
147 etna_resource(rsc->external)->seqno = rsc->seqno; in etna_flush_resource()
159 struct etna_resource *src_priv = etna_resource(src); in etna_copy_resource()
160 struct etna_resource *dst_priv = etna_resource(dst); in etna_copy_resource()
Detnaviv_query_hw.c48 struct etna_resource *rsc = etna_resource(hq->prsc); in occlusion_start()
122 struct etna_resource *rsc; 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()
Detnaviv_state.c104 struct etna_resource *res = etna_resource(pres); in etna_update_render_resource()
106 if (res->texture && etna_resource_older(res, etna_resource(res->texture))) { in etna_update_render_resource()
109 res->seqno = etna_resource(res->texture)->seqno; in etna_update_render_resource()
127 struct etna_resource *res = etna_resource(cbuf->base.texture); in etna_set_framebuffer_state()
200 struct etna_resource *res = etna_resource(zsbuf->base.texture); in etna_set_framebuffer_state()
423 cs->FE_VERTEX_STREAM_BASE_ADDR.bo = etna_resource(vbi->buffer.resource)->bo; in etna_set_vertex_buffers()
Detnaviv_blt.c207 struct etna_resource *res = etna_resource(surf->base.texture); in etna_blit_clear_color_blt()
249 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_color_blt()
283 struct etna_resource *res = etna_resource(surf->base.texture); in etna_blit_clear_zs_blt()
325 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_zs_blt()
361 struct etna_resource *src = etna_resource(blit_info->src.resource); in etna_try_blt_blit()
362 struct etna_resource *dst = etna_resource(blit_info->dst.resource); in etna_try_blt_blit()
Detnaviv_context.c194 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo; in etna_draw_vbo()
215 struct etna_resource *res = etna_resource(cbuf->base.texture); in etna_draw_vbo()
300 etna_resource(ctx->framebuffer.cbuf->texture)->seqno++; in etna_draw_vbo()
302 etna_resource(ctx->framebuffer.zsbuf->texture)->seqno++; in etna_draw_vbo()
332 struct etna_resource *rsc, *rsc_tmp; in etna_cmd_stream_reset_notify()
Detnaviv_surface.c45 struct etna_resource *rsc = etna_resource(prsc); in etna_create_surface()
123 struct etna_bo *ts_bo = etna_resource(surf->base.texture)->ts_bo; in etna_create_surface()
Detnaviv_rs.c258 struct etna_resource *dst = etna_resource(surf->base.texture); in etna_rs_gen_clear_surface()
317 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_color_rs()
380 etna_resource(surf->base.texture)->seqno++; in etna_blit_clear_zs_rs()
436 etna_manual_blit(struct etna_resource *dst, struct etna_resource_level *dst_lev, in etna_manual_blit()
437 unsigned int dst_offset, struct etna_resource *src, in etna_manual_blit()
535 struct etna_resource *src = etna_resource(blit_info->src.resource); in etna_try_rs_blit()
536 struct etna_resource *dst = etna_resource(blit_info->dst.resource); in etna_try_rs_blit()
Detnaviv_texture.h51 struct etna_resource *
Detnaviv_texture_state.c98 struct etna_resource *res = etna_texture_handle_incompatible(pctx, prsc); in etna_create_sampler_view_state()