• Home
  • Raw
  • Download

Lines Matching refs:rscreen

57 static void r600_query_sw_destroy(struct r600_common_screen *rscreen,  in r600_query_sw_destroy()  argument
62 rscreen->b.fence_reference(&rscreen->b, &query->fence, NULL); in r600_query_sw_destroy()
482 void r600_query_hw_destroy(struct r600_common_screen *rscreen, in r600_query_hw_destroy() argument
500 static struct r600_resource *r600_new_query_buffer(struct r600_common_screen *rscreen, in r600_new_query_buffer() argument
504 rscreen->info.min_alloc_size); in r600_new_query_buffer()
511 pipe_buffer_create(&rscreen->b, 0, in r600_new_query_buffer()
516 if (!query->ops->prepare_buffer(rscreen, query, buf)) { in r600_new_query_buffer()
524 static bool r600_query_hw_prepare_buffer(struct r600_common_screen *rscreen, in r600_query_hw_prepare_buffer() argument
529 uint32_t *results = rscreen->ws->buffer_map(rscreen->ws, buffer->buf, NULL, in r600_query_hw_prepare_buffer()
540 unsigned max_rbs = rscreen->info.max_render_backends; in r600_query_hw_prepare_buffer()
541 unsigned enabled_rb_mask = rscreen->info.enabled_rb_mask; in r600_query_hw_prepare_buffer()
585 static void r600_query_hw_add_result(struct r600_common_screen *rscreen,
599 bool r600_query_hw_init(struct r600_common_screen *rscreen, in r600_query_hw_init() argument
602 query->buffer.buf = r600_new_query_buffer(rscreen, query); in r600_query_hw_init()
609 static struct pipe_query *r600_query_hw_create(struct r600_common_screen *rscreen, in r600_query_hw_create() argument
625 query->result_size = 16 * rscreen->info.max_render_backends; in r600_query_hw_create()
628 query->num_cs_dw_end = 6 + r600_gfx_write_fence_dwords(rscreen); in r600_query_hw_create()
633 query->num_cs_dw_end = 8 + r600_gfx_write_fence_dwords(rscreen); in r600_query_hw_create()
637 query->num_cs_dw_end = 8 + r600_gfx_write_fence_dwords(rscreen); in r600_query_hw_create()
658 query->result_size = (rscreen->gfx_level >= EVERGREEN ? 11 : 8) * 16; in r600_query_hw_create()
661 query->num_cs_dw_end = 6 + r600_gfx_write_fence_dwords(rscreen); in r600_query_hw_create()
669 if (!r600_query_hw_init(rscreen, query)) { in r600_query_hw_create()
978 struct r600_common_screen *rscreen = in r600_create_query() local
986 return r600_query_hw_create(rscreen, query_type, index); in r600_create_query()
1171 static void r600_query_hw_add_result(struct r600_common_screen *rscreen, in r600_query_hw_add_result() argument
1176 unsigned max_rbs = rscreen->info.max_render_backends; in r600_query_hw_add_result()
1235 if (rscreen->gfx_level >= EVERGREEN) { in r600_query_hw_add_result()
1333 struct r600_common_screen *rscreen = rctx->screen; in r600_query_hw_get_result() local
1354 query->ops->add_result(rscreen, query, map + results_base, in r600_query_hw_get_result()
1363 result->u64 = (1000000 * result->u64) / rscreen->info.clock_crystal_freq; in r600_query_hw_get_result()
1830 void r600_query_fix_enabled_rb_mask(struct r600_common_screen *rscreen) in r600_query_fix_enabled_rb_mask() argument
1833 (struct r600_common_context*)rscreen->aux_context; in r600_query_fix_enabled_rb_mask()
1852 assert(rscreen->gfx_level <= CAYMAN); in r600_query_fix_enabled_rb_mask()
1861 if (rscreen->info.r600_gb_backend_map_valid && in r600_query_fix_enabled_rb_mask()
1862 (ctx->gfx_level < EVERGREEN || rscreen->info.r600_gb_backend_map != 0)) { in r600_query_fix_enabled_rb_mask()
1863 unsigned num_tile_pipes = rscreen->info.num_tile_pipes; in r600_query_fix_enabled_rb_mask()
1864 unsigned backend_map = rscreen->info.r600_gb_backend_map; in r600_query_fix_enabled_rb_mask()
1881 rscreen->info.enabled_rb_mask = mask; in r600_query_fix_enabled_rb_mask()
1923 if (rscreen->debug_flags & DBG_INFO && in r600_query_fix_enabled_rb_mask()
1924 mask != rscreen->info.enabled_rb_mask) { in r600_query_fix_enabled_rb_mask()
1927 rscreen->info.enabled_rb_mask = mask; in r600_query_fix_enabled_rb_mask()
2030 static unsigned r600_get_num_queries(struct r600_common_screen *rscreen) in r600_get_num_queries() argument
2039 struct r600_common_screen *rscreen = (struct r600_common_screen*)screen; in r600_get_driver_query_info() local
2040 unsigned num_queries = r600_get_num_queries(rscreen); in r600_get_driver_query_info()
2044 r600_get_perfcounter_info(rscreen, 0, NULL); in r600_get_driver_query_info()
2050 return r600_get_perfcounter_info(rscreen, index - num_queries, info); in r600_get_driver_query_info()
2058 info->max_value.u64 = (uint64_t)rscreen->info.vram_size_kb * 1024; in r600_get_driver_query_info()
2063 info->max_value.u64 = (uint64_t)rscreen->info.gart_size_kb * 1024; in r600_get_driver_query_info()
2069 info->max_value.u64 = (uint64_t)rscreen->info.vram_vis_size_kb * 1024; in r600_get_driver_query_info()
2073 if (info->group_id != ~(unsigned)0 && rscreen->perfcounters) in r600_get_driver_query_info()
2074 info->group_id += rscreen->perfcounters->num_groups; in r600_get_driver_query_info()
2087 struct r600_common_screen *rscreen = (struct r600_common_screen *)screen; in r600_get_driver_query_group_info() local
2090 if (rscreen->perfcounters) in r600_get_driver_query_group_info()
2091 num_pc_groups = rscreen->perfcounters->num_groups; in r600_get_driver_query_group_info()
2097 return r600_get_perfcounter_group_info(rscreen, index, info); in r600_get_driver_query_group_info()
2126 void r600_init_screen_query_functions(struct r600_common_screen *rscreen) in r600_init_screen_query_functions() argument
2128 rscreen->b.get_driver_query_info = r600_get_driver_query_info; in r600_init_screen_query_functions()
2129 rscreen->b.get_driver_query_group_info = r600_get_driver_query_group_info; in r600_init_screen_query_functions()