/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_gpu_load.c | 82 static void r600_update_mmio_counters(struct r600_common_screen *rscreen, in r600_update_mmio_counters() argument 89 rscreen->ws->read_registers(rscreen->ws, GRBM_STATUS, 1, &value); in r600_update_mmio_counters() 116 struct r600_common_screen *rscreen = (struct r600_common_screen*)param; in r600_gpu_load_thread() local 121 while (!p_atomic_read(&rscreen->gpu_load_stop_thread)) { in r600_gpu_load_thread() 139 r600_update_mmio_counters(rscreen, &rscreen->mmio_counters); in r600_gpu_load_thread() 141 p_atomic_dec(&rscreen->gpu_load_stop_thread); in r600_gpu_load_thread() 145 void r600_gpu_load_kill_thread(struct r600_common_screen *rscreen) in r600_gpu_load_kill_thread() argument 147 if (!rscreen->gpu_load_thread) in r600_gpu_load_kill_thread() 150 p_atomic_inc(&rscreen->gpu_load_stop_thread); in r600_gpu_load_kill_thread() 151 thrd_join(rscreen->gpu_load_thread, NULL); in r600_gpu_load_kill_thread() [all …]
|
D | r600_pipe.c | 128 struct r600_screen* rscreen = (struct r600_screen *)screen; in r600_create_context() local 129 struct radeon_winsys *ws = rscreen->b.ws; in r600_create_context() 140 if (!r600_common_context_init(&rctx->b, &rscreen->b, flags)) in r600_create_context() 143 rctx->screen = rscreen; in r600_create_context() 148 if (rscreen->b.info.has_hw_decode) { in r600_create_context() 214 if (rscreen->b.debug_flags & DBG_FORCE_DMA) in r600_create_context() 220 util_blitter_set_texture_multisample(rctx->blitter, rscreen->has_msaa); in r600_create_context() 244 struct r600_screen *rscreen = (struct r600_screen *)pscreen; in r600_get_param() local 245 enum radeon_family family = rscreen->b.family; in r600_get_param() 305 return rscreen->b.info.drm_major == 2 && rscreen->b.info.drm_minor >= 43; in r600_get_param() [all …]
|
D | r600_pipe_common.c | 646 struct r600_common_screen *rscreen, in r600_common_context_init() argument 649 slab_create_child(&rctx->pool_transfers, &rscreen->pool_transfers); in r600_common_context_init() 650 slab_create_child(&rctx->pool_transfers_unsync, &rscreen->pool_transfers); in r600_common_context_init() 652 rctx->screen = rscreen; in r600_common_context_init() 653 rctx->ws = rscreen->ws; in r600_common_context_init() 654 rctx->family = rscreen->family; in r600_common_context_init() 655 rctx->chip_class = rscreen->chip_class; in r600_common_context_init() 671 if ((rscreen->chip_class == EVERGREEN || rscreen->chip_class == CAYMAN) && in r600_common_context_init() 677 if (rscreen->info.drm_major == 2 && rscreen->info.drm_minor >= 43) { in r600_common_context_init() 693 u_suballocator_create(&rctx->b, rscreen->info.gart_page_size, in r600_common_context_init() [all …]
|
D | r600_texture.c | 39 static void r600_texture_discard_cmask(struct r600_common_screen *rscreen, 42 r600_choose_tiling(struct r600_common_screen *rscreen, 173 static unsigned r600_texture_get_offset(struct r600_common_screen *rscreen, in r600_texture_get_offset() argument 196 static int r600_init_surface(struct r600_common_screen *rscreen, in r600_init_surface() argument 215 if (rscreen->chip_class >= EVERGREEN && !is_flushed_depth && in r600_init_surface() 248 r = rscreen->ws->surface_init(rscreen->ws, ptex, flags, bpe, in r600_init_surface() 272 static void r600_texture_init_metadata(struct r600_common_screen *rscreen, in r600_texture_init_metadata() argument 294 static void r600_surface_import_metadata(struct r600_common_screen *rscreen, in r600_surface_import_metadata() argument 320 struct r600_common_screen *rscreen = rctx->screen; in r600_eliminate_fast_color_clear() local 323 if (ctx == rscreen->aux_context) in r600_eliminate_fast_color_clear() [all …]
|
D | r600_pipe_common.h | 414 void (*query_opaque_metadata)(struct r600_common_screen *rscreen, 418 void (*apply_opaque_metadata)(struct r600_common_screen *rscreen, 650 void r600_init_resource_fields(struct r600_common_screen *rscreen, 653 bool r600_alloc_resource(struct r600_common_screen *rscreen, 690 bool r600_common_screen_init(struct r600_common_screen *rscreen, 692 void r600_destroy_common_screen(struct r600_common_screen *rscreen); 696 struct r600_common_screen *rscreen, 699 bool r600_can_dump_shader(struct r600_common_screen *rscreen, 701 bool r600_extra_shader_checks(struct r600_common_screen *rscreen, 703 void r600_screen_clear_buffer(struct r600_common_screen *rscreen, struct pipe_resource *dst, [all …]
|
D | r600_query.c | 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(buffer->buf, NULL, in r600_query_hw_prepare_buffer() 539 unsigned max_rbs = rscreen->info.num_render_backends; in r600_query_hw_prepare_buffer() [all …]
|
D | r600_buffer_common.c | 104 void r600_init_resource_fields(struct r600_common_screen *rscreen, in r600_init_resource_fields() argument 129 if (rscreen->info.drm_major == 2 && in r600_init_resource_fields() 130 rscreen->info.drm_minor < 40) { in r600_init_resource_fields() 157 if (rscreen->info.drm_major == 2 && in r600_init_resource_fields() 158 rscreen->info.drm_minor < 40) in r600_init_resource_fields() 179 if (rscreen->debug_flags & DBG_NO_WC) in r600_init_resource_fields() 195 bool r600_alloc_resource(struct r600_common_screen *rscreen, in r600_alloc_resource() argument 201 new_buf = rscreen->ws->buffer_create(rscreen->ws, res->bo_size, in r600_alloc_resource() 215 if (rscreen->info.has_virtual_memory) in r600_alloc_resource() 216 res->gpu_address = rscreen->ws->buffer_get_virtual_address(res->buf); in r600_alloc_resource() [all …]
|
D | radeon_video.c | 91 struct r600_common_screen *rscreen = (struct r600_common_screen *)screen; in rvid_resize_buffer() local 92 struct radeon_winsys* ws = rscreen->ws; in rvid_resize_buffer() 221 struct r600_common_screen *rscreen = (struct r600_common_screen *)screen; in rvid_get_video_param() local 225 rscreen->ws->query_info(rscreen->ws, &info); in rvid_get_video_param() 231 rvce_is_fw_version_supported(rscreen); in rvid_get_video_param() 260 return rscreen->family >= CHIP_PALM; in rvid_get_video_param() 286 if (rscreen->family < CHIP_PALM) { in rvid_get_video_param() 290 rscreen->family > CHIP_RV770; in rvid_get_video_param()
|
D | radeon_vce.c | 392 struct r600_common_screen *rscreen = (struct r600_common_screen *)context->screen; in rvce_create_encoder() local 399 if (!rscreen->info.vce_fw_version) { in rvce_create_encoder() 403 } else if (!rvce_is_fw_version_supported(rscreen)) { in rvce_create_encoder() 412 if (rscreen->info.drm_major == 3) in rvce_create_encoder() 414 if ((rscreen->info.drm_major == 2 && rscreen->info.drm_minor >= 42) || in rvce_create_encoder() 415 rscreen->info.drm_major == 3) in rvce_create_encoder() 491 bool rvce_is_fw_version_supported(struct r600_common_screen *rscreen) in rvce_is_fw_version_supported() argument 493 switch (rscreen->info.vce_fw_version) { in rvce_is_fw_version_supported() 504 if ((rscreen->info.vce_fw_version & (0xff << 24)) == FW_53) in rvce_is_fw_version_supported()
|
D | r600_test_dma.c | 138 static const char *array_mode_to_string(struct r600_common_screen *rscreen, in array_mode_to_string() argument 141 if (rscreen->chip_class >= GFX9) { in array_mode_to_string() 174 void r600_test_dma(struct r600_common_screen *rscreen) in r600_test_dma() argument 176 struct pipe_screen *screen = &rscreen->b; in r600_test_dma() 286 array_mode_to_string(rscreen, &rdst->surface), in r600_test_dma() 288 array_mode_to_string(rscreen, &rsrc->surface), bpp); in r600_test_dma()
|
D | r600_perfcounter.c | 102 static void r600_pc_query_destroy(struct r600_common_screen *rscreen, in r600_pc_query_destroy() argument 115 r600_query_hw_destroy(rscreen, rquery); in r600_pc_query_destroy() 199 static void r600_pc_query_add_result(struct r600_common_screen *rscreen, in r600_pc_query_add_result() argument 583 void r600_perfcounters_destroy(struct r600_common_screen *rscreen) in r600_perfcounters_destroy() argument 585 if (rscreen->perfcounters) in r600_perfcounters_destroy() 586 rscreen->perfcounters->cleanup(rscreen); in r600_perfcounters_destroy() 602 void r600_perfcounters_add_block(struct r600_common_screen *rscreen, in r600_perfcounters_add_block() argument 631 block->num_groups *= rscreen->info.max_se; in r600_perfcounters_add_block()
|
D | r600_query.h | 196 bool r600_query_hw_init(struct r600_common_screen *rscreen, 198 void r600_query_hw_destroy(struct r600_common_screen *rscreen,
|
D | r600_uvd.c | 158 struct r600_screen *rscreen = (struct r600_screen*)buf->base.context->screen; in r600_uvd_set_dtb() local 163 …msg->body.decode.dt_surf_tile_config |= RUVD_NUM_BANKS(eg_num_banks(rscreen->b.info.r600_num_banks… in r600_uvd_set_dtb()
|
D | evergreen_compute.c | 1251 struct r600_screen* rscreen = NULL; in r600_compute_global_buffer_destroy() local 1257 rscreen = (struct r600_screen*)screen; in r600_compute_global_buffer_destroy() 1259 compute_memory_free(rscreen->global_pool, buffer->chunk->id); in r600_compute_global_buffer_destroy() 1278 struct r600_screen* rscreen = NULL; in r600_compute_global_buffer_create() local 1289 rscreen = (struct r600_screen*)screen; in r600_compute_global_buffer_create() 1291 COMPUTE_DBG(rscreen, "*** r600_compute_global_buffer_create\n"); in r600_compute_global_buffer_create() 1292 COMPUTE_DBG(rscreen, "width = %u array_size = %u\n", templ->width0, in r600_compute_global_buffer_create() 1302 result->chunk = compute_memory_alloc(rscreen->global_pool, size_in_dw); in r600_compute_global_buffer_create()
|
D | compute_memory_pool.h | 85 struct compute_memory_pool* compute_memory_pool_new(struct r600_screen *rscreen);
|
D | compute_memory_pool.c | 50 struct r600_screen * rscreen) in compute_memory_pool_new() argument 57 COMPUTE_DBG(rscreen, "* compute_memory_pool_new()\n"); in compute_memory_pool_new() 59 pool->screen = rscreen; in compute_memory_pool_new()
|
D | evergreen_state.c | 247 struct r600_screen *rscreen = (struct r600_screen*)screen; in evergreen_is_format_supported() local 259 if (!rscreen->has_msaa) in evergreen_is_format_supported() 287 r600_is_colorbuffer_format_supported(rscreen->b.chip_class, format)) { in evergreen_is_format_supported() 572 struct r600_common_screen *rscreen = (struct r600_common_screen*)ctx->screen; in evergreen_create_sampler_state() local 574 unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso in evergreen_create_sampler_state() 713 struct r600_screen *rscreen = (struct r600_screen*)rctx->b.b.screen; in evergreen_fill_tex_resource_words() local 807 if (rscreen->b.chip_class == CAYMAN) { in evergreen_fill_tex_resource_words() 811 nbanks = eg_num_banks(rscreen->b.info.r600_num_banks); in evergreen_fill_tex_resource_words() 831 if (rscreen->b.chip_class == CAYMAN) in evergreen_fill_tex_resource_words() 842 if (texture->nr_samples > 1 && rscreen->has_compressed_msaa_texturing) { in evergreen_fill_tex_resource_words() [all …]
|
D | r600_state.c | 167 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_is_format_supported() local 179 if (!rscreen->has_msaa) in r600_is_format_supported() 183 if (rscreen->b.chip_class == R600 && in r600_is_format_supported() 217 r600_is_colorbuffer_format_supported(rscreen->b.chip_class, format)) { in r600_is_format_supported() 585 struct r600_common_screen *rscreen = (struct r600_common_screen*)ctx->screen; in r600_create_sampler_state() local 587 unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso in r600_create_sampler_state() 810 struct r600_screen *rscreen = rctx->screen; in r600_init_color_surface() local 980 r600_texture_get_cmask_info(&rscreen->b, rtex, &cmask); in r600_init_color_surface() 981 r600_texture_get_fmask_info(&rscreen->b, rtex, 8, &fmask); in r600_init_color_surface() 992 r600_aligned_buffer_create(&rscreen->b.b, 0, in r600_init_color_surface() [all …]
|
D | radeon_vce.h | 431 bool rvce_is_fw_version_supported(struct r600_common_screen *rscreen);
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_texture.c | 1024 struct r300_screen *rscreen = r300_screen(screen); in r300_texture_destroy() local 1028 mtx_lock(&rscreen->cmask_mutex); in r300_texture_destroy() 1029 if (texture == rscreen->cmask_resource) { in r300_texture_destroy() 1030 rscreen->cmask_resource = NULL; in r300_texture_destroy() 1032 mtx_unlock(&rscreen->cmask_mutex); in r300_texture_destroy() 1066 r300_texture_create_object(struct r300_screen *rscreen, in r300_texture_create_object() argument 1073 struct radeon_winsys *rws = rscreen->rws; in r300_texture_create_object() 1083 tex->b.b.screen = &rscreen->screen; in r300_texture_create_object() 1097 r300_texture_desc_init(rscreen, tex, base); in r300_texture_create_object() 1101 tex->tex.size_in_bytes >= rscreen->info.vram_size) { in r300_texture_create_object() [all …]
|
D | r300_texture_desc.c | 284 static void r300_setup_cbzb_flags(struct r300_screen *rscreen, in r300_setup_cbzb_flags() argument 300 if (SCREEN_DBG_ON(rscreen, DBG_NO_CBZB)) in r300_setup_cbzb_flags() 540 void r300_texture_desc_init(struct r300_screen *rscreen, in r300_texture_desc_init() argument 565 if (rscreen->caps.is_r500) { in r300_texture_desc_init() 600 r300_setup_tiling(rscreen, tex); in r300_texture_desc_init() 603 r300_setup_cbzb_flags(rscreen, tex); in r300_texture_desc_init() 606 r300_setup_miptree(rscreen, tex, TRUE); in r300_texture_desc_init() 610 r300_setup_miptree(rscreen, tex, FALSE); in r300_texture_desc_init() 626 r300_setup_hyperz_properties(rscreen, tex); in r300_texture_desc_init() 627 r300_setup_cmask_properties(rscreen, tex); in r300_texture_desc_init() [all …]
|
D | r300_texture_desc.h | 46 void r300_texture_desc_init(struct r300_screen *rscreen,
|
D | r300_screen.c | 541 static bool r300_is_blending_supported(struct r300_screen *rscreen, in r300_is_blending_supported() argument 554 if (rscreen->caps.is_r500 && in r300_is_blending_supported()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | r600_gpu_load.c | 215 #define BUSY_INDEX(rscreen, field) (&rscreen->mmio_counters.named.field.busy - \ argument 216 rscreen->mmio_counters.array)
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_compute.c | 36 #define COMPUTE_DBG(rscreen, fmt, args...) \ argument 38 if ((rscreen->debug_flags & DBG(COMPUTE))) fprintf(stderr, fmt, ##args); \
|