Lines Matching refs:svgascreen
152 struct svga_screen *svgascreen = svga_screen(screen); in svga_get_paramf() local
153 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_paramf()
157 return svgascreen->maxLineWidth; in svga_get_paramf()
159 return svgascreen->maxLineWidthAA; in svga_get_paramf()
164 return svgascreen->maxPointSize; in svga_get_paramf()
189 struct svga_screen *svgascreen = svga_screen(screen); in svga_get_param() local
190 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_param()
210 return svgascreen->max_color_buffers; in svga_get_param()
311 return svgascreen->ms_samples ? 1 : 0; in svga_get_param()
383 assert((!sws->have_vgpu10 && svgascreen->max_viewports == 1) || in svga_get_param()
385 svgascreen->max_viewports == SVGA3D_DX_MAX_VIEWPORTS)); in svga_get_param()
386 return svgascreen->max_viewports; in svga_get_param()
429 struct svga_screen *svgascreen = svga_screen(screen); in vgpu9_get_shader_param() local
430 struct svga_winsys_screen *sws = svgascreen->sws; in vgpu9_get_shader_param()
453 return svgascreen->max_color_buffers; in vgpu9_get_shader_param()
601 struct svga_screen *svgascreen = svga_screen(screen); in vgpu10_get_shader_param() local
602 struct svga_winsys_screen *sws = svgascreen->sws; in vgpu10_get_shader_param()
650 return svgascreen->max_const_buffers; in vgpu10_get_shader_param()
702 struct svga_screen *svgascreen = svga_screen(screen); in svga_get_shader_param() local
703 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_shader_param()
845 struct svga_screen *svgascreen = svga_screen(screen); in init_logging() local
852 svgascreen->sws->host_log(svgascreen->sws, host_log); in init_logging()
856 svgascreen->sws->host_log(svgascreen->sws, host_log); in init_logging()
866 svgascreen->sws->host_log(svgascreen->sws, host_log); in init_logging()
885 struct svga_screen *svgascreen = svga_screen(screen); in svga_destroy_screen() local
887 svga_screen_cache_cleanup(svgascreen); in svga_destroy_screen()
889 mtx_destroy(&svgascreen->swc_mutex); in svga_destroy_screen()
890 mtx_destroy(&svgascreen->tex_mutex); in svga_destroy_screen()
892 svgascreen->sws->destroy(svgascreen->sws); in svga_destroy_screen()
894 FREE(svgascreen); in svga_destroy_screen()
904 struct svga_screen *svgascreen; in svga_screen_create() local
911 svgascreen = CALLOC_STRUCT(svga_screen); in svga_screen_create()
912 if (!svgascreen) in svga_screen_create()
915 svgascreen->debug.force_level_surface_view = in svga_screen_create()
917 svgascreen->debug.force_surface_view = in svga_screen_create()
919 svgascreen->debug.force_sampler_view = in svga_screen_create()
921 svgascreen->debug.no_surface_view = in svga_screen_create()
923 svgascreen->debug.no_sampler_view = in svga_screen_create()
925 svgascreen->debug.no_cache_index_buffers = in svga_screen_create()
928 screen = &svgascreen->screen; in svga_screen_create()
945 svgascreen->sws = sws; in svga_screen_create()
947 svga_init_screen_resource_functions(svgascreen); in svga_screen_create()
950 svgascreen->hw_version = sws->get_hw_version(sws); in svga_screen_create()
952 svgascreen->hw_version = SVGA3D_HWVERSION_WS65_B1; in svga_screen_create()
955 if (svgascreen->hw_version < SVGA3D_HWVERSION_WS8_B1) { in svga_screen_create()
958 svgascreen->hw_version); in svga_screen_create()
987 svgascreen->depth.z16 = SVGA3D_Z_D16; in svga_screen_create()
988 svgascreen->depth.x8z24 = SVGA3D_Z_D24X8; in svga_screen_create()
989 svgascreen->depth.s8z24 = SVGA3D_Z_D24S8; in svga_screen_create()
991 svga_get_format_cap(svgascreen, SVGA3D_Z_DF16, &caps); in svga_screen_create()
994 svga_get_format_cap(svgascreen, SVGA3D_Z_DF24, &caps); in svga_screen_create()
997 svga_get_format_cap(svgascreen, SVGA3D_Z_D24S8_INT, &caps); in svga_screen_create()
1005 svgascreen->depth.z16 = SVGA3D_Z_DF16; in svga_screen_create()
1008 svgascreen->depth.x8z24 = SVGA3D_Z_DF24; in svga_screen_create()
1011 svgascreen->depth.s8z24 = SVGA3D_Z_D24S8_INT; in svga_screen_create()
1018 svgascreen->haveProvokingVertex in svga_screen_create()
1020 svgascreen->haveLineSmooth = TRUE; in svga_screen_create()
1021 svgascreen->maxPointSize = 80.0F; in svga_screen_create()
1022 svgascreen->max_color_buffers = SVGA3D_DX_MAX_RENDER_TARGETS; in svga_screen_create()
1027 svgascreen->ms_samples |= 1 << 1; in svga_screen_create()
1029 svgascreen->ms_samples |= 1 << 3; in svga_screen_create()
1034 svgascreen->ms_samples |= 1 << 7; in svga_screen_create()
1038 svgascreen->max_const_buffers = in svga_screen_create()
1040 svgascreen->max_const_buffers = MIN2(svgascreen->max_const_buffers, in svga_screen_create()
1043 svgascreen->haveBlendLogicops = in svga_screen_create()
1048 svgascreen->max_viewports = SVGA3D_DX_MAX_VIEWPORTS; in svga_screen_create()
1062 svgascreen->haveProvokingVertex = FALSE; in svga_screen_create()
1064 svgascreen->haveLineSmooth = in svga_screen_create()
1067 svgascreen->maxPointSize = in svga_screen_create()
1070 svgascreen->maxPointSize = MIN2(svgascreen->maxPointSize, 80.0f); in svga_screen_create()
1075 svgascreen->max_color_buffers = 4; in svga_screen_create()
1079 svgascreen->max_const_buffers = 1; in svga_screen_create()
1082 svgascreen->ms_samples = 0; in svga_screen_create()
1085 svgascreen->max_viewports = 1; in svga_screen_create()
1089 svgascreen->haveLineStipple = in svga_screen_create()
1092 svgascreen->maxLineWidth = in svga_screen_create()
1095 svgascreen->maxLineWidthAA = in svga_screen_create()
1100 svgascreen->haveProvokingVertex); in svga_screen_create()
1103 svgascreen->haveLineStipple, svgascreen->haveLineSmooth, in svga_screen_create()
1104 svgascreen->maxLineWidth, svgascreen->maxLineWidthAA); in svga_screen_create()
1105 debug_printf("svga: maxPointSize %g\n", svgascreen->maxPointSize); in svga_screen_create()
1106 debug_printf("svga: msaa samples mask: 0x%x\n", svgascreen->ms_samples); in svga_screen_create()
1109 (void) mtx_init(&svgascreen->tex_mutex, mtx_plain); in svga_screen_create()
1110 (void) mtx_init(&svgascreen->swc_mutex, mtx_recursive); in svga_screen_create()
1112 svga_screen_cache_init(svgascreen); in svga_screen_create()
1115 svgascreen->sws->host_log = nop_host_log; in svga_screen_create()
1122 FREE(svgascreen); in svga_screen_create()