Home
last modified time | relevance | path

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

123

/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.h117 struct fd_resource { struct
131 struct fd_resource *stencil; argument
177 static inline struct fd_resource * argument
178 fd_resource(struct pipe_resource *ptex) in fd_resource() function
180 return (struct fd_resource *)ptex; in fd_resource()
183 static inline const struct fd_resource *
186 return (const struct fd_resource *)ptex; in fd_resource_const()
196 pending(struct fd_resource *rsc, bool write) in pending()
213 resource_busy(struct fd_resource *rsc, unsigned op) in resource_busy()
218 int __fd_resource_wait(struct fd_context *ctx, struct fd_resource *rsc,
[all …]
Dfreedreno_resource.c71 struct fd_resource *rsc) assert_dt in rebind_resource_in_ctx()
152 rebind_resource(struct fd_resource *rsc) assert_dt in rebind_resource()
168 fd_resource_set_bo(struct fd_resource *rsc, struct fd_bo *bo) in fd_resource_set_bo()
177 __fd_resource_wait(struct fd_context *ctx, struct fd_resource *rsc, unsigned op, in __fd_resource_wait()
194 realloc_bo(struct fd_resource *rsc, uint32_t size) in realloc_bo()
263 struct fd_resource *dst = fd_resource(pdst); in fd_replace_buffer_storage()
264 struct fd_resource *src = fd_resource(psrc); in fd_replace_buffer_storage()
322 struct fd_resource *rsc = fd_resource(prsc); in fd_resource_busy()
333 static void flush_resource(struct fd_context *ctx, struct fd_resource *rsc,
357 fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc, in fd_try_shadow_resource()
[all …]
Dfreedreno_batch_cache.h34 struct fd_resource;
70 void fd_bc_flush_writer(struct fd_context *ctx, struct fd_resource *rsc) assert_dt;
71 void fd_bc_flush_readers(struct fd_context *ctx, struct fd_resource *rsc) assert_dt;
76 void fd_bc_invalidate_resource(struct fd_resource *rsc, bool destroy);
Dfreedreno_blitter.h53 const struct fd_resource *src = fd_resource((blit)->src.resource); \
54 const struct fd_resource *dst = fd_resource((blit)->dst.resource); \
Dfreedreno_query_acc.c52 struct fd_resource *rsc; in realloc_query_bo()
61 rsc = fd_resource(aq->prsc); in realloc_query_bo()
93 fd_batch_resource_write(batch, fd_resource(aq->prsc)); in fd_acc_query_resume()
144 struct fd_resource *rsc = fd_resource(aq->prsc); in fd_acc_get_query_result()
Dfreedreno_batch_cache.c202 fd_bc_flush_writer(struct fd_context *ctx, struct fd_resource *rsc) assert_dt in fd_bc_flush_writer()
219 fd_bc_flush_readers(struct fd_context *ctx, struct fd_resource *rsc) assert_dt in fd_bc_flush_readers()
299 struct fd_resource *rsc = fd_resource(key->surf[idx].texture); in fd_bc_invalidate_batch()
309 fd_bc_invalidate_resource(struct fd_resource *rsc, bool destroy) in fd_bc_invalidate_resource()
477 struct fd_resource *rsc = fd_resource(key->surf[idx].texture); in batch_from_key()
Dfreedreno_batch.c257 struct fd_resource *rsc = (struct fd_resource *)entry->key; in batch_reset_resources()
424 flush_write_batch(struct fd_resource *rsc) assert_dt in flush_write_batch()
437 fd_batch_add_resource(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_add_resource()
452 fd_batch_resource_write(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_resource_write()
502 fd_batch_resource_read_slowpath(struct fd_batch *batch, struct fd_resource *rsc) in fd_batch_resource_read_slowpath()
Dfreedreno_batch.h44 struct fd_resource;
266 struct fd_resource *rsc) assert_dt;
268 struct fd_resource *rsc) assert_dt;
/third_party/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()
318 src = fd_resource(info->src.resource); in emit_blit()
319 dst = fd_resource(info->dst.resource); in emit_blit()
433 struct fd_resource *src = fd_resource(info->src.resource); in fd5_blitter_blit()
434 struct fd_resource *dst = fd_resource(info->dst.resource); in fd5_blitter_blit()
[all …]
Dfd5_draw.h71 OUT_RELOC(ring, fd_resource(idx_buffer)->bo, idx_offset, 0, 0); in fd5_draw()
93 struct fd_resource *ind = fd_resource(indirect->buffer); in fd5_draw_emit()
106 OUT_RELOC(ring, fd_resource(idx)->bo, index_offset, 0, 0); in fd5_draw_emit()
Dfd5_gmem.c56 struct fd_resource *rsc = NULL; in emit_mrt()
72 rsc = fd_resource(psurf->texture); in emit_mrt()
138 struct fd_resource *rsc = fd_resource(zsbuf->texture); in emit_zs()
511 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_mem2gmem_surf()
596 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_tile_mem2gmem()
631 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
680 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()
56 fd5_setup_slices(struct fd_resource *rsc) in fd5_setup_slices()
Dfd5_emit.c336 OUT_RELOC(ring, fd_resource(fd5_ctx->border_color_buf)->bo, off, 0, 0); in emit_border_color()
396 tile_mode = fd_resource(view->base.texture)->layout.tile_mode; in emit_textures()
404 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
462 struct fd_resource *rsc = fd_resource(buf->buffer); in emit_ssbos()
485 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd5_emit_vertex_bufs()
572 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd5_emit_state()
739 OUT_RELOC(ring, fd_resource(target->base.buffer)->bo, 0, 0, 0); in fd5_emit_state()
742 struct fd_bo *offset_bo = fd_resource(target->offset_buf)->bo; in fd5_emit_state()
1165 struct fd_bo *src_bo = fd_resource(src)->bo; in fd5_mem_to_mem()
1166 struct fd_bo *dst_bo = fd_resource(dst)->bo; in fd5_mem_to_mem()
Dfd5_compute.c141 OUT_RELOC(ring, fd_resource(prsc)->bo, 0, 0, 0); in fd5_launch_grid()
171 struct fd_resource *rsc = fd_resource(info->indirect); in fd5_launch_grid()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_texture.c198 struct fd_resource *rsc = fd_resource(so->base.texture); in fd6_set_sampler_views()
213 struct fd_resource *rsc = fd_resource(prsc); in fd6_sampler_view_update()
256 struct fd_resource *plane1 = fd_resource(rsc->b.b.next); in fd6_sampler_view_update()
257 struct fd_resource *plane2 = in fd6_sampler_view_update()
258 plane1 ? fd_resource(plane1->b.b.next) : NULL; in fd6_sampler_view_update()
352 key.view[i].rsc_seqno = fd_resource(view->base.texture)->seqno; in fd6_texture_state()
416 fd6_rebind_resource(struct fd_context *ctx, struct fd_resource *rsc) assert_dt in fd6_rebind_resource()
Dfd6_resource.c120 valid_format_cast(struct fd_resource *rsc, enum pipe_format format) in valid_format_cast()
167 fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc, in fd6_validate_format()
200 setup_lrz(struct fd_resource *rsc) in setup_lrz()
227 fd6_setup_slices(struct fd_resource *rsc) in fd6_setup_slices()
245 fill_ubwc_buffer_sizes(struct fd_resource *rsc) in fill_ubwc_buffer_sizes()
271 fd6_layout_resource_for_modifier(struct fd_resource *rsc, uint64_t modifier) in fd6_layout_resource_for_modifier()
Dfd6_image.c52 struct fd_resource *rsc = fd_resource(prsc); in fd6_emit_single_plane_descriptor()
81 struct fd_resource *rsc = fd_resource(buf->resource); in fd6_emit_image_descriptor()
198 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()
306 struct fd_resource *src, *dst; in emit_blit_buffer()
314 src = fd_resource(info->src.resource); in emit_blit_buffer()
315 dst = fd_resource(info->dst.resource); in emit_blit_buffer()
429 fd6_clear_ubwc(struct fd_batch *batch, struct fd_resource *rsc) assert_dt in fd6_clear_ubwc()
536 struct fd_resource *dst = fd_resource(prsc); in emit_blit_dst()
574 struct fd_resource *src = fd_resource(info->src.resource); in emit_blit_src()
632 struct fd_resource *dst; in emit_blit_texture()
641 dst = fd_resource(info->dst.resource); in emit_blit_texture()
912 struct fd_resource *src = fd_resource(info->src.resource); in handle_rgba_blit()
[all …]
Dfd6_gmem.c56 fd6_emit_flag_reference(struct fd_ringbuffer *ring, struct fd_resource *rsc, in fd6_emit_flag_reference()
90 struct fd_resource *rsc = NULL; in emit_mrt()
101 rsc = fd_resource(psurf->texture); in emit_mrt()
161 struct fd_resource *rsc = fd_resource(zsbuf->texture); in emit_zs()
268 struct fd_resource *rsc = fd_resource(prsc); in patch_fb_read_gmem()
309 struct fd_resource *rsc = fd_resource(psurf->texture); in patch_fb_read_sysmem()
359 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in update_render_cntl()
369 struct fd_resource *rsc = fd_resource(psurf->texture); in update_render_cntl()
985 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_blit()
1126 has_depth && fd_resource(pfb->zsbuf->texture)->stencil; in emit_clears()
[all …]
Dfd6_draw.c52 struct fd_resource *offset = fd_resource(target->offset_buf); in draw_emit_xfb()
78 struct fd_resource *ind = fd_resource(indirect->buffer); in draw_emit_indirect()
85 A5XX_CP_DRAW_INDX_INDIRECT_INDX_BASE(fd_resource(idx)->bo, in draw_emit_indirect()
111 A5XX_CP_DRAW_INDX_OFFSET_INDX_BASE(fd_resource(idx_buffer)->bo, in draw_emit()
343 fd6_clear_lrz(struct fd_batch *batch, struct fd_resource *zsbuf, double depth) assert_dt in fd6_clear_lrz()
496 struct fd_resource *zsbuf = fd_resource(pfb->zsbuf->texture); in fd6_clear()
Dfd6_resource.h33 void fd6_validate_format(struct fd_context *ctx, struct fd_resource *rsc,
36 struct fd_resource *rsc, int level, int layer);
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_draw.h77 OUT_RELOC(ring, fd_resource(idx_buffer)->bo, idx_offset, 0, 0); in fd4_draw()
99 struct fd_resource *ind = fd_resource(indirect->buffer); in fd4_draw_emit()
111 OUT_RELOC(ring, fd_resource(idx)->bo, index_offset, 0, 0); in fd4_draw_emit()
Dfd4_emit.c224 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
251 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
332 struct fd_resource *rsc = fd_resource(view->base.texture); in emit_textures()
356 OUT_RELOC(ring, fd_resource(fd4_ctx->border_color_buf)->bo, off, 0, 0); in emit_textures()
404 struct fd_resource *rsc = fd_resource(bufs[i]->texture); in fd4_emit_gmem_restore_tex()
492 struct fd_resource *rsc = fd_resource(buf->buffer); in emit_ssbos()
562 struct fd_resource *rsc = fd_resource(vb->buffer.resource); in fd4_emit_vertex_bufs()
1104 struct fd_bo *src_bo = fd_resource(src)->bo; in fd4_mem_to_mem()
1105 struct fd_bo *dst_bo = fd_resource(dst)->bo; in fd4_mem_to_mem()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_const.h55 struct fd_resource *rsc = fd_resource(buffer); in emit_const_prsc()
243 bos[i] = fd_resource(cb->buffer)->bo; in ir3_emit_ubos()
270 struct fd_resource *rsc; in ir3_emit_image_dims()
275 rsc = fd_resource(img->resource); in ir3_emit_image_dims()
381 bos[i] = fd_resource(target->buffer)->bo; in emit_tfbos()
505 ptr = fd_bo_map(fd_resource(vertex_params_rsc)->bo); in ir3_emit_driver_params()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_gmem.c71 struct fd_resource *rsc = NULL; in emit_mrt()
85 rsc = fd_resource(psurf->texture); in emit_mrt()
204 OUT_RELOC(ring, fd_resource(ctx->solid_vbuf)->bo, 0x20, 0, in emit_binning_workaround()
338 struct fd_resource *rsc = fd_resource(psurf->texture); in emit_gmem2mem_surf()
470 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_gmem2mem()
587 OUT_RELOC(ring, fd_resource(ctx->blit_texcoord_vbuf)->bo, 0, 0, 0); in fd3_emit_tile_mem2gmem()
760 struct fd_resource *rsc = fd_resource(psurf->texture); in fd3_emit_sysmem_prep()
1028 struct fd_resource *rsc = fd_resource(pfb->zsbuf->texture); in fd3_emit_tile_renderprep()

123