Home
last modified time | relevance | path

Searched refs:v3d (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_context.c46 struct v3d_context *v3d = v3d_context(pctx); in v3d_flush() local
48 hash_table_foreach(v3d->jobs, entry) { in v3d_flush()
50 v3d_job_submit(v3d, job); in v3d_flush()
58 struct v3d_context *v3d = v3d_context(pctx); in v3d_pipe_flush() local
64 struct v3d_fence *f = v3d_fence_create(v3d); in v3d_pipe_flush()
73 struct v3d_context *v3d = v3d_context(pctx); in v3d_memory_barrier() local
93 struct v3d_context *v3d = v3d_context(pctx); in v3d_set_debug_callback() local
96 v3d->debug = *cb; in v3d_set_debug_callback()
98 memset(&v3d->debug, 0, sizeof(v3d->debug)); in v3d_set_debug_callback()
104 struct v3d_context *v3d = v3d_context(pctx); in v3d_invalidate_resource() local
[all …]
Dv3dx_draw.c42 v3dX(start_binning)(struct v3d_context *v3d, struct v3d_job *job) in v3dX()
76 job->tile_alloc = v3d_bo_alloc(v3d->screen, tile_alloc_size, in v3dX()
78 uint32_t tsda_per_tile_size = v3d->screen->devinfo.ver >= 40 ? 256 : 64; in v3dX()
79 job->tile_state = v3d_bo_alloc(v3d->screen, in v3dX()
154 v3d_start_draw(struct v3d_context *v3d) in v3d_start_draw() argument
156 struct v3d_job *job = v3d->job; in v3d_start_draw()
162 job->draw_width = v3d->framebuffer.width; in v3d_start_draw()
163 job->draw_height = v3d->framebuffer.height; in v3d_start_draw()
164 job->num_layers = util_framebuffer_get_num_layers(&v3d->framebuffer); in v3d_start_draw()
166 v3dX(start_binning)(v3d, job); in v3d_start_draw()
[all …]
Dv3dx_emit.c115 emit_one_texture(struct v3d_context *v3d, struct v3d_texture_stateobj *stage_tex, in emit_one_texture() argument
118 struct v3d_job *job = v3d->job; in emit_one_texture()
125 const struct v3d_device_info *devinfo = &v3d->screen->devinfo; in emit_one_texture()
240 emit_textures(struct v3d_context *v3d, struct v3d_texture_stateobj *stage_tex) in emit_textures() argument
244 emit_one_texture(v3d, stage_tex, i); in emit_textures()
250 translate_colormask(struct v3d_context *v3d, uint32_t colormask, int rt) in translate_colormask() argument
252 if (v3d->swap_color_rb & (1 << rt)) { in translate_colormask()
262 emit_rt_blend(struct v3d_context *v3d, struct v3d_job *job, in emit_rt_blend() argument
360 struct v3d_context *v3d = job->v3d; in emit_varying_flags() local
363 for (int i = 0; i < ARRAY_SIZE(v3d->prog.fs->prog_data.fs->flat_shade_flags); i++) { in emit_varying_flags()
[all …]
Dv3d_job.c41 v3d_job_free(struct v3d_context *v3d, struct v3d_job *job) in v3d_job_free() argument
48 _mesa_hash_table_remove_key(v3d->jobs, &job->key); in v3d_job_free()
54 _mesa_hash_table_remove_key(v3d->write_jobs, prsc); in v3d_job_free()
60 _mesa_hash_table_remove_key(v3d->write_jobs, in v3d_job_free()
68 _mesa_hash_table_remove_key(v3d->write_jobs, in v3d_job_free()
71 _mesa_hash_table_remove_key(v3d->write_jobs, in v3d_job_free()
78 if (v3d->job == job) in v3d_job_free()
79 v3d->job = NULL; in v3d_job_free()
91 v3d_job_create(struct v3d_context *v3d) in v3d_job_create() argument
93 struct v3d_job *job = rzalloc(v3d, struct v3d_job); in v3d_job_create()
[all …]
Dv3d_program.c41 v3d_get_compiled_shader(struct v3d_context *v3d,
205 v3d_shader_precompile(struct v3d_context *v3d, in v3d_shader_precompile() argument
227 v3d_get_compiled_shader(v3d, &key.base, sizeof(key)); in v3d_shader_precompile()
240 v3d_get_compiled_shader(v3d, &key.base, sizeof(key)); in v3d_shader_precompile()
250 v3d_get_compiled_shader(v3d, &key.base, sizeof(key)); in v3d_shader_precompile()
265 v3d_get_compiled_shader(v3d, &key.base, sizeof(key)); in v3d_shader_precompile()
275 v3d_get_compiled_shader(v3d, &key.base, sizeof(key)); in v3d_shader_precompile()
283 struct v3d_context *v3d = v3d_context(pctx); in v3d_uncompiled_shader_create() local
288 so->program_id = v3d->next_uncompiled_program_id++; in v3d_uncompiled_shader_create()
341 v3d_shader_precompile(v3d, so); in v3d_uncompiled_shader_create()
[all …]
Dv3d_query_pipe.c49 v3d_destroy_query_pipe(struct v3d_context *v3d, struct v3d_query *query) in v3d_destroy_query_pipe() argument
58 v3d_begin_query_pipe(struct v3d_context *v3d, struct v3d_query *query) in v3d_begin_query_pipe() argument
69 if (v3d->prog.gs) in v3d_begin_query_pipe()
70 v3d_update_primitive_counters(v3d); in v3d_begin_query_pipe()
71 pquery->start = v3d->prims_generated; in v3d_begin_query_pipe()
72 v3d->n_primitives_generated_queries_in_flight++; in v3d_begin_query_pipe()
78 if (v3d->streamout.num_targets > 0) in v3d_begin_query_pipe()
79 v3d_update_primitive_counters(v3d); in v3d_begin_query_pipe()
80 pquery->start = v3d->tf_prims_generated; in v3d_begin_query_pipe()
86 pquery->bo = v3d_bo_alloc(v3d->screen, 4096, "query"); in v3d_begin_query_pipe()
[all …]
Dv3d_blit.c40 v3d_blitter_save(struct v3d_context *v3d, bool op_blit) in v3d_blitter_save() argument
42 util_blitter_save_fragment_constant_buffer_slot(v3d->blitter, in v3d_blitter_save()
43 v3d->constbuf[PIPE_SHADER_FRAGMENT].cb); in v3d_blitter_save()
44 util_blitter_save_vertex_buffer_slot(v3d->blitter, v3d->vertexbuf.vb); in v3d_blitter_save()
45 util_blitter_save_vertex_elements(v3d->blitter, v3d->vtx); in v3d_blitter_save()
46 util_blitter_save_vertex_shader(v3d->blitter, v3d->prog.bind_vs); in v3d_blitter_save()
47 util_blitter_save_geometry_shader(v3d->blitter, v3d->prog.bind_gs); in v3d_blitter_save()
48 util_blitter_save_so_targets(v3d->blitter, v3d->streamout.num_targets, in v3d_blitter_save()
49 v3d->streamout.targets); in v3d_blitter_save()
50 util_blitter_save_rasterizer(v3d->blitter, v3d->rasterizer); in v3d_blitter_save()
[all …]
Dv3d_query_perfcnt.c131 kperfmon_destroy(struct v3d_context *v3d, struct v3d_perfmon_state *perfmon) in kperfmon_destroy() argument
136 int ret = v3d_ioctl(v3d->fd, DRM_IOCTL_V3D_PERFMON_DESTROY, &destroyreq); in kperfmon_destroy()
186 v3d_destroy_query_perfcnt(struct v3d_context *v3d, struct v3d_query *query) in v3d_destroy_query_perfcnt() argument
192 if (v3d->active_perfmon == pquery->perfmon) { in v3d_destroy_query_perfcnt()
197 kperfmon_destroy(v3d, pquery->perfmon); in v3d_destroy_query_perfcnt()
205 v3d_begin_query_perfcnt(struct v3d_context *v3d, struct v3d_query *query) in v3d_begin_query_perfcnt() argument
212 if (v3d->active_perfmon) { in v3d_begin_query_perfcnt()
223 kperfmon_destroy(v3d, pquery->perfmon); in v3d_begin_query_perfcnt()
229 ret = v3d_ioctl(v3d->fd, DRM_IOCTL_V3D_PERFMON_CREATE, &createreq); in v3d_begin_query_perfcnt()
240 v3d_flush((struct pipe_context *)v3d); in v3d_begin_query_perfcnt()
[all …]
Dv3d_query.c47 struct v3d_context *v3d = v3d_context(pctx); in v3d_create_query() local
49 return v3d_create_query_pipe(v3d, query_type, index); in v3d_create_query()
64 struct v3d_context *v3d = v3d_context(pctx); in v3d_destroy_query() local
67 q->funcs->destroy_query(v3d, q); in v3d_destroy_query()
73 struct v3d_context *v3d = v3d_context(pctx); in v3d_begin_query() local
76 return q->funcs->begin_query(v3d, q); in v3d_begin_query()
82 struct v3d_context *v3d = v3d_context(pctx); in v3d_end_query() local
85 return q->funcs->end_query(v3d, q); in v3d_end_query()
92 struct v3d_context *v3d = v3d_context(pctx); in v3d_get_query_result() local
95 return q->funcs->get_query_result(v3d, q, wait, vresult); in v3d_get_query_result()
[all …]
Dv3dx_state.c52 struct v3d_context *v3d = v3d_context(pctx); in v3d_set_blend_color() local
53 v3d->blend_color.f = *blend_color; in v3d_set_blend_color()
55 v3d->blend_color.hf[i] = in v3d_set_blend_color()
58 v3d->dirty |= V3D_DIRTY_BLEND_COLOR; in v3d_set_blend_color()
65 struct v3d_context *v3d = v3d_context(pctx); in v3d_set_stencil_ref() local
66 v3d->stencil_ref = stencil_ref; in v3d_set_stencil_ref()
67 v3d->dirty |= V3D_DIRTY_STENCIL_REF; in v3d_set_stencil_ref()
74 struct v3d_context *v3d = v3d_context(pctx); in v3d_set_clip_state() local
75 v3d->clip = *clip; in v3d_set_clip_state()
76 v3d->dirty |= V3D_DIRTY_CLIP; in v3d_set_clip_state()
[all …]
Dv3d_context.h339 struct v3d_context *v3d; member
650 if (unlikely(v3d->debug.debug_message)) \
651 util_debug_message(&v3d->debug, PERF_INFO, __VA_ARGS__); \
706 v3d_transform_feedback_enabled(struct v3d_context *v3d) in v3d_transform_feedback_enabled() argument
708 return (v3d->prog.bind_vs->num_tf_specs != 0 || in v3d_transform_feedback_enabled()
709 (v3d->prog.bind_gs && v3d->prog.bind_gs->num_tf_specs != 0)) && in v3d_transform_feedback_enabled()
710 v3d->active_queries; in v3d_transform_feedback_enabled()
714 struct v3d_cl_reloc v3d_write_uniforms(struct v3d_context *v3d,
720 void v3d_job_init(struct v3d_context *v3d);
721 struct v3d_job *v3d_job_create(struct v3d_context *v3d);
[all …]
Dv3d_query.h32 void (*destroy_query)(struct v3d_context *v3d, struct v3d_query *query);
33 bool (*begin_query)(struct v3d_context *v3d, struct v3d_query *query);
34 bool (*end_query)(struct v3d_context *v3d, struct v3d_query *query);
35 bool (*get_query_result)(struct v3d_context *v3d, struct v3d_query *query,
44 struct pipe_query *v3d_create_query_pipe(struct v3d_context *v3d, unsigned query_type, unsigned ind…
45 struct pipe_query *v3d_create_batch_query_perfcnt(struct v3d_context *v3d, unsigned num_queries,
Dv3d_uniforms.c250 v3d_write_uniforms(struct v3d_context *v3d, struct v3d_job *job, in v3d_write_uniforms() argument
254 struct v3d_constbuf_stateobj *cb = &v3d->constbuf[stage]; in v3d_write_uniforms()
255 struct v3d_texture_stateobj *texstate = &v3d->tex[stage]; in v3d_write_uniforms()
286 cl_aligned_f(&uniforms, v3d->viewport.scale[0] * 256.0f); in v3d_write_uniforms()
289 cl_aligned_f(&uniforms, v3d->viewport.scale[1] * 256.0f); in v3d_write_uniforms()
293 cl_aligned_f(&uniforms, v3d->viewport.translate[2]); in v3d_write_uniforms()
296 cl_aligned_f(&uniforms, v3d->viewport.scale[2]); in v3d_write_uniforms()
301 v3d->clip.ucp[data / 4][data % 4]); in v3d_write_uniforms()
314 &v3d->shaderimg[stage], data); in v3d_write_uniforms()
346 get_image_size(&v3d->shaderimg[stage], in v3d_write_uniforms()
[all …]
Dv3dx_job.c33 void v3dX(bcl_epilogue)(struct v3d_context *v3d, struct v3d_job *job) in v3dX()
44 assert(v3d->prim_counts); in v3dX()
46 v3d_resource(v3d->prim_counts); in v3dX()
50 v3d->prim_counts_offset); in v3dX()
Dv3dx_context.h32 void v3dX(start_binning)(struct v3d_context *v3d,
38 void v3dX(create_texture_shader_state_bo)(struct v3d_context *v3d,
41 void v3dX(bcl_epilogue)(struct v3d_context *v3d, struct v3d_job *job);
Dv3d_resource.c118 struct v3d_context *v3d = v3d_context(pctx); in v3d_resource_transfer_unmap() local
146 slab_free(&v3d->transfer_pool, ptrans); in v3d_resource_transfer_unmap()
150 rebind_sampler_views(struct v3d_context *v3d, in rebind_sampler_views() argument
154 struct v3d_texture_stateobj *tex = v3d->tex + st; in rebind_sampler_views()
165 v3d_create_texture_shader_state_bo(v3d, sview); in rebind_sampler_views()
167 v3d_flag_dirty_sampler_state(v3d, st); in rebind_sampler_views()
177 struct v3d_context *v3d = v3d_context(pctx); in v3d_map_usage_prep() local
187 v3d->dirty |= V3D_DIRTY_VTXBUF; in v3d_map_usage_prep()
189 v3d->dirty |= V3D_DIRTY_CONSTBUF; in v3d_map_usage_prep()
198 rebind_sampler_views(v3d, rsc); in v3d_map_usage_prep()
[all …]
Dv3d_disk_cache.c108 v3d_disk_cache_retrieve(struct v3d_context *v3d, in v3d_disk_cache_retrieve() argument
111 struct v3d_screen *screen = v3d->screen; in v3d_disk_cache_retrieve()
180 u_upload_data(v3d->state_uploader, 0, qpu_size, 8, in v3d_disk_cache_retrieve()
189 v3d_disk_cache_store(struct v3d_context *v3d, in v3d_disk_cache_store() argument
195 struct v3d_screen *screen = v3d->screen; in v3d_disk_cache_store()
/third_party/mesa3d/src/broadcom/simulator/
Dv3dx_simulator.c55 #define V3D_WRITE(reg, val) v3d_hw_write_reg(v3d, reg, val)
56 #define V3D_READ(reg) v3d_hw_read_reg(v3d, reg)
59 v3d_invalidate_l3(struct v3d_hw *v3d) in v3d_invalidate_l3() argument
71 v3d_invalidate_l2c(struct v3d_hw *v3d) in v3d_invalidate_l2c() argument
89 v3d_invalidate_l2t(struct v3d_hw *v3d) in v3d_invalidate_l2t() argument
104 static UNUSED void v3d_core_wait_l2tcactl(struct v3d_hw *v3d, in v3d_core_wait_l2tcactl() argument
110 v3d_hw_tick(v3d); in v3d_core_wait_l2tcactl()
116 v3d_flush_l1td(struct v3d_hw *v3d) in v3d_flush_l1td() argument
127 v3d_core_wait_l2tcactl(v3d, V3D_CTL_0_L2TCACTL_TMUWCF_SET); in v3d_flush_l1td()
132 v3d_flush_l2t(struct v3d_hw *v3d) in v3d_flush_l2t() argument
[all …]
Dv3dx_simulator.h36 void v3dX(simulator_init_regs)(struct v3d_hw *v3d);
37 int v3dX(simulator_get_param_ioctl)(struct v3d_hw *v3d,
39 void v3dX(simulator_submit_cl_ioctl)(struct v3d_hw *v3d,
42 int v3dX(simulator_submit_tfu_ioctl)(struct v3d_hw *v3d,
44 int v3dX(simulator_submit_csd_ioctl)(struct v3d_hw *v3d,
47 void v3dX(simulator_perfmon_start)(struct v3d_hw *v3d,
50 void v3dX(simulator_perfmon_stop)(struct v3d_hw *v3d,
Dv3d_simulator.c75 struct v3d_hw *v3d; member
438 v3d41_simulator_perfmon_stop(sim_state.v3d, in v3d_simulator_perfmon_switch()
444 v3d41_simulator_perfmon_start(sim_state.v3d, in v3d_simulator_perfmon_switch()
493 v3d41_simulator_submit_cl_ioctl(sim_state.v3d, submit, file->gmp->ofs); in v3d_simulator_submit_cl_ioctl()
495 v3d33_simulator_submit_cl_ioctl(sim_state.v3d, submit, file->gmp->ofs); in v3d_simulator_submit_cl_ioctl()
638 return v3d41_simulator_get_param_ioctl(sim_state.v3d, args); in v3d_simulator_get_param_ioctl()
640 return v3d33_simulator_get_param_ioctl(sim_state.v3d, args); in v3d_simulator_get_param_ioctl()
655 ret = v3d41_simulator_submit_tfu_ioctl(sim_state.v3d, args); in v3d_simulator_submit_tfu_ioctl()
657 ret = v3d33_simulator_submit_tfu_ioctl(sim_state.v3d, args); in v3d_simulator_submit_tfu_ioctl()
685 ret = v3d41_simulator_submit_csd_ioctl(sim_state.v3d, args, in v3d_simulator_submit_csd_ioctl()
[all …]
/third_party/mesa3d/docs/
Dfeatures.txt43 GL_ARB_map_buffer_range (Map buffer subranges) DONE (v3d, vc4, lima)
44 GL_ARB_color_buffer_float (Clamping controls) DONE (v3d, vc4, lima)
45 GL_ARB_texture_float (Float textures, renderbuffers) DONE (v3d)
46 GL_EXT_packed_float DONE (v3d)
47 GL_EXT_texture_shared_exponent DONE (v3d)
48 GL_ARB_depth_buffer_float (Float depth buffers) DONE (v3d)
49 GL_ARB_framebuffer_object (Framebuffer objects) DONE (v3d, vc4)
51 GL_ARB_half_float_vertex DONE (v3d, vc4, lima)
52 GL_EXT_texture_integer DONE (v3d)
53 GL_EXT_texture_array DONE (v3d)
[all …]
/third_party/gstreamer/gstplugins_good/gst/goom/
Dsurf3d.h27 v3d *vertex;
28 v3d *svertex;
31 v3d center;
47 grid3d *grid3d_new (int sizex, int defx, int sizez, int defz, v3d center);
/third_party/mesa3d/docs/drivers/
Dv3d.rst4 Mesa's ``v3d`` graphics driver stack includes a `conformant GLES3.1
7 called ``v3d`` and a Vulkan graphics driver called ``v3dv``, notably
10 The v3d Mesa drivers communicate directly with the `v3d
11 <https://www.kernel.org/doc/html/latest/gpu/v3d.html>`__ kernel DRM
16 while executing rendering on the v3d kernel module.
22 use of the open source v3d stack, but porting a particular hardware
/third_party/mesa3d/src/broadcom/drm-shim/
Dv3d_noop.c48 static struct v3d_device v3d = { variable
67 assert(UINT_MAX - v3d.next_offset > create->size); in v3d_ioctl_create_bo()
68 bo->offset = v3d.next_offset; in v3d_ioctl_create_bo()
69 v3d.next_offset += create->size; in v3d_ioctl_create_bo()
/third_party/mesa3d/docs/relnotes/
D19.0.0.rst681 - v3d: Fix a copy-and-paste comment in the simulator code.
682 - v3d: Fix a typo in a comment in job handling.
683 - v3d: Drop #if 0-ed out v3d_dump_to_file().
684 - v3d: Respect user-passed strides for BO imports.
685 - v3d: Take advantage of \_mesa_hash_table_remove_key() in the
687 - v3d: Use the TLB R/B swapping instead of recompiles when available.
688 - v3d: Update the TLB config for depth writes on V3D 4.2.
690 - v3d: Maintain a mapping of the GEM buffer in the simulator.
691 - v3d: Remove the special path for simulaton of the submit ioctl.
699 - v3d: Fix double-swapping of R/B on V3D 4.1
[all …]

1234