/third_party/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_created) 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 | 140 struct r600_screen* rscreen = (struct r600_screen *)screen; in r600_create_context() local 141 struct radeon_winsys *ws = rscreen->b.ws; in r600_create_context() 152 if (!r600_common_context_init(&rctx->b, &rscreen->b, flags)) in r600_create_context() 155 rctx->screen = rscreen; in r600_create_context() 160 if (rscreen->b.info.ip[AMD_IP_UVD].num_queues) { in r600_create_context() 223 if (rscreen->b.debug_flags & DBG_FORCE_DMA) in r600_create_context() 229 util_blitter_set_texture_multisample(rctx->blitter, rscreen->has_msaa); in r600_create_context() 258 struct r600_screen *rscreen = (struct r600_screen *)pscreen; in r600_get_param() local 259 enum radeon_family family = rscreen->b.family; in r600_get_param() 322 return rscreen->b.debug_flags & DBG_NIR_PREFERRED; in r600_get_param() [all …]
|
D | r600_pipe_common.c | 580 struct r600_common_screen *rscreen, in r600_common_context_init() argument 583 slab_create_child(&rctx->pool_transfers, &rscreen->pool_transfers); in r600_common_context_init() 584 slab_create_child(&rctx->pool_transfers_unsync, &rscreen->pool_transfers); in r600_common_context_init() 586 rctx->screen = rscreen; in r600_common_context_init() 587 rctx->ws = rscreen->ws; in r600_common_context_init() 588 rctx->family = rscreen->family; in r600_common_context_init() 589 rctx->gfx_level = rscreen->gfx_level; in r600_common_context_init() 607 if ((rscreen->gfx_level == EVERGREEN || rscreen->gfx_level == CAYMAN) && in r600_common_context_init() 622 u_suballocator_init(&rctx->allocator_zeroed_memory, &rctx->b, rscreen->info.gart_page_size, in r600_common_context_init() 639 if (rscreen->info.ip[AMD_IP_SDMA].num_queues && !(rscreen->debug_flags & DBG_NO_ASYNC_DMA)) { in r600_common_context_init() [all …]
|
D | r600_texture.c | 40 static void r600_texture_discard_cmask(struct r600_common_screen *rscreen, 43 r600_choose_tiling(struct r600_common_screen *rscreen, 174 static unsigned r600_texture_get_offset(struct r600_common_screen *rscreen, in r600_texture_get_offset() argument 197 static int r600_init_surface(struct r600_common_screen *rscreen, in r600_init_surface() argument 216 if (rscreen->gfx_level >= EVERGREEN && !is_flushed_depth && in r600_init_surface() 247 r = rscreen->ws->surface_init(rscreen->ws, ptex, in r600_init_surface() 271 static void r600_texture_init_metadata(struct r600_common_screen *rscreen, in r600_texture_init_metadata() argument 293 static void r600_surface_import_metadata(struct r600_common_screen *rscreen, in r600_surface_import_metadata() argument 319 struct r600_common_screen *rscreen = rctx->screen; in r600_eliminate_fast_color_clear() local 322 if (ctx == rscreen->aux_context) in r600_eliminate_fast_color_clear() [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(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() [all …]
|
D | r600_pipe_common.h | 634 void r600_init_resource_fields(struct r600_common_screen *rscreen, 637 bool r600_alloc_resource(struct r600_common_screen *rscreen, 687 bool r600_common_screen_init(struct r600_common_screen *rscreen, 689 void r600_destroy_common_screen(struct r600_common_screen *rscreen); 693 struct r600_common_screen *rscreen, 696 bool r600_can_dump_shader(struct r600_common_screen *rscreen, 698 bool r600_extra_shader_checks(struct r600_common_screen *rscreen, 700 void r600_screen_clear_buffer(struct r600_common_screen *rscreen, struct pipe_resource *dst, 713 void r600_gpu_load_kill_thread(struct r600_common_screen *rscreen); 714 uint64_t r600_begin_counter(struct r600_common_screen *rscreen, unsigned type); [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() 223 struct r600_common_screen *rscreen = (struct r600_common_screen *)screen; in rvid_get_video_param() local 227 rscreen->ws->query_info(rscreen->ws, &info, false, false); in rvid_get_video_param() 233 rvce_is_fw_version_supported(rscreen); in rvid_get_video_param() 262 return rscreen->family >= CHIP_PALM; in rvid_get_video_param() 285 if (rscreen->family < CHIP_PALM) { in rvid_get_video_param() 289 rscreen->family > CHIP_RV770; in rvid_get_video_param()
|
D | r600_buffer_common.c | 106 void r600_init_resource_fields(struct r600_common_screen *rscreen, in r600_init_resource_fields() argument 152 if (rscreen->debug_flags & DBG_NO_WC) in r600_init_resource_fields() 165 bool r600_alloc_resource(struct r600_common_screen *rscreen, in r600_alloc_resource() argument 171 new_buf = rscreen->ws->buffer_create(rscreen->ws, res->bo_size, in r600_alloc_resource() 185 if (rscreen->info.r600_has_virtual_memory) in r600_alloc_resource() 186 res->gpu_address = rscreen->ws->buffer_get_virtual_address(res->buf); in r600_alloc_resource() 195 if (rscreen->debug_flags & DBG_VM && res->b.b.target == PIPE_BUFFER) { in r600_alloc_resource() 322 struct r600_common_screen *rscreen = (struct r600_common_screen*)ctx->screen; in r600_buffer_transfer_map() local 378 !(rscreen->debug_flags & DBG_NO_DISCARD_RANGE) && in r600_buffer_transfer_map() 575 struct r600_common_screen *rscreen = (struct r600_common_screen*)screen; in r600_buffer_create() local [all …]
|
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->gfx_level >= 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() 285 array_mode_to_string(rscreen, &rdst->surface), in r600_test_dma() 287 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 | radeon_vce.c | 399 struct r600_common_screen *rscreen = (struct r600_common_screen *)context->screen; in rvce_create_encoder() local 406 if (!rscreen->info.vce_fw_version) { in rvce_create_encoder() 410 } else if (!rvce_is_fw_version_supported(rscreen)) { in rvce_create_encoder() 492 bool rvce_is_fw_version_supported(struct r600_common_screen *rscreen) in rvce_is_fw_version_supported() argument 494 switch (rscreen->info.vce_fw_version) { in rvce_is_fw_version_supported() 505 if ((rscreen->info.vce_fw_version & (0xff << 24)) == FW_53) in rvce_is_fw_version_supported()
|
D | r600_uvd.c | 161 struct r600_screen *rscreen = (struct r600_screen*)buf->base.context->screen; in r600_uvd_set_dtb() local 166 …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 | r600_query.h | 197 bool r600_query_hw_init(struct r600_common_screen *rscreen, 199 void r600_query_hw_destroy(struct r600_common_screen *rscreen,
|
D | evergreen_compute.c | 1311 struct r600_screen* rscreen = NULL; in r600_compute_global_buffer_destroy() local 1317 rscreen = (struct r600_screen*)screen; in r600_compute_global_buffer_destroy() 1319 compute_memory_free(rscreen->global_pool, buffer->chunk->id); in r600_compute_global_buffer_destroy() 1332 struct r600_screen* rscreen = NULL; in r600_compute_global_buffer_create() local 1343 rscreen = (struct r600_screen*)screen; in r600_compute_global_buffer_create() 1345 COMPUTE_DBG(rscreen, "*** r600_compute_global_buffer_create\n"); in r600_compute_global_buffer_create() 1346 COMPUTE_DBG(rscreen, "width = %u array_size = %u\n", templ->width0, in r600_compute_global_buffer_create() 1356 result->chunk = compute_memory_alloc(rscreen->global_pool, size_in_dw); in r600_compute_global_buffer_create()
|
D | compute_memory_pool.h | 91 struct compute_memory_pool* compute_memory_pool_new(struct r600_screen *rscreen);
|
D | compute_memory_pool.c | 73 struct r600_screen * rscreen) in compute_memory_pool_new() argument 80 COMPUTE_DBG(rscreen, "* compute_memory_pool_new()\n"); in compute_memory_pool_new() 82 pool->screen = rscreen; in compute_memory_pool_new()
|
D | evergreen_state.c | 249 struct r600_screen *rscreen = (struct r600_screen*)screen; in evergreen_is_format_supported() local 261 if (!rscreen->has_msaa) in evergreen_is_format_supported() 289 r600_is_colorbuffer_format_supported(rscreen->b.gfx_level, format)) { in evergreen_is_format_supported() 577 struct r600_common_screen *rscreen = (struct r600_common_screen*)ctx->screen; in evergreen_create_sampler_state() local 579 unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso in evergreen_create_sampler_state() 730 struct r600_screen *rscreen = (struct r600_screen*)rctx->b.b.screen; in evergreen_fill_tex_resource_words() local 824 if (rscreen->b.gfx_level == CAYMAN) { in evergreen_fill_tex_resource_words() 828 nbanks = eg_num_banks(rscreen->b.info.r600_num_banks); in evergreen_fill_tex_resource_words() 848 if (rscreen->b.gfx_level == CAYMAN) in evergreen_fill_tex_resource_words() 859 if (texture->nr_samples > 1 && rscreen->has_compressed_msaa_texturing) { in evergreen_fill_tex_resource_words() [all …]
|
D | r600_state.c | 168 struct r600_screen *rscreen = (struct r600_screen*)screen; in r600_is_format_supported() local 180 if (!rscreen->has_msaa) in r600_is_format_supported() 184 if (rscreen->b.gfx_level == R600 && in r600_is_format_supported() 218 r600_is_colorbuffer_format_supported(rscreen->b.gfx_level, format)) { in r600_is_format_supported() 589 struct r600_common_screen *rscreen = (struct r600_common_screen*)ctx->screen; in r600_create_sampler_state() local 591 unsigned max_aniso = rscreen->force_aniso >= 0 ? rscreen->force_aniso in r600_create_sampler_state() 814 struct r600_screen *rscreen = rctx->screen; in r600_init_color_surface() local 984 r600_texture_get_cmask_info(&rscreen->b, rtex, &cmask); in r600_init_color_surface() 985 r600_texture_get_fmask_info(&rscreen->b, rtex, 8, &fmask); in r600_init_color_surface() 996 r600_aligned_buffer_create(&rscreen->b.b, 0, in r600_init_color_surface() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_screen_buffer.c | 66 struct r300_screen *rscreen = r300_screen(screen); in r300_resource_destroy() local 70 mtx_lock(&rscreen->cmask_mutex); in r300_resource_destroy() 71 if (buf == rscreen->cmask_resource) { in r300_resource_destroy() 72 rscreen->cmask_resource = NULL; in r300_resource_destroy() 74 mtx_unlock(&rscreen->cmask_mutex); in r300_resource_destroy()
|
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.c | 1043 r300_texture_create_object(struct r300_screen *rscreen, in r300_texture_create_object() argument 1050 struct radeon_winsys *rws = rscreen->rws; in r300_texture_create_object() 1060 tex->b.screen = &rscreen->screen; in r300_texture_create_object() 1073 r300_texture_desc_init(rscreen, tex, base); in r300_texture_create_object() 1077 tex->tex.size_in_bytes >= (uint64_t)rscreen->info.vram_size_kb * 1024) { in r300_texture_create_object() 1082 tex->tex.size_in_bytes >= (uint64_t)rscreen->info.gart_size_kb * 1024) { in r300_texture_create_object() 1108 if (SCREEN_DBG_ON(rscreen, DBG_MSAA) && base->nr_samples > 1) { in r300_texture_create_object() 1132 struct r300_screen *rscreen = r300_screen(screen); in r300_texture_create() local 1146 r300_texture_create_object(rscreen, base, microtile, macrotile, in r300_texture_create() 1155 struct r300_screen *rscreen = r300_screen(screen); in r300_texture_from_handle() local [all …]
|
D | r300_texture_desc.h | 46 void r300_texture_desc_init(struct r300_screen *rscreen,
|
D | r300_screen.c | 600 static bool r300_is_blending_supported(struct r300_screen *rscreen, in r300_is_blending_supported() argument 613 if (rscreen->caps.is_r500 && in r300_is_blending_supported()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_nir.cpp | 820 r600_screen *rscreen = rctx->screen; in r600_shader_from_nir() local 878 r600_bytecode_init(&pipeshader->shader.bc, rscreen->b.gfx_level, rscreen->b.family, in r600_shader_from_nir() 879 rscreen->has_compressed_msaa_texturing); in r600_shader_from_nir()
|
/third_party/mesa3d/docs/relnotes/ |
D | 10.5.9.rst | 41 (rscreen->ws->buffer_from_handle returns NULL)
|