Home
last modified time | relevance | path

Searched refs:fd_context (Results 1 – 25 of 104) sorted by relevance

12345

/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_state.c49 update_draw_cost(struct fd_context *ctx) assert_dt in update_draw_cost()
67 struct fd_context *ctx = fd_context(pctx); in fd_set_blend_color()
76 struct fd_context *ctx = fd_context(pctx); in fd_set_stencil_ref()
85 struct fd_context *ctx = fd_context(pctx); in fd_set_clip_state()
93 struct fd_context *ctx = fd_context(pctx); in fd_set_sample_mask()
101 struct fd_context *ctx = fd_context(pctx); in fd_set_min_samples()
119 struct fd_context *ctx = fd_context(pctx); in fd_set_constant_buffer()
149 struct fd_context *ctx = fd_context(pctx); in fd_set_shader_buffers()
195 struct fd_context *ctx = fd_context(pctx); in fd_set_shader_images()
256 struct fd_context *ctx = fd_context(pctx); in fd_set_framebuffer_state()
[all …]
Dfreedreno_context.h199 struct fd_context { struct
453 void (*rebind_resource)(struct fd_context *ctx, struct fd_resource *rsc) dt; argument
473 bool (*draw_vbo)(struct fd_context *ctx, const struct pipe_draw_info *info, argument
478 bool (*clear)(struct fd_context *ctx, unsigned buffers, argument
483 void (*launch_grid)(struct fd_context *ctx, argument
487 struct fd_query *(*create_query)(struct fd_context *ctx, unsigned query_type, argument
495 bool (*blit)(struct fd_context *ctx, const struct pipe_blit_info *info) dt; argument
499 void (*validate_format)(struct fd_context *ctx, struct fd_resource *rsc, argument
503 void (*framebuffer_barrier)(struct fd_context *ctx) dt; argument
556 static inline struct fd_context * argument
[all …]
Dfreedreno_program.c36 update_bound_stage(struct fd_context *ctx, enum pipe_shader_type shader, in update_bound_stage()
49 struct fd_context *ctx = fd_context(pctx); in fd_set_patch_vertices()
57 struct fd_context *ctx = fd_context(pctx); in fd_vs_state_bind()
66 struct fd_context *ctx = fd_context(pctx); in fd_tcs_state_bind()
75 struct fd_context *ctx = fd_context(pctx); in fd_tes_state_bind()
84 struct fd_context *ctx = fd_context(pctx); in fd_gs_state_bind()
93 struct fd_context *ctx = fd_context(pctx); in fd_fs_state_bind()
197 struct fd_context *ctx = fd_context(pctx); in fd_prog_init()
241 struct fd_context *ctx = fd_context(pctx); in fd_prog_fini()
Dfreedreno_context.c48 struct fd_context *ctx = fd_context(pctx); in fd_context_flush()
160 struct fd_context *ctx = fd_context(pctx); in fd_texture_barrier()
238 struct fd_context *ctx = fd_context(pctx); in fd_emit_string_marker()
267 fd_context_switch_from(struct fd_context *ctx) in fd_context_switch_from()
279 fd_context_switch_to(struct fd_context *ctx, struct fd_batch *batch) in fd_context_switch_to()
292 fd_context_batch(struct fd_context *ctx) in fd_context_batch()
319 fd_context_batch_locked(struct fd_context *ctx) in fd_context_batch_locked()
336 struct fd_context *ctx = fd_context(pctx); in fd_context_destroy()
408 struct fd_context *ctx = fd_context(pctx); in fd_set_debug_callback()
420 fd_get_reset_count(struct fd_context *ctx, bool per_context) in fd_get_reset_count()
[all …]
Dfreedreno_batch_cache.h36 struct fd_context;
69 void fd_bc_flush(struct fd_context *ctx, bool deferred) assert_dt;
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;
72 void fd_bc_dump(struct fd_context *ctx, const char *fmt, ...)
77 struct fd_batch *fd_bc_alloc_batch(struct fd_context *ctx,
81 fd_batch_from_fb(struct fd_context *ctx,
Dfreedreno_query_hw.c45 struct fd_context *ctx = batch->ctx; in get_sample()
113 destroy_periods(struct fd_context *ctx, struct fd_hw_query *hq) in destroy_periods()
125 fd_hw_destroy_query(struct fd_context *ctx, struct fd_query *q) in fd_hw_destroy_query()
138 fd_hw_begin_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_hw_begin_query()
160 fd_hw_end_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_hw_end_query()
185 fd_hw_get_query_result(struct fd_context *ctx, struct fd_query *q, bool wait, in fd_hw_get_query_result()
263 fd_hw_create_query(struct fd_context *ctx, unsigned query_type, unsigned index) in fd_hw_create_query()
328 __fd_hw_sample_destroy(struct fd_context *ctx, struct fd_hw_sample *samp) in __fd_hw_sample_destroy()
378 struct fd_context *ctx = batch->ctx; in fd_hw_query_update_batch()
403 struct fd_context *ctx = batch->ctx; in fd_hw_query_enable()
[all …]
Dfreedreno_fence.c161 fence_create(struct fd_context *ctx, struct fd_batch *batch, int fence_fd, in fence_create()
189 struct fd_context *ctx = fd_context(pctx); in fd_create_fence_fd()
194 fence_create(fd_context(pctx), NULL, os_dupfd_cloexec(fd), 0); in fd_create_fence_fd()
205 *pfence = fence_create(fd_context(pctx), NULL, -1, syncobj); in fd_create_fence_fd()
216 struct fd_context *ctx = fd_context(pctx); in fd_fence_server_sync()
241 struct fd_context *ctx = fd_context(pctx); in fd_fence_server_signal()
301 fence_create(fd_context(pctx), NULL, -1, 0); in fd_fence_create_unflushed()
Dfreedreno_query_acc.c36 fd_acc_destroy_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_acc_destroy_query()
50 realloc_query_bo(struct fd_context *ctx, struct fd_acc_query *aq) in realloc_query_bo()
98 fd_acc_begin_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_acc_begin_query()
126 fd_acc_end_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_acc_end_query()
139 fd_acc_get_query_result(struct fd_context *ctx, struct fd_query *q, bool wait, in fd_acc_get_query_result()
189 fd_acc_create_query2(struct fd_context *ctx, unsigned query_type, in fd_acc_create_query2()
216 fd_acc_create_query(struct fd_context *ctx, unsigned query_type, unsigned index) in fd_acc_create_query()
234 struct fd_context *ctx = batch->ctx; in fd_acc_query_update_batch()
258 struct fd_context *ctx = fd_context(pctx); in fd_acc_query_register_provider()
Dfreedreno_query.c43 struct fd_context *ctx = fd_context(pctx); in fd_create_query()
58 q->funcs->destroy_query(fd_context(pctx), q); in fd_destroy_query()
66 q->funcs->begin_query(fd_context(pctx), q); in fd_begin_query()
82 q->funcs->end_query(fd_context(pctx), q); in fd_end_query()
95 return q->funcs->get_query_result(fd_context(pctx), q, wait, result); in fd_get_query_result()
102 struct fd_context *ctx = fd_context(pctx); in fd_render_condition()
180 struct fd_context *ctx = fd_context(pctx); in fd_set_active_query_state()
Dfreedreno_state.h34 fd_depth_enabled(struct fd_context *ctx) assert_dt in fd_depth_enabled()
40 fd_depth_write_enabled(struct fd_context *ctx) assert_dt in fd_depth_write_enabled()
46 fd_stencil_enabled(struct fd_context *ctx) assert_dt in fd_stencil_enabled()
52 fd_blend_enabled(struct fd_context *ctx, unsigned n) assert_dt in fd_blend_enabled()
58 fd_depth_clip_disabled(struct fd_context *ctx) assert_dt in fd_depth_clip_disabled()
Dfreedreno_query.h36 struct fd_context;
40 void (*destroy_query)(struct fd_context *ctx, struct fd_query *q) dt;
41 void (*begin_query)(struct fd_context *ctx, struct fd_query *q) dt;
42 void (*end_query)(struct fd_context *ctx, struct fd_query *q) dt;
43 bool (*get_query_result)(struct fd_context *ctx, struct fd_query *q,
Dfreedreno_query_hw.h79 void (*enable)(struct fd_context *ctx, struct fd_ringbuffer *ring) dt;
88 void (*accumulate_result)(struct fd_context *ctx, const void *start,
135 struct fd_query *fd_hw_create_query(struct fd_context *ctx, unsigned query_type,
140 void __fd_hw_sample_destroy(struct fd_context *ctx, struct fd_hw_sample *samp);
154 fd_hw_sample_reference(struct fd_context *ctx, struct fd_hw_sample **ptr, in fd_hw_sample_reference()
Dfreedreno_query_sw.c44 fd_sw_destroy_query(struct fd_context *ctx, struct fd_query *q) in fd_sw_destroy_query()
51 read_counter(struct fd_context *ctx, int type) assert_dt in read_counter()
112 fd_sw_begin_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_sw_begin_query()
127 fd_sw_end_query(struct fd_context *ctx, struct fd_query *q) assert_dt in fd_sw_end_query()
143 fd_sw_get_query_result(struct fd_context *ctx, struct fd_query *q, bool wait, in fd_sw_get_query_result()
171 fd_sw_create_query(struct fd_context *ctx, unsigned query_type, unsigned index) in fd_sw_create_query()
Dfreedreno_perfetto.cc128 struct fd_context *ctx = fd_context(pctx); in stage_start()
137 struct fd_context *ctx = fd_context(pctx); in stage_end()
254 sync_timestamp(struct fd_context *ctx) in sync_timestamp()
297 emit_submit_id(struct fd_context *ctx) in emit_submit_id()
312 fd_perfetto_submit(struct fd_context *ctx) in fd_perfetto_submit()
330 struct fd_perfetto_state *p = &fd_context(pctx)->perfetto; in fd_start_render_pass()
375 fd_context(pctx)->perfetto.nbins ? GMEM_STAGE_ID : BYPASS_STAGE_ID); in fd_start_draw_ib()
385 fd_context(pctx)->perfetto.nbins ? GMEM_STAGE_ID : BYPASS_STAGE_ID); in fd_end_draw_ib()
Dfreedreno_blitter.c80 fd_blitter_pipe_begin(struct fd_context *ctx, bool render_cond) assert_dt in fd_blitter_pipe_begin()
114 fd_blitter_pipe_end(struct fd_context *ctx) assert_dt in fd_blitter_pipe_end()
119 fd_blitter_blit(struct fd_context *ctx, const struct pipe_blit_info *info) in fd_blitter_blit()
192 struct fd_context *ctx = fd_context(pctx); in fd_blitter_clear()
289 struct fd_context *ctx = fd_context(pctx); in fd_blit()
317 fd_blitter_pipe_copy_region(struct fd_context *ctx, struct pipe_resource *dst, in fd_blitter_pipe_copy_region()
354 struct fd_context *ctx = fd_context(pctx); in fd_resource_copy_region()
Dfreedreno_resource.c70 rebind_resource_in_ctx(struct fd_context *ctx, in rebind_resource_in_ctx()
160 list_for_each_entry (struct fd_context, ctx, &screen->context_list, node) in rebind_resource()
177 __fd_resource_wait(struct fd_context *ctx, struct fd_resource *rsc, unsigned op, in __fd_resource_wait()
233 do_blit(struct fd_context *ctx, const struct pipe_blit_info *blit, in do_blit()
262 struct fd_context *ctx = fd_context(pctx); in fd_replace_buffer_storage()
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()
552 fd_resource_uncompress(struct fd_context *ctx, struct fd_resource *rsc, bool linear) in fd_resource_uncompress()
576 fd_alloc_staging(struct fd_context *ctx, struct fd_resource *rsc, in fd_alloc_staging()
617 fd_blit_from_staging(struct fd_context *ctx, in fd_blit_from_staging()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_texture.c101 so->seqno = ++fd6_context(fd_context(pctx))->tex_seqno; in fd6_sampler_state_create()
136 struct fd_context *ctx = fd_context(pctx); in fd6_sampler_state_delete()
184 struct fd_context *ctx = fd_context(pctx); in fd6_set_sampler_views()
208 fd6_sampler_view_update(struct fd_context *ctx, in fd6_sampler_view_update()
290 struct fd_context *ctx = fd_context(pctx); in fd6_sampler_view_destroy()
330 fd6_texture_state(struct fd_context *ctx, enum pipe_shader_type type, in fd6_texture_state()
416 fd6_rebind_resource(struct fd_context *ctx, struct fd_resource *rsc) assert_dt in fd6_rebind_resource()
440 struct fd_context *ctx = fd_context(pctx); in fd6_texture_init()
459 struct fd_context *ctx = fd_context(pctx); in fd6_texture_fini()
Dfd6_image.c67 fd6_ssbo_descriptor(struct fd_context *ctx, in fd6_ssbo_descriptor()
79 fd6_emit_image_descriptor(struct fd_context *ctx, struct fd_ringbuffer *ring, const struct pipe_ima… in fd6_emit_image_descriptor()
133 fd6_emit_image_tex(struct fd_context *ctx, struct fd_ringbuffer *ring, in fd6_emit_image_tex()
140 fd6_emit_ssbo_tex(struct fd_context *ctx, struct fd_ringbuffer *ring, in fd6_emit_ssbo_tex()
150 fd6_build_ibo_state(struct fd_context *ctx, const struct ir3_shader_variant *v, in fd6_build_ibo_state()
182 struct fd_context *ctx = fd_context(pctx); in fd6_set_shader_images()
Dfd6_image.h33 void fd6_emit_image_tex(struct fd_context *ctx, struct fd_ringbuffer *ring,
35 void fd6_emit_ssbo_tex(struct fd_context *ctx, struct fd_ringbuffer *ring,
40 fd6_build_ibo_state(struct fd_context *ctx, const struct ir3_shader_variant *v,
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_query.c85 occlusion_counter_accumulate_result(struct fd_context *ctx, const void *start, in occlusion_counter_accumulate_result()
94 occlusion_predicate_accumulate_result(struct fd_context *ctx, const void *start, in occlusion_predicate_accumulate_result()
110 time_elapsed_enable(struct fd_context *ctx, in time_elapsed_enable()
219 time_elapsed_accumulate_result(struct fd_context *ctx, const void *start, in time_elapsed_accumulate_result()
228 timestamp_accumulate_result(struct fd_context *ctx, const void *start, in timestamp_accumulate_result()
282 struct fd_context *ctx = fd_context(pctx); in fd4_query_context_init()
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_emit.h125 fd5_set_render_mode(struct fd_context *ctx, struct fd_ringbuffer *ring, in fd5_set_render_mode()
162 fd5_emit_render_cntl(struct fd_context *ctx, bool blit, bool binning) assert_dt in fd5_emit_render_cntl()
207 void fd5_emit_state(struct fd_context *ctx, struct fd_ringbuffer *ring,
210 void fd5_emit_cs_state(struct fd_context *ctx, struct fd_ringbuffer *ring,
213 struct fd_ringbuffer *ring, struct fd_context *ctx,
Dfd5_context.h37 struct fd_context base;
65 fd5_context(struct fd_context *ctx) in fd5_context()
75 fd5_emit_flush(struct fd_context *ctx, struct fd_ringbuffer *ring) in fd5_emit_flush()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_query.c100 occlusion_counter_accumulate_result(struct fd_context *ctx, const void *start, in occlusion_counter_accumulate_result()
109 occlusion_predicate_accumulate_result(struct fd_context *ctx, const void *start, in occlusion_predicate_accumulate_result()
138 struct fd_context *ctx = fd_context(pctx); in fd3_query_context_init()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_emit.h43 void fd2_emit_state_binning(struct fd_context *ctx,
45 void fd2_emit_state(struct fd_context *ctx,
47 void fd2_emit_restore(struct fd_context *ctx, struct fd_ringbuffer *ring);
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_gallium.c70 initial_variants_synchronous(struct fd_context *ctx) in initial_variants_synchronous()
272 struct fd_context *ctx = fd_context(pctx); in ir3_shader_compute_state_create()
347 struct fd_context *ctx = fd_context(pctx); in ir3_shader_state_create()
407 struct fd_context *ctx = fd_context(pctx); in ir3_shader_state_delete()
473 struct fd_context *ctx = fd_context(pctx); in ir3_fixup_shader_state()
586 ir3_update_max_tf_vtx(struct fd_context *ctx, in ir3_update_max_tf_vtx()

12345