Home
last modified time | relevance | path

Searched refs:fd_resource (Results 1 – 25 of 36) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.h66 struct fd_resource { struct
80 struct fd_resource *stencil; argument
113 static inline struct fd_resource * argument
114 fd_resource(struct pipe_resource *ptex) in fd_resource() function
116 return (struct fd_resource *)ptex; in fd_resource()
120 pending(struct fd_resource *rsc, bool write) in pending()
149 fd_resource_slice(struct fd_resource *rsc, unsigned level) in fd_resource_slice()
157 fd_resource_offset(struct fd_resource *rsc, unsigned level, unsigned layer) in fd_resource_offset()
187 uint32_t fd_setup_slices(struct fd_resource *rsc);
Dfreedreno_resource.c99 realloc_bo(struct fd_resource *rsc, uint32_t size) in realloc_bo()
136 fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc, in fd_try_shadow_resource()
189 struct fd_resource *shadow = fd_resource(pshadow); in fd_try_shadow_resource()
281 static struct fd_resource *
282 fd_alloc_staging(struct fd_context *ctx, struct fd_resource *rsc, in fd_alloc_staging()
300 return fd_resource(pstaging); in fd_alloc_staging()
344 fd_resource_layer_offset(struct fd_resource *rsc, in fd_resource_layer_offset()
358 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_flush_region()
367 flush_resource(struct fd_context *ctx, struct fd_resource *rsc, unsigned usage) in flush_resource()
408 flush_resource(fd_context(pctx), fd_resource(prsc), PIPE_TRANSFER_READ); in fd_flush_resource()
[all …]
Dfreedreno_query_acc.c58 struct fd_resource *rsc; 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_batch_cache.h32 struct fd_resource;
70 void fd_bc_invalidate_resource(struct fd_resource *rsc, bool destroy);
Dfreedreno_batch_cache.c217 struct fd_resource *rsc = fd_resource(key->surf[idx].texture); in fd_bc_invalidate_batch()
230 fd_bc_invalidate_resource(struct fd_resource *rsc, bool destroy) in fd_bc_invalidate_resource()
373 struct fd_resource *rsc = fd_resource(key->surf[idx].texture); in batch_from_key()
Dfreedreno_query_hw.c204 struct fd_resource *rsc = fd_resource(period->end->prsc); in fd_hw_get_query_result()
239 struct fd_resource *rsc = fd_resource(start->prsc); in fd_hw_get_query_result()
379 OUT_RELOCW(ring, fd_resource(batch->query_buf)->bo, offset, 0, 0); in fd_hw_query_prepare_tile()
Dfreedreno_draw.c50 fd_batch_resource_used(batch, fd_resource(prsc), false); in resource_read()
58 fd_batch_resource_used(batch, fd_resource(prsc), true); in resource_written()
140 if (fd_resource(pfb->zsbuf->texture)->valid) in fd_draw_vbo()
148 if (fd_resource(pfb->zsbuf->texture)->valid) in fd_draw_vbo()
168 if (fd_resource(surf)->valid) in fd_draw_vbo()
Dfreedreno_batch.h37 struct fd_resource;
213 void fd_batch_resource_used(struct fd_batch *batch, struct fd_resource *rsc, bool write);
Dfreedreno_batch.c182 struct fd_resource *rsc = (struct fd_resource *)entry->key; in batch_reset_resources_locked()
387 fd_batch_resource_used(struct fd_batch *batch, struct fd_resource *rsc, bool write) in fd_batch_resource_used()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_blitter.c101 if ((fd_resource(info->dst.resource)->tile_mode || in can_do_blit()
102 fd_resource(info->src.resource)->tile_mode) && in can_do_blit()
211 struct fd_resource *src, *dst; in emit_blit_buffer()
214 src = fd_resource(info->src.resource); in emit_blit_buffer()
215 dst = fd_resource(info->dst.resource); in emit_blit_buffer()
326 struct fd_resource *src, *dst; in emit_blit()
335 src = fd_resource(info->src.resource); in emit_blit()
336 dst = fd_resource(info->dst.resource); in emit_blit()
471 assert(fd_resource(info->src.resource)->tile_mode == TILE5_LINEAR); in fd5_blitter_blit()
472 assert(fd_resource(info->dst.resource)->tile_mode == TILE5_LINEAR); in fd5_blitter_blit()
[all …]
Dfd5_draw.h72 OUT_RELOC(ring, fd_resource(idx_buffer)->bo, idx_offset, 0, 0); in fd5_draw()
94 struct fd_resource *ind = fd_resource(info->indirect->buffer); in fd5_draw_emit()
107 OUT_RELOC(ring, fd_resource(idx)->bo, in fd5_draw_emit()
Dfd5_emit.c77 struct fd_bo *bo = fd_resource(prsc)->bo; in fd5_emit_const()
112 OUT_RELOCW(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd5_emit_const_bo()
114 OUT_RELOC(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd5_emit_const_bo()
286 OUT_RELOC(ring, fd_resource(fd5_ctx->border_color_buf)->bo, off, 0, 0); in emit_border_color()
344 tile_mode = fd_resource(view->base.texture)->tile_mode; in emit_textures()
352 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
427 struct fd_resource *rsc = fd_resource(buf->buffer); in emit_ssbos()
450 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd5_emit_vertex_bufs()
533 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_state()
690 OUT_RELOCW(ring, fd_resource(target->buffer)->bo, 0, 0, 0); in fd5_emit_state()
[all …]
Dfd5_gmem.c56 struct fd_resource *rsc = NULL; in emit_mrt()
73 rsc = fd_resource(psurf->texture); in emit_mrt()
138 struct fd_resource *rsc = fd_resource(zsbuf->texture); in emit_zs()
474 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf()
558 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_mem2gmem()
610 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
654 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_gmem2mem()
Dfd5_resource.c47 setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format format) in setup_slices()
132 fd5_setup_slices(struct fd_resource *rsc) in fd5_setup_slices()
Dfd5_resource.h32 uint32_t fd5_setup_slices(struct fd_resource *rsc);
Dfd5_compute.c192 struct fd_resource *rsc = fd_resource(info->indirect); in fd5_launch_grid()
Dfd5_draw.c185 fd5_clear_lrz(struct fd_batch *batch, struct fd_resource *zsbuf, double depth) in fd5_clear_lrz()
373 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd5_clear()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_draw.h81 OUT_RELOC(ring, fd_resource(idx_buffer)->bo, idx_offset, 0, 0); in fd4_draw()
116 struct fd_resource *ind = fd_resource(info->indirect->buffer); in fd4_draw_emit()
127 OUT_RELOC(ring, fd_resource(idx)->bo, index_offset, 0, 0); in fd4_draw_emit()
Dfd4_emit.c77 struct fd_bo *bo = fd_resource(prsc)->bo; in fd4_emit_const()
110 OUT_RELOCW(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd4_emit_const_bo()
112 OUT_RELOC(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd4_emit_const_bo()
192 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
220 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
245 OUT_RELOC(ring, fd_resource(fd4_ctx->border_color_buf)->bo, off, 0, 0); in emit_textures()
293 struct fd_resource *rsc = fd_resource(bufs[i]->texture); in fd4_emit_gmem_restore_tex()
408 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd4_emit_vertex_bufs()
920 struct fd_bo *src_bo = fd_resource(src)->bo; in fd4_mem_to_mem()
921 struct fd_bo *dst_bo = fd_resource(dst)->bo; in fd4_mem_to_mem()
Dfd4_gmem.c65 struct fd_resource *rsc = NULL; in emit_mrt()
75 rsc = fd_resource(psurf->texture); in emit_mrt()
155 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
274 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd4_emit_tile_gmem2mem()
357 OUT_RELOCW(ring, fd_resource(ctx->blit_texcoord_vbuf)->bo, 0, 0, 0); in fd4_emit_tile_mem2gmem()
716 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd4_emit_tile_prep()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_emit.c82 struct fd_bo *bo = fd_resource(prsc)->bo; in fd3_emit_const()
115 OUT_RELOCW(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd3_emit_const_bo()
117 OUT_RELOC(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd3_emit_const_bo()
211 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
246 OUT_RELOC(ring, fd_resource(fd3_ctx->border_color_buf)->bo, off, 0, 0); in emit_textures()
304 struct fd_resource *rsc = fd_resource(psurf[i]->texture); in fd3_emit_gmem_restore_tex()
342 struct fd_resource *rsc = fd_resource(psurf[i]->texture); in fd3_emit_gmem_restore_tex()
404 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd3_emit_vertex_bufs()
Dfd3_gmem.c65 struct fd_resource *rsc = NULL; in emit_mrt()
74 rsc = fd_resource(psurf->texture); in emit_mrt()
190 OUT_RELOCW(ring, fd_resource(ctx->solid_vbuf)->bo, 0x20, 0, -1); /* RB_COPY_DEST_BASE */ in emit_binning_workaround()
323 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
447 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_gmem2mem()
565 OUT_RELOCW(ring, fd_resource(ctx->blit_texcoord_vbuf)->bo, 0, 0, 0); in fd3_emit_tile_mem2gmem()
737 pitch = fd_resource(psurf->texture)->slices[psurf->u.tex.level].pitch; in fd3_emit_sysmem_prep()
1002 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_renderprep()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_gmem.c69 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
187 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf()
248 OUT_RELOC(ring, fd_resource(fd2_ctx->solid_vertexbuf)->bo, 0x60, 0, 0); in fd2_emit_tile_mem2gmem()
Dfd2_emit.c88 struct fd_resource *rsc = fd_resource(cb->buffer); in emit_constants()
143 OUT_RELOC(ring, fd_resource(view->base.texture)->bo, 0, view->fmt, 0); in emit_texture()
178 struct fd_resource *rsc = fd_resource(vbufs[i].prsc); in fd2_emit_vertex_bufs()
Dfd2_texture.c131 struct fd_resource *rsc = fd_resource(prsc); in fd2_sampler_view_create()

12