Lines Matching refs:r300screen
84 struct r300_screen* r300screen = r300_screen(pscreen); in r300_get_name() local
86 return chip_families[r300screen->caps.family]; in r300_get_name()
91 struct r300_screen* r300screen = r300_screen(pscreen); in r300_get_param() local
92 boolean is_r500 = r300screen->caps.is_r500; in r300_get_param()
127 return r300screen->caps.dxtc_swizzle; in r300_get_param()
257 return !r300screen->caps.has_tcl; in r300_get_param()
263 return r300screen->caps.has_tcl; in r300_get_param()
289 return r300screen->info.pci_id; in r300_get_param()
293 return r300screen->info.vram_size >> 20; in r300_get_param()
297 return r300screen->info.pci_domain; in r300_get_param()
299 return r300screen->info.pci_bus; in r300_get_param()
301 return r300screen->info.pci_dev; in r300_get_param()
303 return r300screen->info.pci_func; in r300_get_param()
312 struct r300_screen* r300screen = r300_screen(pscreen); in r300_get_shader_param() local
313 boolean is_r400 = r300screen->caps.is_r400; in r300_get_shader_param()
314 boolean is_r500 = r300screen->caps.is_r500; in r300_get_shader_param()
350 return r300screen->caps.num_tex_units; in r300_get_shader_param()
390 if (!r300screen->caps.has_tcl) { in r300_get_shader_param()
455 struct r300_screen* r300screen = r300_screen(pscreen); in r300_get_paramf() local
464 if (r300screen->caps.is_r500) { in r300_get_paramf()
466 } else if (r300screen->caps.is_r400) { in r300_get_paramf()
709 struct r300_screen* r300screen = r300_screen(pscreen); in r300_destroy_screen() local
715 mtx_destroy(&r300screen->cmask_mutex); in r300_destroy_screen()
716 slab_destroy_parent(&r300screen->pool_transfers); in r300_destroy_screen()
721 FREE(r300screen); in r300_destroy_screen()
746 struct r300_screen *r300screen = CALLOC_STRUCT(r300_screen); in r300_screen_create() local
748 if (!r300screen) { in r300_screen_create()
749 FREE(r300screen); in r300_screen_create()
753 rws->query_info(rws, &r300screen->info); in r300_screen_create()
755 r300_init_debug(r300screen); in r300_screen_create()
756 r300_parse_chipset(r300screen->info.pci_id, &r300screen->caps); in r300_screen_create()
758 if (SCREEN_DBG_ON(r300screen, DBG_NO_ZMASK)) in r300_screen_create()
759 r300screen->caps.zmask_ram = 0; in r300_screen_create()
760 if (SCREEN_DBG_ON(r300screen, DBG_NO_HIZ)) in r300_screen_create()
761 r300screen->caps.hiz_ram = 0; in r300_screen_create()
763 r300screen->rws = rws; in r300_screen_create()
764 r300screen->screen.destroy = r300_destroy_screen; in r300_screen_create()
765 r300screen->screen.get_name = r300_get_name; in r300_screen_create()
766 r300screen->screen.get_vendor = r300_get_vendor; in r300_screen_create()
767 r300screen->screen.get_device_vendor = r300_get_device_vendor; in r300_screen_create()
768 r300screen->screen.get_param = r300_get_param; in r300_screen_create()
769 r300screen->screen.get_shader_param = r300_get_shader_param; in r300_screen_create()
770 r300screen->screen.get_paramf = r300_get_paramf; in r300_screen_create()
771 r300screen->screen.get_video_param = r300_get_video_param; in r300_screen_create()
772 r300screen->screen.is_format_supported = r300_is_format_supported; in r300_screen_create()
773 r300screen->screen.is_video_format_supported = vl_video_buffer_is_format_supported; in r300_screen_create()
774 r300screen->screen.context_create = r300_create_context; in r300_screen_create()
775 r300screen->screen.fence_reference = r300_fence_reference; in r300_screen_create()
776 r300screen->screen.fence_finish = r300_fence_finish; in r300_screen_create()
778 r300_init_screen_resource_functions(r300screen); in r300_screen_create()
780 slab_create_parent(&r300screen->pool_transfers, sizeof(struct pipe_transfer), 64); in r300_screen_create()
782 (void) mtx_init(&r300screen->cmask_mutex, mtx_plain); in r300_screen_create()
784 return &r300screen->screen; in r300_screen_create()