Lines Matching refs:rscreen
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()
338 return !R600_BIG_ENDIAN && rscreen->b.info.has_userptr; in r600_get_param()
341 return rscreen->b.gfx_level > R700; in r600_get_param()
351 return MIN2(rscreen->b.info.max_heap_size_kb * 1024ull / 4, INT_MAX); in r600_get_param()
362 if (!is_nir_enabled(&rscreen->b)) in r600_get_param()
367 return is_nir_enabled(&rscreen->b) ? 450 : 430; in r600_get_param()
412 if (rscreen->b.family == CHIP_ARUBA || in r600_get_param()
413 rscreen->b.family == CHIP_CAYMAN || in r600_get_param()
414 rscreen->b.family == CHIP_CYPRESS || in r600_get_param()
415 rscreen->b.family == CHIP_HEMLOCK) in r600_get_param()
417 if (is_nir_enabled(&rscreen->b) && in r600_get_param()
418 rscreen->b.family >= CHIP_CEDAR) in r600_get_param()
423 return !is_nir_enabled(&rscreen->b); in r600_get_param()
428 return is_nir_enabled(&rscreen->b); in r600_get_param()
444 return rscreen->b.has_streamout ? 4 : 0; in r600_get_param()
447 return rscreen->b.has_streamout ? 1 : 0; in r600_get_param()
496 return rscreen->b.info.clock_crystal_freq != 0; in r600_get_param()
517 return rscreen->b.info.pci_id; in r600_get_param()
521 return rscreen->b.info.vram_size_kb >> 10; in r600_get_param()
525 return rscreen->b.gfx_level >= R700; in r600_get_param()
527 return rscreen->b.info.pci_domain; in r600_get_param()
529 return rscreen->b.info.pci_bus; in r600_get_param()
531 return rscreen->b.info.pci_dev; in r600_get_param()
533 return rscreen->b.info.pci_func; in r600_get_param()
536 if (rscreen->b.family >= CHIP_CEDAR && rscreen->has_atomics) in r600_get_param()
540 if (rscreen->b.family >= CHIP_CEDAR && rscreen->has_atomics) in r600_get_param()
553 struct r600_screen *rscreen = (struct r600_screen *)pscreen; in r600_get_shader_param() local
565 if (rscreen->b.family >= CHIP_CEDAR) in r600_get_shader_param()
589 enum pipe_shader_ir ir_type = is_nir_enabled(&rscreen->b) ? in r600_get_shader_param()
625 if (rscreen->b.debug_flags & DBG_USE_TGSI) in r600_get_shader_param()
633 if (is_nir_enabled(&rscreen->b)) { in r600_get_shader_param()
644 if (rscreen->b.family >= CHIP_CEDAR && in r600_get_shader_param()
649 if (rscreen->b.family >= CHIP_CEDAR && rscreen->has_atomics) in r600_get_shader_param()
655 if (rscreen->b.family >= CHIP_CEDAR && rscreen->has_atomics) { in r600_get_shader_param()
665 struct r600_screen *rscreen = (struct r600_screen *)pscreen; in r600_destroy_screen() local
667 if (!rscreen) in r600_destroy_screen()
670 if (!rscreen->b.ws->unref(rscreen->b.ws)) in r600_destroy_screen()
673 if (rscreen->global_pool) { in r600_destroy_screen()
674 compute_memory_pool_delete(rscreen->global_pool); in r600_destroy_screen()
677 r600_destroy_common_screen(&rscreen->b); in r600_destroy_screen()
693 struct r600_screen *rscreen = CALLOC_STRUCT(r600_screen); in r600_screen_create() local
695 if (!rscreen) { in r600_screen_create()
700 rscreen->b.b.context_create = r600_create_context; in r600_screen_create()
701 rscreen->b.b.destroy = r600_destroy_screen; in r600_screen_create()
702 rscreen->b.b.get_param = r600_get_param; in r600_screen_create()
703 rscreen->b.b.get_shader_param = r600_get_shader_param; in r600_screen_create()
704 rscreen->b.b.resource_create = r600_resource_create; in r600_screen_create()
706 if (!r600_common_screen_init(&rscreen->b, ws)) { in r600_screen_create()
707 FREE(rscreen); in r600_screen_create()
711 if (rscreen->b.info.gfx_level >= EVERGREEN) { in r600_screen_create()
712 rscreen->b.b.is_format_supported = evergreen_is_format_supported; in r600_screen_create()
714 rscreen->b.b.is_format_supported = r600_is_format_supported; in r600_screen_create()
717 rscreen->b.debug_flags |= debug_get_flags_option("R600_DEBUG", r600_debug_options, 0); in r600_screen_create()
719 rscreen->b.debug_flags |= DBG_COMPUTE; in r600_screen_create()
721 rscreen->b.debug_flags |= DBG_ALL_SHADERS | DBG_FS; in r600_screen_create()
723 rscreen->b.debug_flags |= DBG_NO_HYPERZ; in r600_screen_create()
725 if (rscreen->b.family == CHIP_UNKNOWN) { in r600_screen_create()
726 fprintf(stderr, "r600: Unknown chipset 0x%04X\n", rscreen->b.info.pci_id); in r600_screen_create()
727 FREE(rscreen); in r600_screen_create()
731 rscreen->b.has_streamout = true; in r600_screen_create()
733 rscreen->has_msaa = true; in r600_screen_create()
736 switch (rscreen->b.gfx_level) { in r600_screen_create()
739 rscreen->has_compressed_msaa_texturing = false; in r600_screen_create()
742 rscreen->has_compressed_msaa_texturing = true; in r600_screen_create()
745 rscreen->has_compressed_msaa_texturing = true; in r600_screen_create()
748 rscreen->has_compressed_msaa_texturing = false; in r600_screen_create()
751 rscreen->b.has_cp_dma = !(rscreen->b.debug_flags & DBG_NO_CP_DMA); in r600_screen_create()
753 rscreen->b.barrier_flags.cp_to_L2 = in r600_screen_create()
757 …rscreen->b.barrier_flags.compute_to_L2 = R600_CONTEXT_CS_PARTIAL_FLUSH | R600_CONTEXT_FLUSH_AND_IN… in r600_screen_create()
759 rscreen->global_pool = compute_memory_pool_new(rscreen); in r600_screen_create()
762 rscreen->b.aux_context = rscreen->b.b.context_create(&rscreen->b.b, NULL, 0); in r600_screen_create()
764 rscreen->has_atomics = true; in r600_screen_create()
776 …struct r600_resource *res = r600_resource(rscreen->screen.resource_create(&rscreen->screen, &templ… in r600_screen_create()
781 r600_screen_clear_buffer(rscreen, &res->b.b, 4, 4, 0xCC); in r600_screen_create()
782 r600_screen_clear_buffer(rscreen, &res->b.b, 8, 4, 0xDD); in r600_screen_create()
783 r600_screen_clear_buffer(rscreen, &res->b.b, 12, 4, 0xEE); in r600_screen_create()
784 r600_screen_clear_buffer(rscreen, &res->b.b, 20, 4, 0xFF); in r600_screen_create()
785 r600_screen_clear_buffer(rscreen, &res->b.b, 32, 20, 0x87); in r600_screen_create()
797 if (rscreen->b.debug_flags & DBG_TEST_DMA) in r600_screen_create()
798 r600_test_dma(&rscreen->b); in r600_screen_create()
800 r600_query_fix_enabled_rb_mask(&rscreen->b); in r600_screen_create()
801 return &rscreen->b.b; in r600_screen_create()