Lines Matching refs:sws
110 get_float_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_float_cap() argument
114 if (sws->get_cap(sws, cap, &result)) in get_float_cap()
123 get_uint_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_uint_cap() argument
127 if (sws->get_cap(sws, cap, &result)) in get_uint_cap()
136 get_bool_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_bool_cap() argument
140 if (sws->get_cap(sws, cap, &result)) in get_bool_cap()
151 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_paramf() local
165 return (float) get_uint_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY, 4); in svga_get_paramf()
186 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_param() local
200 return sws->have_vgpu10 ? 1 : 0; in svga_get_param()
214 return sws->have_vgpu10; in svga_get_param()
227 if (sws->get_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_WIDTH, &result)) in svga_get_param()
231 if (sws->get_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT, &result)) in svga_get_param()
239 if (!sws->get_cap(sws, SVGA3D_DEVCAP_MAX_VOLUME_EXTENT, &result)) in svga_get_param()
252 return sws->have_vgpu10 ? SVGA3D_MAX_SURFACE_ARRAYSIZE : 0; in svga_get_param()
260 return sws->have_vgpu10; in svga_get_param()
264 return !sws->have_vgpu10; in svga_get_param()
277 return sws->have_vgpu10 ? 330 : 120; in svga_get_param()
293 return sws->have_vgpu10; in svga_get_param()
296 return sws->have_vgpu10 ? SVGA3D_DX_MAX_SOTARGETS : 0; in svga_get_param()
298 return sws->have_vgpu10 ? 4 : 0; in svga_get_param()
300 return sws->have_vgpu10 ? SVGA3D_MAX_STREAMOUT_DECLS : 0; in svga_get_param()
314 return sws->have_vgpu10 ? VGPU10_MIN_TEXEL_FETCH_OFFSET : 0; in svga_get_param()
316 return sws->have_vgpu10 ? VGPU10_MAX_TEXEL_FETCH_OFFSET : 0; in svga_get_param()
323 return sws->have_vgpu10 ? 256 : 0; in svga_get_param()
325 return sws->have_vgpu10 ? 1024 : 0; in svga_get_param()
331 return sws->have_generate_mipmap_cmd; in svga_get_param()
334 return sws->have_fence_fd; in svga_get_param()
405 return sws->have_vgpu10; in svga_get_param()
407 return sws->have_vgpu10; in svga_get_param()
471 struct svga_winsys_screen *sws = svgascreen->sws; in vgpu9_get_shader_param() local
474 assert(!sws->have_vgpu10); in vgpu9_get_shader_param()
483 return get_uint_cap(sws, in vgpu9_get_shader_param()
500 val = get_uint_cap(sws, SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_TEMPS, 32); in vgpu9_get_shader_param()
555 return get_uint_cap(sws, SVGA3D_DEVCAP_MAX_VERTEX_SHADER_INSTRUCTIONS, in vgpu9_get_shader_param()
572 val = get_uint_cap(sws, SVGA3D_DEVCAP_MAX_VERTEX_SHADER_TEMPS, 32); in vgpu9_get_shader_param()
637 struct svga_winsys_screen *sws = svgascreen->sws; in vgpu10_get_shader_param() local
639 assert(sws->have_vgpu10); in vgpu10_get_shader_param()
640 (void) sws; /* silence unused var warnings in non-debug builds */ in vgpu10_get_shader_param()
727 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_shader_param() local
728 if (sws->have_vgpu10) { in svga_get_shader_param()
742 struct svga_winsys_screen *sws = svga_screen(screen)->sws; in svga_fence_reference() local
743 sws->fence_reference(sws, ptr, fence); in svga_fence_reference()
753 struct svga_winsys_screen *sws = svga_screen(screen)->sws; in svga_fence_finish() local
756 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_FENCEFINISH); in svga_fence_finish()
759 retVal = sws->fence_signalled(sws, fence, 0) == 0; in svga_fence_finish()
765 retVal = sws->fence_finish(sws, fence, timeout, 0) == 0; in svga_fence_finish()
768 SVGA_STATS_TIME_POP(sws); in svga_fence_finish()
778 struct svga_winsys_screen *sws = svga_screen(screen)->sws; in svga_fence_get_fd() local
780 return sws->fence_get_fd(sws, fence, TRUE); in svga_fence_get_fd()
901 svgascreen->sws->destroy(svgascreen->sws); in svga_destroy_screen()
911 svga_screen_create(struct svga_winsys_screen *sws) in svga_screen_create() argument
954 svgascreen->sws = sws; in svga_screen_create()
958 if (sws->get_hw_version) { in svga_screen_create()
959 svgascreen->hw_version = sws->get_hw_version(sws); in svga_screen_create()
1018 if (sws->have_vgpu10) { in svga_screen_create()
1020 = get_bool_cap(sws, SVGA3D_DEVCAP_DX_PROVOKING_VERTEX, FALSE); in svga_screen_create()
1028 get_uint_cap(sws, SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES, 0); in svga_screen_create()
1038 get_uint_cap(sws, SVGA3D_DEVCAP_DX_MAX_CONSTANT_BUFFERS, 1); in svga_screen_create()
1043 unsigned vs_ver = get_uint_cap(sws, SVGA3D_DEVCAP_VERTEX_SHADER_VERSION, in svga_screen_create()
1045 unsigned fs_ver = get_uint_cap(sws, SVGA3D_DEVCAP_FRAGMENT_SHADER_VERSION, in svga_screen_create()
1056 get_bool_cap(sws, SVGA3D_DEVCAP_LINE_AA, FALSE); in svga_screen_create()
1059 get_float_cap(sws, SVGA3D_DEVCAP_MAX_POINT_SIZE, 1.0f); in svga_screen_create()
1078 get_bool_cap(sws, SVGA3D_DEVCAP_LINE_STIPPLE, FALSE); in svga_screen_create()
1081 MAX2(1.0, get_float_cap(sws, SVGA3D_DEVCAP_MAX_LINE_WIDTH, 1.0f)); in svga_screen_create()
1084 MAX2(1.0, get_float_cap(sws, SVGA3D_DEVCAP_MAX_AA_LINE_WIDTH, 1.0f)); in svga_screen_create()
1115 return svga_screen(screen)->sws; in svga_winsys_screen()