Home
last modified time | relevance | path

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

123

/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.h47 struct fd_resource { struct
60 struct fd_resource *stencil; argument
115 static inline struct fd_resource * argument
116 fd_resource(struct pipe_resource *ptex) in fd_resource() function
118 return (struct fd_resource *)ptex; in fd_resource()
121 static inline const struct fd_resource *
124 return (const struct fd_resource *)ptex; in fd_resource_const()
134 pending(struct fd_resource *rsc, bool write) in pending()
151 fd_resource_busy(struct fd_resource *rsc, unsigned op) in fd_resource_busy()
157 fd_resource_lock(struct fd_resource *rsc) in fd_resource_lock()
[all …]
Dfreedreno_resource.c70 rebind_resource_in_ctx(struct fd_context *ctx, struct fd_resource *rsc) in rebind_resource_in_ctx()
154 rebind_resource(struct fd_resource *rsc) in rebind_resource()
170 fd_resource_set_bo(struct fd_resource *rsc, struct fd_bo *bo) in fd_resource_set_bo()
179 realloc_bo(struct fd_resource *rsc, uint32_t size) in realloc_bo()
230 flush_resource(struct fd_context *ctx, struct fd_resource *rsc, unsigned usage);
239 fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc, in fd_try_shadow_resource()
310 struct fd_resource *shadow = fd_resource(pshadow); in fd_try_shadow_resource()
414 fd_resource_uncompress(struct fd_context *ctx, struct fd_resource *rsc) in fd_resource_uncompress()
427 fd_resource_dump(struct fd_resource *rsc, const char *name) in fd_resource_dump()
434 static struct fd_resource *
[all …]
Dfreedreno_query_acc.c52 struct fd_resource *rsc; in realloc_query_bo()
61 rsc = fd_resource(aq->prsc); in realloc_query_bo()
91 fd_batch_resource_write(batch, fd_resource(aq->prsc)); in fd_acc_query_resume()
138 struct fd_resource *rsc = fd_resource(aq->prsc); in fd_acc_get_query_result()
Dfreedreno_batch_cache.h32 struct fd_resource;
72 void fd_bc_invalidate_resource(struct fd_resource *rsc, bool destroy);
Dfreedreno_batch.c236 struct fd_resource *rsc = (struct fd_resource *)entry->key; in batch_reset_resources_locked()
407 flush_write_batch(struct fd_resource *rsc) in flush_write_batch()
421 fd_batch_add_resource(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_add_resource()
436 fd_batch_resource_write(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_resource_write()
480 fd_batch_resource_read_slowpath(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_resource_read_slowpath()
Dfreedreno_batch.h43 struct fd_resource;
269 void fd_batch_resource_write(struct fd_batch *batch, struct fd_resource *rsc);
270 void fd_batch_resource_read_slowpath(struct fd_batch *batch, struct fd_resource *rsc);
Dfreedreno_query_hw.c200 struct fd_resource *rsc = fd_resource(period->end->prsc); in fd_hw_get_query_result()
235 struct fd_resource *rsc = fd_resource(start->prsc); in fd_hw_get_query_result()
376 OUT_RELOC(ring, fd_resource(batch->query_buf)->bo, offset, 0, 0); in fd_hw_query_prepare_tile()
Dfreedreno_batch_cache.c276 struct fd_resource *rsc = fd_resource(key->surf[idx].texture); in fd_bc_invalidate_batch()
289 fd_bc_invalidate_resource(struct fd_resource *rsc, bool destroy) in fd_bc_invalidate_resource()
446 struct fd_resource *rsc = fd_resource(key->surf[idx].texture); in batch_from_key()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_resource.c40 ok_ubwc_format(struct fd_resource *rsc, enum pipe_format pfmt) in ok_ubwc_format()
104 fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc, in fd6_validate_format()
117 setup_lrz(struct fd_resource *rsc) in setup_lrz()
146 fd6_setup_slices(struct fd_resource *rsc) in fd6_setup_slices()
166 fill_ubwc_buffer_sizes(struct fd_resource *rsc) in fill_ubwc_buffer_sizes()
197 fd6_layout_resource_for_modifier(struct fd_resource *rsc, uint64_t modifier) in fd6_layout_resource_for_modifier()
Dfd6_image.c61 struct fd_resource *rsc = fd_resource(prsc); in translate_image()
138 struct fd_resource *rsc = fd_resource(prsc); in translate_buf()
170 struct fd_resource *rsc = fd_resource(img->prsc); in emit_image_tex()
246 struct fd_resource *rsc = fd_resource(img->prsc); in emit_image_ssbo()
337 fd6_validate_format(ctx, fd_resource(buf->resource), buf->format); in fd6_set_shader_images()
Dfd6_blitter.c170 return fd_resource_ubwc_enabled(fd_resource(prsc), level); in is_ubwc()
315 struct fd_resource *src, *dst; in emit_blit_buffer()
323 src = fd_resource(info->src.resource); in emit_blit_buffer()
324 dst = fd_resource(info->dst.resource); in emit_blit_buffer()
437 fd6_clear_ubwc(struct fd_batch *batch, struct fd_resource *rsc) in fd6_clear_ubwc()
541 struct fd_resource *dst = fd_resource(prsc); in emit_blit_dst()
578 struct fd_resource *src = fd_resource(info->src.resource); in emit_blit_src()
633 struct fd_resource *dst; in emit_blit_texture()
642 dst = fd_resource(info->dst.resource); in emit_blit_texture()
806 fd_batch_resource_read(batch, fd_resource(info->src.resource)); in handle_rgba_blit()
[all …]
Dfd6_resource.h33 void fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc,
35 void fd6_emit_flag_reference(struct fd_ringbuffer *ring, struct fd_resource *rsc,
Dfd6_gmem.c57 fd6_emit_flag_reference(struct fd_ringbuffer *ring, struct fd_resource *rsc, in fd6_emit_flag_reference()
86 struct fd_resource *rsc = NULL; in emit_mrt()
99 rsc = fd_resource(psurf->texture); in emit_mrt()
173 struct fd_resource *rsc = fd_resource(zsbuf->texture); in emit_zs()
286 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in update_render_cntl()
295 struct fd_resource *rsc = fd_resource(psurf->texture); in update_render_cntl()
862 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_blit()
1005 has_depth && fd_resource(pfb->zsbuf->texture)->stencil; in emit_clears()
1101 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in emit_restore_blits()
1163 if (!fd_resource(psurf->texture)->valid) in emit_resolve_blit()
[all …]
Dfd6_draw.c52 struct fd_resource *ind = fd_resource(info->indirect->buffer); in draw_emit_indirect()
61 fd_resource(idx)->bo, index_offset), in draw_emit_indirect()
93 fd_resource(idx_buffer)->bo, index_offset), in draw_emit()
343 fd6_clear_lrz(struct fd_batch *batch, struct fd_resource *zsbuf, double depth) in fd6_clear_lrz()
503 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd6_clear()
Dfd6_texture.c222 struct fd_resource *rsc = fd_resource(prsc); in fd6_sampler_view_create()
274 struct fd_resource *next = fd_resource(rsc->base.next); in fd6_sampler_view_create()
420 key.view[i].rsc_seqno = fd_resource(view->base.texture)->seqno; in fd6_texture_state()
473 fd6_rebind_resource(struct fd_context *ctx, struct fd_resource *rsc) in fd6_rebind_resource()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_blitter.c101 if ((fd_resource(info->dst.resource)->layout.tile_mode || in can_do_blit()
102 fd_resource(info->src.resource)->layout.tile_mode) && in can_do_blit()
195 struct fd_resource *src, *dst; in emit_blit_buffer()
198 src = fd_resource(info->src.resource); in emit_blit_buffer()
199 dst = fd_resource(info->dst.resource); in emit_blit_buffer()
310 struct fd_resource *src, *dst; in emit_blit()
319 src = fd_resource(info->src.resource); in emit_blit()
320 dst = fd_resource(info->dst.resource); in emit_blit()
449 assert(fd_resource(info->src.resource)->layout.tile_mode == TILE5_LINEAR); in fd5_blitter_blit()
450 assert(fd_resource(info->dst.resource)->layout.tile_mode == TILE5_LINEAR); in fd5_blitter_blit()
[all …]
Dfd5_draw.h73 OUT_RELOC(ring, fd_resource(idx_buffer)->bo, idx_offset, 0, 0); in fd5_draw()
95 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_gmem.c56 struct fd_resource *rsc = NULL; in emit_mrt()
73 rsc = fd_resource(psurf->texture); in emit_mrt()
137 struct fd_resource *rsc = fd_resource(zsbuf->texture); in emit_zs()
470 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf()
553 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_mem2gmem()
607 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
658 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_gmem2mem()
Dfd5_resource.c30 setup_lrz(struct fd_resource *rsc) in setup_lrz()
58 fd5_setup_slices(struct fd_resource *rsc) in fd5_setup_slices()
Dfd5_emit.c116 OUT_RELOC(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd5_emit_const_ptrs()
333 OUT_RELOC(ring, fd_resource(fd5_ctx->border_color_buf)->bo, off, 0, 0); in emit_border_color()
391 tile_mode = fd_resource(view->base.texture)->layout.tile_mode; in emit_textures()
399 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
456 struct fd_resource *rsc = fd_resource(buf->buffer); in emit_ssbos()
479 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd5_emit_vertex_bufs()
569 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_state()
729 OUT_RELOC(ring, fd_resource(target->buffer)->bo, 0, 0, 0); in fd5_emit_state()
1125 struct fd_bo *src_bo = fd_resource(src)->bo; in fd5_mem_to_mem()
1126 struct fd_bo *dst_bo = fd_resource(dst)->bo; in fd5_mem_to_mem()
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_draw.h79 OUT_RELOC(ring, fd_resource(idx_buffer)->bo, idx_offset, 0, 0); in fd4_draw()
101 struct fd_resource *ind = fd_resource(info->indirect->buffer); in fd4_draw_emit()
112 OUT_RELOC(ring, fd_resource(idx)->bo, index_offset, 0, 0); in fd4_draw_emit()
Dfd4_emit.c112 OUT_RELOC(ring, fd_resource(prscs[i])->bo, offsets[i], 0, 0); in fd4_emit_const_ptrs()
207 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
235 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
260 OUT_RELOC(ring, fd_resource(fd4_ctx->border_color_buf)->bo, off, 0, 0); in emit_textures()
308 struct fd_resource *rsc = fd_resource(bufs[i]->texture); in fd4_emit_gmem_restore_tex()
418 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd4_emit_vertex_bufs()
928 struct fd_bo *src_bo = fd_resource(src)->bo; in fd4_mem_to_mem()
929 struct fd_bo *dst_bo = fd_resource(dst)->bo; in fd4_mem_to_mem()
Dfd4_gmem.c63 struct fd_resource *rsc = NULL; in emit_mrt()
72 rsc = fd_resource(psurf->texture); in emit_mrt()
151 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
269 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd4_emit_tile_gmem2mem()
349 OUT_RELOC(ring, fd_resource(ctx->blit_texcoord_vbuf)->bo, 0, 0, 0); in fd4_emit_tile_mem2gmem()
703 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd4_emit_tile_prep()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_resource.c29 setup_slices(struct fd_resource *rsc, uint32_t alignment, enum pipe_format format) in setup_slices()
76 fd3_setup_slices(struct fd_resource *rsc) in fd3_setup_slices()
Dfd3_gmem.c57 struct fd_resource *rsc = NULL; in emit_mrt()
71 rsc = fd_resource(psurf->texture); in emit_mrt()
184 OUT_RELOC(ring, fd_resource(ctx->solid_vbuf)->bo, 0x20, 0, -1); /* RB_COPY_DEST_BASE */ in emit_binning_workaround()
317 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
444 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_gmem2mem()
559 OUT_RELOC(ring, fd_resource(ctx->blit_texcoord_vbuf)->bo, 0, 0, 0); in fd3_emit_tile_mem2gmem()
729 struct fd_resource *rsc = fd_resource(psurf->texture); in fd3_emit_sysmem_prep()
996 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_renderprep()

123