/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_context.c | 42 struct vc4_context *vc4 = vc4_context(pctx); in vc4_flush() local 44 hash_table_foreach(vc4->jobs, entry) { in vc4_flush() 46 vc4_job_submit(vc4, job); in vc4_flush() 54 struct vc4_context *vc4 = vc4_context(pctx); in vc4_pipe_flush() local 64 drmSyncobjExportSyncFile(vc4->fd, vc4->job_syncobj, in vc4_pipe_flush() 68 struct vc4_fence *f = vc4_fence_create(vc4->screen, in vc4_pipe_flush() 69 vc4->last_emit_seqno, in vc4_pipe_flush() 90 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_debug_callback() local 93 vc4 in vc4_set_debug_callback() 101 struct vc4_context *vc4 = vc4_context(pctx); vc4_invalidate_resource() local 119 struct vc4_context *vc4 = vc4_context(pctx); vc4_context_destroy() local 157 struct vc4_context *vc4; vc4_context_create() local [all...] |
H A D | vc4_draw.c | 76 vc4_start_draw(struct vc4_context *vc4) in vc4_start_draw() argument 78 struct vc4_job *job = vc4->job; in vc4_start_draw() 109 job->draw_width = vc4->framebuffer.width; in vc4_start_draw() 110 job->draw_height = vc4->framebuffer.height; in vc4_start_draw() 117 struct vc4_context *vc4 = vc4_context(pctx); in vc4_predraw_check_textures() local 128 vc4_flush_jobs_writing_resource(vc4, view->texture); in vc4_predraw_check_textures() 133 vc4_emit_gl_shader_state(struct vc4_context *vc4, in vc4_emit_gl_shader_state() argument 138 struct vc4_job *job = vc4->job; in vc4_emit_gl_shader_state() 140 struct vc4_vertex_stateobj *vtx = vc4->vtx; in vc4_emit_gl_shader_state() 142 struct vc4_vertexbuf_stateobj *vertexbuf = &vc4 in vc4_emit_gl_shader_state() 280 struct vc4_context *vc4 = vc4_context(pctx); vc4_hw_2116_workaround() local 327 struct vc4_context *vc4 = vc4_context(pctx); vc4_draw_vbo() local 547 struct vc4_context *vc4 = vc4_context(pctx); vc4_clear() local [all...] |
H A D | vc4_job.c | 35 vc4_job_free(struct vc4_context *vc4, struct vc4_job *job) in vc4_job_free() argument 42 _mesa_hash_table_remove_key(vc4->jobs, &job->key); in vc4_job_free() 45 _mesa_hash_table_remove_key(vc4->write_jobs, in vc4_job_free() 50 _mesa_hash_table_remove_key(vc4->write_jobs, in vc4_job_free() 55 _mesa_hash_table_remove_key(vc4->write_jobs, in vc4_job_free() 60 _mesa_hash_table_remove_key(vc4->write_jobs, in vc4_job_free() 68 if (vc4->job == job) in vc4_job_free() 69 vc4->job = NULL; in vc4_job_free() 75 vc4_job_create(struct vc4_context *vc4) in vc4_job_create() argument 77 struct vc4_job *job = rzalloc(vc4, struc in vc4_job_create() 99 vc4_flush_jobs_writing_resource(struct vc4_context *vc4, struct pipe_resource *prsc) vc4_flush_jobs_writing_resource() argument 111 vc4_flush_jobs_reading_resource(struct vc4_context *vc4, struct pipe_resource *prsc) vc4_flush_jobs_reading_resource() argument 167 vc4_get_job(struct vc4_context *vc4, struct pipe_surface *cbuf, struct pipe_surface *zsbuf) vc4_get_job() argument 226 vc4_get_job_for_fbo(struct vc4_context *vc4) vc4_get_job_for_fbo() argument 370 vc4_job_submit(struct vc4_context *vc4, struct vc4_job *job) vc4_job_submit() argument 539 vc4_job_init(struct vc4_context *vc4) vc4_job_init() argument [all...] |
H A D | vc4_emit.c | 29 struct vc4_context *vc4 = vc4_context(pctx); in vc4_emit_state() local 30 struct vc4_job *job = vc4->job; in vc4_emit_state() 32 if (vc4->dirty & (VC4_DIRTY_SCISSOR | VC4_DIRTY_VIEWPORT | in vc4_emit_state() 34 float *vpscale = vc4->viewport.scale; in vc4_emit_state() 35 float *vptranslate = vc4->viewport.translate; in vc4_emit_state() 50 if (!vc4->rasterizer->base.scissor) { in vc4_emit_state() 56 minx = MAX2(vp_minx, vc4->scissor.minx); in vc4_emit_state() 57 miny = MAX2(vp_miny, vc4->scissor.miny); in vc4_emit_state() 58 maxx = MAX2(MIN2(vp_maxx, vc4->scissor.maxx), minx); in vc4_emit_state() 59 maxy = MAX2(MIN2(vp_maxy, vc4 in vc4_emit_state() [all...] |
H A D | vc4_state.c | 54 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_blend_color() local 55 vc4->blend_color.f = *blend_color; in vc4_set_blend_color() 57 vc4->blend_color.ub[i] = float_to_ubyte(blend_color->color[i]); in vc4_set_blend_color() 58 vc4->dirty |= VC4_DIRTY_BLEND_COLOR; in vc4_set_blend_color() 65 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_stencil_ref() local 66 vc4->stencil_ref = stencil_ref; in vc4_set_stencil_ref() 67 vc4->dirty |= VC4_DIRTY_STENCIL_REF; in vc4_set_stencil_ref() 74 struct vc4_context *vc4 = vc4_context(pctx); in vc4_set_clip_state() local 75 vc4->clip = *clip; in vc4_set_clip_state() 76 vc4 in vc4_set_clip_state() 82 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_sample_mask() local 285 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_polygon_stipple() local 296 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_scissor_states() local 308 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_viewport_states() local 320 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_vertex_buffers() local 335 struct vc4_context *vc4 = vc4_context(pctx); vc4_blend_state_bind() local 343 struct vc4_context *vc4 = vc4_context(pctx); vc4_rasterizer_state_bind() local 358 struct vc4_context *vc4 = vc4_context(pctx); vc4_zsa_state_bind() local 381 struct vc4_context *vc4 = vc4_context(pctx); vc4_vertex_state_bind() local 392 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_constant_buffer() local 418 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_framebuffer_state() local 449 vc4_get_stage_tex(struct vc4_context *vc4, enum pipe_shader_type shader) vc4_get_stage_tex() argument 531 struct vc4_context *vc4 = vc4_context(pctx); vc4_sampler_states_bind() local 658 struct vc4_context *vc4 = vc4_context(pctx); vc4_set_sampler_views() local [all...] |
H A D | vc4_blit.c | 54 struct vc4_context *vc4 = vc4_context(pctx); in vc4_tile_blit() local 130 vc4_flush_jobs_reading_resource(vc4, info->src.resource); in vc4_tile_blit() 132 struct vc4_job *job = vc4_get_job(vc4, dst_surf, NULL); in vc4_tile_blit() 148 vc4_job_submit(vc4, job); in vc4_tile_blit() 157 vc4_blitter_save(struct vc4_context *vc4) in vc4_blitter_save() argument 159 util_blitter_save_fragment_constant_buffer_slot(vc4->blitter, in vc4_blitter_save() 160 vc4->constbuf[PIPE_SHADER_FRAGMENT].cb); in vc4_blitter_save() 161 util_blitter_save_vertex_buffer_slot(vc4->blitter, vc4->vertexbuf.vb); in vc4_blitter_save() 162 util_blitter_save_vertex_elements(vc4 in vc4_blitter_save() 182 struct vc4_context *vc4 = vc4_context(pctx); vc4_get_yuv_vs() local 218 struct vc4_context *vc4 = vc4_context(pctx); vc4_get_yuv_fs() local 309 struct vc4_context *vc4 = vc4_context(pctx); vc4_yuv_blit() local 405 struct vc4_context *vc4 = vc4_context(ctx); vc4_render_blit() local [all...] |
H A D | vc4_register_allocate.c | 109 vc4_alloc_reg_set(struct vc4_context *vc4) in vc4_alloc_reg_set() argument 115 if (vc4->regs) in vc4_alloc_reg_set() 118 vc4->regs = ra_alloc_reg_set(vc4, ARRAY_SIZE(vc4_regs), false); in vc4_alloc_reg_set() 125 vc4->reg_class_any[i] = ra_alloc_contig_reg_class(vc4->regs, 1); in vc4_alloc_reg_set() 126 vc4->reg_class_a_or_b[i] = ra_alloc_contig_reg_class(vc4->regs, 1); in vc4_alloc_reg_set() 127 vc4->reg_class_a_or_b_or_acc[i] = ra_alloc_contig_reg_class(vc4 in vc4_alloc_reg_set() 250 vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c) vc4_register_allocate() argument [all...] |
H A D | vc4_fence.c | 110 struct vc4_context *vc4 = vc4_context(pctx); in vc4_fence_create_fd() local 114 *fence = vc4_fence_create(vc4->screen, vc4->last_emit_seqno, in vc4_fence_create_fd() 122 struct vc4_context *vc4 = vc4_context(pctx); in vc4_fence_server_sync() local 126 sync_accumulate("vc4", &vc4->in_fence_fd, fence->fd); in vc4_fence_server_sync() 138 vc4_fence_context_init(struct vc4_context *vc4) in vc4_fence_context_init() argument 140 vc4->base.create_fence_fd = vc4_fence_create_fd; in vc4_fence_context_init() 141 vc4->base.fence_server_sync = vc4_fence_server_sync; in vc4_fence_context_init() 142 vc4 in vc4_fence_context_init() [all...] |
H A D | vc4_context.h | 142 * VC4_DIRTY_* flags that, when set in vc4->dirty, mean that the 195 /* Hash table key for vc4->jobs */ 431 if (unlikely(vc4->debug.debug_message)) \ 432 util_debug_message(&vc4->debug, PERF_INFO, __VA_ARGS__); \ 481 void vc4_write_uniforms(struct vc4_context *vc4, 487 int vc4_job_init(struct vc4_context *vc4); 488 int vc4_fence_context_init(struct vc4_context *vc4); 489 struct vc4_job *vc4_get_job(struct vc4_context *vc4, 492 struct vc4_job *vc4_get_job_for_fbo(struct vc4_context *vc4); 494 void vc4_job_submit(struct vc4_context *vc4, struc [all...] |
H A D | vc4_uniforms.c | 191 vc4_write_uniforms(struct vc4_context *vc4, struct vc4_compiled_shader *shader, in vc4_write_uniforms() argument 196 struct vc4_job *job = vc4->job; in vc4_write_uniforms() 219 cl_aligned_f(&uniforms, vc4->viewport.scale[0] * 16.0f); in vc4_write_uniforms() 222 cl_aligned_f(&uniforms, vc4->viewport.scale[1] * 16.0f); in vc4_write_uniforms() 226 cl_aligned_f(&uniforms, vc4->viewport.translate[2]); in vc4_write_uniforms() 229 cl_aligned_f(&uniforms, vc4->viewport.scale[2]); in vc4_write_uniforms() 234 vc4->clip.ucp[data / 4][data % 4]); in vc4_write_uniforms() 260 u_upload_data(vc4->uploader, 0, in vc4_write_uniforms() 306 CLAMP(vc4->blend_color.f.color[uinfo->contents[i] - in vc4_write_uniforms() 313 vc4_get_format_swizzle(vc4 in vc4_write_uniforms() [all...] |
H A D | vc4_program.c | 1700 "vc4 doesn't support indirect inputs"); in ntq_emit_load_input() 1796 "vc4 doesn't support indirect outputs"); in ntq_emit_intrinsic() 1883 if (!c->vc4->screen->has_control_flow) { in ntq_emit_if() 2038 if (!c->vc4->screen->has_control_flow) { in ntq_emit_loop() 2205 vc4_shader_ntq(struct vc4_context *vc4, enum qstage stage, in vc4_shader_ntq() argument 2210 c->vc4 = vc4; in vc4_shader_ntq() 2394 vc4_generate_code(vc4, c); in vc4_shader_ntq() 2416 struct vc4_context *vc4 = vc4_context(pctx); in vc4_shader_state_create() local 2421 so->program_id = vc4 in vc4_shader_state_create() 2495 vc4_setup_compiled_fs_inputs(struct vc4_context *vc4, struct vc4_compile *c, struct vc4_compiled_shader *shader) vc4_setup_compiled_fs_inputs() argument 2560 vc4_get_compiled_shader(struct vc4_context *vc4, enum qstage stage, struct vc4_key *key) vc4_get_compiled_shader() argument 2642 vc4_setup_shared_key(struct vc4_context *vc4, struct vc4_key *key, struct vc4_texture_stateobj *texstate) vc4_setup_shared_key() argument 2677 vc4_update_compiled_fs(struct vc4_context *vc4, uint8_t prim_mode) vc4_update_compiled_fs() argument 2750 vc4_update_compiled_vs(struct vc4_context *vc4, uint8_t prim_mode) vc4_update_compiled_vs() argument 2795 vc4_update_compiled_shaders(struct vc4_context *vc4, uint8_t prim_mode) vc4_update_compiled_shaders() argument 2875 struct vc4_context *vc4 = vc4_context(pctx); vc4_shader_state_delete() local 2894 struct vc4_context *vc4 = vc4_context(pctx); vc4_fp_state_bind() local 2902 struct vc4_context *vc4 = vc4_context(pctx); vc4_vp_state_bind() local 2910 struct vc4_context *vc4 = vc4_context(pctx); vc4_program_init() local 2932 struct vc4_context *vc4 = vc4_context(pctx); vc4_program_fini() local [all...] |
H A D | vc4_resource.c | 76 struct vc4_context *vc4 = vc4_context(pctx); in vc4_resource_transfer_unmap() local 95 slab_free(&vc4->transfer_pool, ptrans); in vc4_resource_transfer_unmap() 105 struct vc4_context *vc4 = vc4_context(pctx); in vc4_resource_transfer_map() local 133 vc4->dirty |= VC4_DIRTY_VTXBUF; in vc4_resource_transfer_map() 138 vc4_flush_jobs_reading_resource(vc4, prsc); in vc4_resource_transfer_map() 146 vc4_flush_jobs_reading_resource(vc4, prsc); in vc4_resource_transfer_map() 148 vc4_flush_jobs_writing_resource(vc4, prsc); in vc4_resource_transfer_map() 156 trans = slab_zalloc(&vc4->transfer_pool); in vc4_resource_transfer_map() 320 /* FDs are cross-device, so we can export directly from vc4. in vc4_resource_get_handle() 420 "rsc %s %p (format %s: vc4 in vc4_setup_slices() 1016 struct vc4_context *vc4 = vc4_context(pctx); vc4_update_shadow_baselevel_texture() local 1087 struct vc4_context *vc4 = vc4_context(pctx); vc4_get_shadow_index_buffer() local [all...] |
H A D | vc4_qpu_emit.c | 589 vc4_generate_code(struct vc4_context *vc4, struct vc4_compile *c) in vc4_generate_code() argument 594 struct qpu_reg *temp_registers = vc4_register_allocate(vc4, c); in vc4_generate_code()
|
H A D | vc4_qir.h | 386 struct vc4_context *vc4; member
|
/third_party/mesa3d/src/gallium/targets/dri/ |
H A D | target.c | 80 DEFINE_LOADER_DRM_ENTRYPOINT(vc4)
|
/third_party/mesa3d/src/gallium/auxiliary/target-helpers/ |
H A D | drm_helper.h | 308 #include "vc4/drm/vc4_drm_public.h" 318 DRM_DRIVER_DESCRIPTOR(vc4, v3d_driconf, ARRAY_SIZE(v3d_driconf)) 320 DRM_DRIVER_DESCRIPTOR_STUB(vc4)
|
/third_party/ffmpeg/libavcodec/ppc/ |
H A D | fft_vsx.h | 593 vec_f vc4 = {0.0, 0.38268343, sqrthalf, 0.92387953}; in fft16_vsx() local 674 vz8 = vec_madd(vz5, vc4, vz8); in fft16_vsx() 677 vz11 = vec_madd(vz6, vc4, vz11); in fft16_vsx()
|