• Home
  • Raw
  • Download

Lines Matching refs:sscreen

517 void si_query_buffer_destroy(struct si_screen *sscreen, struct si_query_buffer *buffer)  in si_query_buffer_destroy()  argument
649 static void si_query_hw_add_result(struct si_screen *sscreen, struct si_query_hw *, void *buffer,
661 static struct pipe_query *si_query_hw_create(struct si_screen *sscreen, unsigned query_type, in si_query_hw_create() argument
676 query->result_size = 16 * sscreen->info.max_render_backends; in si_query_hw_create()
678 query->b.num_cs_dw_suspend = 6 + si_cp_write_fence_dwords(sscreen); in si_query_hw_create()
682 query->b.num_cs_dw_suspend = 8 + si_cp_write_fence_dwords(sscreen); in si_query_hw_create()
686 query->b.num_cs_dw_suspend = 8 + si_cp_write_fence_dwords(sscreen); in si_query_hw_create()
707 query->b.num_cs_dw_suspend = 6 + si_cp_write_fence_dwords(sscreen); in si_query_hw_create()
1088 struct si_screen *sscreen = (struct si_screen *)ctx->screen; in si_create_query() local
1094 if (sscreen->use_ngg_streamout && in si_create_query()
1099 return gfx10_sh_query_create(sscreen, query_type, index); in si_create_query()
1101 return si_query_hw_create(sscreen, query_type, index); in si_create_query()
1255 static void si_query_hw_add_result(struct si_screen *sscreen, struct si_query_hw *query, in si_query_hw_add_result() argument
1258 unsigned max_rbs = sscreen->info.max_render_backends; in si_query_hw_add_result()
1392 struct si_screen *sscreen = sctx->screen; in si_query_hw_get_result() local
1412 query->ops->add_result(sscreen, query, map + results_base, result); in si_query_hw_get_result()
1420 result->u64 = (1000000 * result->u64) / sscreen->info.clock_crystal_freq; in si_query_hw_get_result()
1744 static unsigned si_get_num_queries(struct si_screen *sscreen) in si_get_num_queries() argument
1747 if (sscreen->info.is_amdgpu) { in si_get_num_queries()
1748 if (sscreen->info.chip_class >= GFX8) in si_get_num_queries()
1755 if (sscreen->info.has_read_registers_query) { in si_get_num_queries()
1756 if (sscreen->info.chip_class == GFX7) in si_get_num_queries()
1768 struct si_screen *sscreen = (struct si_screen *)screen; in si_get_driver_query_info() local
1769 unsigned num_queries = si_get_num_queries(sscreen); in si_get_driver_query_info()
1772 unsigned num_perfcounters = si_get_perfcounter_info(sscreen, 0, NULL); in si_get_driver_query_info()
1778 return si_get_perfcounter_info(sscreen, index - num_queries, info); in si_get_driver_query_info()
1787 info->max_value.u64 = sscreen->info.vram_size; in si_get_driver_query_info()
1793 info->max_value.u64 = sscreen->info.gart_size; in si_get_driver_query_info()
1799 info->max_value.u64 = sscreen->info.vram_vis_size; in si_get_driver_query_info()
1803 if (info->group_id != ~(unsigned)0 && sscreen->perfcounters) in si_get_driver_query_info()
1804 info->group_id += sscreen->perfcounters->base.num_groups; in si_get_driver_query_info()
1816 struct si_screen *sscreen = (struct si_screen *)screen; in si_get_driver_query_group_info() local
1819 if (sscreen->perfcounters) in si_get_driver_query_group_info()
1820 num_pc_groups = sscreen->perfcounters->base.num_groups; in si_get_driver_query_group_info()
1826 return si_get_perfcounter_group_info(sscreen, index, info); in si_get_driver_query_group_info()
1856 void si_init_screen_query_functions(struct si_screen *sscreen) in si_init_screen_query_functions() argument
1858 sscreen->b.get_driver_query_info = si_get_driver_query_info; in si_init_screen_query_functions()
1859 sscreen->b.get_driver_query_group_info = si_get_driver_query_group_info; in si_init_screen_query_functions()