Home
last modified time | relevance | path

Searched refs:si_screen (Results 1 – 25 of 50) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_get.c49 struct si_screen *sscreen = (struct si_screen *)pscreen; in si_get_param()
439 struct si_screen *sscreen = (struct si_screen *)pscreen; in si_get_shader_param()
516 struct si_screen *sscreen = (struct si_screen *)screen; in si_get_compiler_options()
529 struct si_screen *sscreen = (struct si_screen *)pscreen; in si_get_device_uuid()
536 struct si_screen *sscreen = (struct si_screen *)pscreen; in si_get_name()
571 struct si_screen *sscreen = (struct si_screen *)screen; in si_get_video_param()
802 static unsigned get_max_threads_per_block(struct si_screen *screen, enum pipe_shader_ir ir_type) in get_max_threads_per_block()
814 struct si_screen *sscreen = (struct si_screen *)screen; in si_get_compute_param()
962 struct si_screen *sscreen = (struct si_screen *)screen; in si_get_timestamp()
970 struct si_screen *sscreen = (struct si_screen *)screen; in si_query_memory_info()
[all …]
Dsi_gpu_load.c80 static void si_update_mmio_counters(struct si_screen *sscreen, union si_mmio_counters *counters) in si_update_mmio_counters()
132 struct si_screen *sscreen = (struct si_screen *)param; in si_gpu_load_thread()
160 void si_gpu_load_kill_thread(struct si_screen *sscreen) in si_gpu_load_kill_thread()
170 static uint64_t si_read_mmio_counter(struct si_screen *sscreen, unsigned busy_index) in si_read_mmio_counter()
190 static unsigned si_end_mmio_counter(struct si_screen *sscreen, uint64_t begin, unsigned busy_index) in si_end_mmio_counter()
216 static unsigned busy_index_from_type(struct si_screen *sscreen, unsigned type) in busy_index_from_type()
266 uint64_t si_begin_counter(struct si_screen *sscreen, unsigned type) in si_begin_counter()
272 unsigned si_end_counter(struct si_screen *sscreen, unsigned type, uint64_t begin) in si_end_counter()
Dsi_query.h36 struct si_screen;
178 void (*add_result)(struct si_screen *screen, struct si_query_hw *, void *buffer,
194 void si_query_buffer_destroy(struct si_screen *sctx, struct si_query_buffer *buffer);
222 unsigned si_query_pipestat_end_dw_offset(struct si_screen *sscreen,
280 struct pipe_query *gfx10_sh_query_create(struct si_screen *screen, enum pipe_query_type query_type,
294 int si_get_perfcounter_info(struct si_screen *, unsigned index,
296 int si_get_perfcounter_group_info(struct si_screen *, unsigned index,
Dsi_pipe.h548 struct si_screen { struct
558 void (*make_texture_descriptor)(struct si_screen *screen, struct si_texture *tex, bool sampler, argument
987 struct si_screen *screen;
1349 void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res, uint64_t size,
1351 bool si_alloc_resource(struct si_screen *sscreen, struct si_resource *res);
1363 void si_init_screen_buffer_functions(struct si_screen *sscreen);
1381 bool vi_alpha_is_on_msb(struct si_screen *sscreen, enum pipe_format format);
1423 void si_screen_clear_buffer(struct si_screen *sscreen, struct pipe_resource *dst, uint64_t offset,
1481 unsigned si_cp_write_fence_dwords(struct si_screen *screen);
1485 void si_init_screen_fence_functions(struct si_screen *screen);
[all …]
Dsi_state.h46 struct si_screen;
487 void si_set_mutable_tex_desc_fields(struct si_screen *sscreen, struct si_texture *tex,
536 void si_init_screen_state_functions(struct si_screen *sscreen);
538 void si_make_buffer_descriptor(struct si_screen *screen, struct si_resource *buf,
548 unsigned gfx103_get_cu_mask_ps(struct si_screen *sscreen);
564 struct si_pm4_state *si_build_vgt_shader_config(struct si_screen *screen, union si_vgt_stages_key k…
567 bool si_shader_cache_load_shader(struct si_screen *sscreen, unsigned char ir_sha1_cache_key[20],
569 void si_shader_cache_insert_shader(struct si_screen *sscreen, unsigned char ir_sha1_cache_key[20],
572 void si_init_screen_live_shader_cache(struct si_screen *sscreen);
574 bool si_init_shader_cache(struct si_screen *sscreen);
[all …]
Dsi_shader.h491 struct si_screen *screen;
968 bool si_compile_shader(struct si_screen *sscreen, struct ac_llvm_compiler *compiler,
970 bool si_create_shader_variant(struct si_screen *sscreen, struct ac_llvm_compiler *compiler,
975 bool si_shader_binary_upload(struct si_screen *sscreen, struct si_shader *shader,
977 void si_shader_dump(struct si_screen *sscreen, struct si_shader *shader,
979 void si_shader_dump_stats_for_shader_db(struct si_screen *screen, struct si_shader *shader,
981 void si_multiwave_lds_size_workaround(struct si_screen *sscreen, unsigned *lds_size);
988 void si_nir_scan_shader(struct si_screen *sscreen, const struct nir_shader *nir,
992 struct si_shader *si_generate_gs_copy_shader(struct si_screen *sscreen,
999 void si_nir_opts(struct si_screen *sscreen, struct nir_shader *nir, bool first);
[all …]
Dsi_shader_nir.c31 struct si_screen *sscreen = (struct si_screen *)data; in si_alu_to_scalar_filter()
57 void si_nir_opts(struct si_screen *sscreen, struct nir_shader *nir, bool first) in si_nir_opts()
158 static void si_late_optimize_16bit_samplers(struct si_screen *sscreen, nir_shader *nir) in si_late_optimize_16bit_samplers()
240 static void si_lower_nir(struct si_screen *sscreen, struct nir_shader *nir) in si_lower_nir()
333 struct si_screen *sscreen = (struct si_screen *)screen; in si_finalize_nir()
Dsi_texture.c45 static enum radeon_surf_mode si_choose_tiling(struct si_screen *sscreen,
131 static unsigned si_texture_get_offset(struct si_screen *sscreen, struct si_texture *tex, in si_texture_get_offset()
173 static int si_init_surface(struct si_screen *sscreen, struct radeon_surf *surface, in si_init_surface()
343 void si_texture_discard_cmask(struct si_screen *sscreen, struct si_texture *tex) in si_texture_discard_cmask()
376 static bool si_texture_discard_dcc(struct si_screen *sscreen, struct si_texture *tex) in si_texture_discard_dcc()
412 struct si_screen *sscreen = sctx->screen; in si_texture_disable_dcc()
530 static void si_set_tex_bo_metadata(struct si_screen *sscreen, struct si_texture *tex) in si_set_tex_bo_metadata()
558 struct si_screen *sscreen = (struct si_screen *)tex->buffer.b.b.screen; in si_displayable_dcc_needs_explicit_flush()
582 struct si_screen *sscreen = (struct si_screen *)screen; in si_resource_get_param()
661 struct si_screen *sscreen = (struct si_screen *)screen; in si_texture_get_handle()
[all …]
Dsi_buffer.c45 void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res, uint64_t size, in si_init_resource_fields()
168 bool si_alloc_resource(struct si_screen *sscreen, struct si_resource *res) in si_alloc_resource()
217 struct si_screen *sscreen = (struct si_screen *)screen; in si_resource_destroy()
222 radeon_bo_reference(((struct si_screen*)screen)->ws, &buffer->buf, NULL); in si_resource_destroy()
228 radeon_bo_reference(((struct si_screen*)screen)->ws, &tex->buffer, NULL); in si_resource_destroy()
239 radeon_bo_reference(((struct si_screen*)screen)->ws, &resource->buf, NULL); in si_resource_destroy()
583 struct si_screen *sscreen = (struct si_screen *)screen; in si_buffer_create()
631 struct si_screen *sscreen = (struct si_screen *)screen; in si_buffer_from_user_memory()
663 struct si_screen *sscreen = (struct si_screen *)screen; in si_buffer_from_winsys_buffer()
756 void si_init_screen_buffer_functions(struct si_screen *sscreen) in si_init_screen_buffer_functions()
Dsi_fence.c91 struct si_screen *sscreen = ctx->screen; in si_cp_release_mem()
164 unsigned si_cp_write_fence_dwords(struct si_screen *screen) in si_cp_write_fence_dwords()
203 struct radeon_winsys *ws = ((struct si_screen *)screen)->ws; in si_fence_reference()
285 struct radeon_winsys *rws = ((struct si_screen *)screen)->ws; in si_fence_finish()
384 struct si_screen *sscreen = (struct si_screen *)ctx->screen; in si_create_fence_fd()
424 struct si_screen *sscreen = (struct si_screen *)screen; in si_fence_get_fd()
614 void si_init_screen_fence_functions(struct si_screen *screen) in si_init_screen_fence_functions()
Dsi_shader_internal.h42 struct si_screen *screen;
178 void si_fix_resource_usage(struct si_screen *sscreen, struct si_shader *shader);
195 bool si_compile_llvm(struct si_screen *sscreen, struct si_shader_binary *binary,
199 void si_llvm_context_init(struct si_shader_context *ctx, struct si_screen *sscreen,
225 bool si_llvm_compile_shader(struct si_screen *sscreen, struct ac_llvm_compiler *compiler,
Dsi_pipe.c139 bool si_init_compiler(struct si_screen *sscreen, struct ac_llvm_compiler *compiler) in si_init_compiler()
162 void si_init_aux_async_compute_ctx(struct si_screen *sscreen) in si_init_aux_async_compute_ctx()
415 struct si_screen *screen = sctx->screen; in si_set_debug_callback()
458 struct si_screen *sscreen = (struct si_screen *)screen; in si_create_context()
840 struct radeon_winsys *ws = ((struct si_screen *)screen)->ws; in si_is_resource_busy()
852 struct si_screen *sscreen = (struct si_screen *)screen; in si_pipe_create_context()
908 struct si_screen *sscreen = (struct si_screen *)pscreen; in si_destroy_screen()
991 static void si_init_gs_info(struct si_screen *sscreen) in si_init_gs_info()
996 static void si_test_vmfault(struct si_screen *sscreen, uint64_t test_flags) in si_test_vmfault()
1054 static void si_disk_cache_create(struct si_screen *sscreen) in si_disk_cache_create()
[all …]
Dsi_query.c517 void si_query_buffer_destroy(struct si_screen *sscreen, struct si_query_buffer *buffer) in si_query_buffer_destroy()
576 struct si_screen *screen = sctx->screen; in si_query_buffer_alloc()
606 struct si_screen *screen = sctx->screen; in si_query_hw_prepare_buffer()
640 static unsigned si_query_pipestats_num_results(struct si_screen *sscreen) in si_query_pipestats_num_results()
668 unsigned si_query_pipestat_end_dw_offset(struct si_screen *sscreen, in si_query_pipestat_end_dw_offset()
684 static void si_query_hw_add_result(struct si_screen *sscreen, struct si_query_hw *, void *buffer,
696 static struct pipe_query *si_query_hw_create(struct si_screen *sscreen, unsigned query_type, in si_query_hw_create()
1194 struct si_screen *sscreen = (struct si_screen *)ctx->screen; in si_create_query()
1360 static void si_query_hw_add_result(struct si_screen *sscreen, struct si_query_hw *query, in si_query_hw_add_result()
1491 struct si_screen *sscreen = sctx->screen; in si_query_hw_get_result()
[all …]
Dsi_uvd.c92 struct si_screen *sscreen = (struct si_screen *)buf->base.context->screen; in si_uvd_set_dtb()
Dradeon_vce.c219 struct si_screen *sscreen = (struct si_screen *)enc->screen; in si_vce_frame_offset()
385 struct si_screen *sscreen = (struct si_screen *)context->screen; in si_vce_create_encoder()
517 bool si_vce_is_fw_version_supported(struct si_screen *sscreen) in si_vce_is_fw_version_supported()
Dradeon_video.c92 struct si_screen *sscreen = (struct si_screen *)screen; in si_vid_resize_buffer()
Dsi_perfcounter.c448 static struct si_query_group *get_group_state(struct si_screen *screen, struct si_query_pc *query, in get_group_state()
517 struct si_screen *screen = (struct si_screen *)ctx->screen; in si_create_batch_query()
629 int si_get_perfcounter_info(struct si_screen *screen, unsigned index, in si_get_perfcounter_info()
669 int si_get_perfcounter_group_info(struct si_screen *screen, unsigned index, in si_get_perfcounter_group_info()
695 void si_destroy_perfcounters(struct si_screen *screen) in si_destroy_perfcounters()
707 void si_init_perfcounters(struct si_screen *screen) in si_init_perfcounters()
Dsi_shader.c814 static unsigned get_lds_granularity(struct si_screen *screen, gl_shader_stage stage) in get_lds_granularity()
820 static bool si_shader_binary_open(struct si_screen *screen, struct si_shader *shader, in si_shader_binary_open()
883 static unsigned si_get_shader_binary_size(struct si_screen *screen, struct si_shader *shader) in si_get_shader_binary_size()
915 bool si_shader_binary_upload(struct si_screen *sscreen, struct si_shader *shader, in si_shader_binary_upload()
958 static void si_shader_dump_disassembly(struct si_screen *screen, in si_shader_dump_disassembly()
1020 struct si_screen *sscreen = shader->selector->screen; in si_calculate_max_simd_waves()
1073 void si_shader_dump_stats_for_shader_db(struct si_screen *screen, struct si_shader *shader, in si_shader_dump_stats_for_shader_db()
1097 static void si_shader_dump_stats(struct si_screen *sscreen, struct si_shader *shader, FILE *file, in si_shader_dump_stats()
1165 void si_shader_dump(struct si_screen *sscreen, struct si_shader *shader, in si_shader_dump()
1777 bool si_compile_shader(struct si_screen *sscreen, struct ac_llvm_compiler *compiler, in si_compile_shader()
[all …]
Dsi_state_shaders.cpp40 unsigned si_determine_wave_size(struct si_screen *sscreen, struct si_shader *shader) in si_determine_wave_size()
349 void si_shader_cache_insert_shader(struct si_screen *sscreen, unsigned char ir_sha1_cache_key[20], in si_shader_cache_insert_shader()
413 bool si_shader_cache_load_shader(struct si_screen *sscreen, unsigned char ir_sha1_cache_key[20], in si_shader_cache_load_shader()
481 bool si_init_shader_cache(struct si_screen *sscreen) in si_init_shader_cache()
493 void si_destroy_shader_cache(struct si_screen *sscreen) in si_destroy_shader_cache()
513 static void si_set_tesseval_regs(struct si_screen *sscreen, const struct si_shader_selector *tes, in si_set_tesseval_regs()
588 static void polaris_set_vgt_vertex_reuse(struct si_screen *sscreen, struct si_shader_selector *sel, in polaris_set_vgt_vertex_reuse()
634 static unsigned si_get_vs_vgpr_comp_cnt(struct si_screen *sscreen, struct si_shader *shader, in si_get_vs_vgpr_comp_cnt()
683 static void si_shader_ls(struct si_screen *sscreen, struct si_shader *shader) in si_shader_ls()
706 static void si_shader_hs(struct si_screen *sscreen, struct si_shader *shader) in si_shader_hs()
[all …]
Dradeon_uvd_enc.c268 struct si_screen *sscreen = (struct si_screen *)context->screen; in radeon_uvd_create_encoder()
352 bool si_radeon_uvd_enc_supported(struct si_screen *sscreen) in si_radeon_uvd_enc_supported()
Dsi_state.c400 static void si_blend_check_commutativity(struct si_screen *sscreen, struct si_state_blend *blend, in si_blend_check_commutativity()
932 struct si_screen *sscreen = ((struct si_context *)ctx)->screen; in si_create_rs_state()
1823 struct si_screen *sscreen = (struct si_screen *)screen; in si_translate_texformat()
2091 static unsigned is_wrap_mode_legal(struct si_screen *screen, unsigned wrap) in is_wrap_mode_legal()
2164 static unsigned si_tex_dim(struct si_screen *sscreen, struct si_texture *tex, unsigned view_target, in si_tex_dim()
2210 struct si_screen *sscreen = (struct si_screen *)screen; in si_is_sampler_format_supported()
2235 assert(((struct si_screen *)screen)->info.gfx_level <= GFX9); in si_translate_buffer_dataformat()
2309 assert(((struct si_screen *)screen)->info.gfx_level <= GFX9); in si_translate_buffer_numformat()
2343 struct si_screen *sscreen = (struct si_screen *)screen; in si_is_vertex_format_supported()
2400 struct si_screen *sscreen = (struct si_screen *)screen; in si_is_format_supported()
[all …]
Dradeon_uvd_enc.h428 struct si_screen;
431 bool si_radeon_uvd_enc_supported(struct si_screen *sscreen);
Dsi_state_binning.c43 static struct uvec2 si_find_bin_size(struct si_screen *sscreen, const si_bin_size_subtable table[], in si_find_bin_size()
444 struct si_screen *sscreen = sctx->screen; in si_emit_dpbb_state()
Dsi_shaderlib_tgsi.c88 struct si_screen *sscreen = (struct si_screen *)ctx->screen; in si_create_dma_compute_shader()
Dsi_compute.c117 struct si_screen *sscreen = sel->screen; in si_create_compute_state_async()
233 struct si_screen *sscreen = (struct si_screen *)ctx->screen; in si_create_compute_state()
802 struct si_screen *sscreen = sctx->screen; in si_emit_dispatch_packets()
933 struct si_screen *sscreen = sctx->screen; in si_launch_grid()

12