Home
last modified time | relevance | path

Searched refs:sws (Results 1 – 25 of 65) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen.c112 get_float_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_float_cap() argument
116 if (sws->get_cap(sws, cap, &result)) in get_float_cap()
125 get_uint_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_uint_cap() argument
129 if (sws->get_cap(sws, cap, &result)) in get_uint_cap()
138 get_bool_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_bool_cap() argument
142 if (sws->get_cap(sws, cap, &result)) in get_bool_cap()
153 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_paramf() local
167 return (float) get_uint_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY, 4); in svga_get_paramf()
190 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_param() local
204 return sws->have_vgpu10 ? 1 : 0; in svga_get_param()
[all …]
Dsvga_winsys.h363 (*query_bind)(struct svga_winsys_context *sws,
486 (*destroy)(struct svga_winsys_screen *sws);
489 (*get_hw_version)(struct svga_winsys_screen *sws);
492 (*get_cap)(struct svga_winsys_screen *sws,
507 (*context_create)(struct svga_winsys_screen *sws);
548 (*surface_create)(struct svga_winsys_screen *sws,
562 (*surface_from_handle)(struct svga_winsys_screen *sws,
571 (*surface_get_handle)(struct svga_winsys_screen *sws,
580 (*surface_is_flushed)(struct svga_winsys_screen *sws,
588 (*surface_reference)(struct svga_winsys_screen *sws,
[all …]
Dsvga_screen_cache.c98 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_lookup() local
127 sws->fence_signalled(sws, entry->fence, 0) == 0) { in svga_screen_cache_lookup()
130 assert(sws->surface_is_flushed(sws, entry->handle)); in svga_screen_cache_lookup()
180 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_shrink() local
193 sws->surface_reference(sws, &entry->handle, NULL); in svga_screen_cache_shrink()
218 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_add() local
235 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add()
253 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add()
278 sws->surface_reference(sws, &entry->handle, NULL); in svga_screen_cache_add()
296 if (sws->have_gb_objects) in svga_screen_cache_add()
[all …]
Dsvga_pipe_query.c95 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in define_query_vgpu9() local
104 sws->buffer_map(sws, sq->hwbuf, PIPE_MAP_WRITE); in define_query_vgpu9()
106 sws->buffer_destroy(sws, sq->hwbuf); in define_query_vgpu9()
117 sws->buffer_unmap(sws, sq->hwbuf); in define_query_vgpu9()
125 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in begin_query_vgpu9() local
141 sws->fence_reference(sws, &sq->fence, NULL); in begin_query_vgpu9()
159 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in get_query_result_vgpu9() local
177 sws->fence_finish(sws, sq->fence, PIPE_TIMEOUT_INFINITE, in get_query_result_vgpu9()
448 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in destroy_gb_query_obj() local
464 sws->query_destroy(sws, svga->gb_query); in destroy_gb_query_obj()
[all …]
Dsvga_resource_texture.c101 struct svga_winsys_screen *sws = screen->sws; in svga_transfer_dma() local
125 sws->fence_finish(sws, fence, PIPE_TIMEOUT_INFINITE, 0); in svga_transfer_dma()
126 sws->fence_reference(sws, &fence, NULL); in svga_transfer_dma()
163 hw = sws->buffer_map(sws, st->hwbuf, usage); in svga_transfer_dma()
167 sws->buffer_unmap(sws, st->hwbuf); in svga_transfer_dma()
184 sws->fence_finish(sws, fence, PIPE_TIMEOUT_INFINITE, 0); in svga_transfer_dma()
186 hw = sws->buffer_map(sws, st->hwbuf, PIPE_MAP_READ); in svga_transfer_dma()
190 sws->buffer_unmap(sws, st->hwbuf); in svga_transfer_dma()
204 struct svga_winsys_screen *sws = svga_winsys_screen(texture->screen); in svga_texture_get_handle() local
213 return sws->surface_get_handle(sws, svga_texture(texture)->handle, in svga_texture_get_handle()
[all …]
Dsvga_resource_buffer.h262 return svga_screen(sbuf->b.b.screen)->sws; in svga_buffer_winsys_screen()
288 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_map() local
292 if (sws->have_gb_objects) { in svga_buffer_hw_storage_map()
315 return sws->buffer_map(sws, sbuf->hwbuf, flags); in svga_buffer_hw_storage_map()
326 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_unmap() local
328 if (sws->have_gb_objects) { in svga_buffer_hw_storage_unmap()
337 sws->buffer_unmap(sws, sbuf->hwbuf); in svga_buffer_hw_storage_unmap()
Dsvga_pipe_flush.c91 struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen); in svga_create_fence_fd() local
94 sws->fence_create_fd(sws, fence, fd); in svga_create_fence_fd()
108 struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen); in svga_fence_server_sync() local
111 sws->fence_server_sync(sws, &svga->swc->imported_fence_fd, fence); in svga_fence_server_sync()
Dsvga_resource_buffer_upload.c71 struct svga_winsys_screen *sws = svgascreen->sws; in svga_winsys_buffer_create() local
75 buf = SVGA_TRY_PTR(sws->buffer_create(sws, alignment, usage, size)); in svga_winsys_buffer_create()
83 buf = sws->buffer_create(sws, alignment, usage, size); in svga_winsys_buffer_create()
99 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_destroy_hw_storage() local
104 sws->buffer_destroy(sws, sbuf->hwbuf); in svga_buffer_destroy_hw_storage()
123 if (ss->sws->have_gb_objects) { in svga_buffer_create_hw_storage()
128 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_create_hw_storage() local
133 sbuf->hwbuf = sws->buffer_create(sws, alignment, usage, size); in svga_buffer_create_hw_storage()
181 assert(ss->sws->have_sm5); in svga_buffer_create_host_surface()
233 if (ss->sws->have_gb_objects) { in svga_buffer_create_host_surface()
[all …]
Dsvga_pipe_blit.c157 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in copy_region_fallback() local
159 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_COPYREGIONFALLBACK); in copy_region_fallback()
162 SVGA_STATS_TIME_POP(sws); in copy_region_fallback()
163 (void) sws; in copy_region_fallback()
345 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in can_blit_via_intra_surface_copy() local
355 if (!sws->have_intra_surface_copy) in can_blit_via_intra_surface_copy()
557 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in try_blit() local
567 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_BLITBLITTER); in try_blit()
668 SVGA_STATS_COUNT_INC(sws, SVGA_STATS_COUNT_BLITBLITTERCOPY); in try_blit()
717 SVGA_STATS_COUNT_INC(sws, SVGA_STATS_COUNT_BLITBLITTERCOPY); in try_blit()
[all …]
Dsvga_pipe_streamout.c88 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_define_stream_output() local
95 map = sws->buffer_map(sws, declBuf, PIPE_MAP_WRITE); in svga_define_stream_output()
97 sws->buffer_destroy(sws, declBuf); in svga_define_stream_output()
105 sws->buffer_unmap(sws, declBuf); in svga_define_stream_output()
343 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_delete_stream_output() local
354 sws->buffer_destroy(sws, streamout->declBuf); in svga_delete_stream_output()
Dsvga_resource.c83 struct svga_winsys_screen *sws = svgascreen->sws; in svga_can_create_resource() local
115 return sws->surface_can_create(sws, format, base_level_size, in svga_can_create_resource()
Dsvga_context.c140 SVGA_STATS_TIME_PUSH(svgascreen->sws, SVGA_STATS_TIME_CREATECONTEXT); in svga_context_create()
168 svga->swc = svgascreen->sws->context_create(svgascreen->sws); in svga_context_create()
358 SVGA_STATS_TIME_POP(svgascreen->sws); in svga_context_create()
436 svgascreen->sws->fence_reference(svgascreen->sws, pfence, fence); in svga_context_flush()
438 svgascreen->sws->fence_reference(svgascreen->sws, &fence, NULL); in svga_context_flush()
Dsvga_shader.c386 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in define_gb_shader_vgpu9() local
394 variant->gb_shader = sws->shader_create(sws, variant->type, in define_gb_shader_vgpu9()
603 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_destroy_shader_variant() local
604 sws->shader_destroy(sws, variant->gb_shader); in svga_destroy_shader_variant()
Dsvga_format.c294 if (ss->sws->have_vgpu10) { in svga_translate_format()
334 assert(!ss->sws->have_vgpu10); in svga_translate_format()
337 assert(!ss->sws->have_vgpu10); in svga_translate_format()
340 assert(!ss->sws->have_vgpu10); in svga_translate_format()
1614 struct svga_winsys_screen *sws = ss->sws; in svga_get_format_cap() local
1628 if (entry->devcap && sws->get_cap(sws, entry->devcap, &result)) { in svga_get_format_cap()
1646 struct svga_winsys_screen *sws = ss->sws; in svga_get_dx_format_cap() local
1655 assert(sws->have_vgpu10); in svga_get_dx_format_cap()
1663 sws->get_cap(sws, entry->devcap, caps); in svga_get_dx_format_cap()
1669 if (!sws->have_sm4_1 && in svga_get_dx_format_cap()
[all …]
Dsvga_context.h784 return svga_screen(svga->pipe.screen)->sws; in svga_sws()
790 return svga_screen(svga->pipe.screen)->sws->have_gb_objects; in svga_have_gb_objects()
796 return svga_screen(svga->pipe.screen)->sws->have_gb_dma; in svga_have_gb_dma()
802 return svga_screen(svga->pipe.screen)->sws->have_vgpu10; in svga_have_vgpu10()
808 return svga_screen(svga->pipe.screen)->sws->have_sm4_1; in svga_have_sm4_1()
814 return svga_screen(svga->pipe.screen)->sws->have_sm5; in svga_have_sm5()
820 return svga_screen(svga->pipe.screen)->sws->need_to_rebind_resources; in svga_need_to_rebind_resources()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_svga.c64 vmw_svga_winsys_buffer_create(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_create() argument
69 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_buffer_create()
108 vmw_svga_winsys_fence_reference(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_reference() argument
112 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_reference()
119 vmw_svga_winsys_fence_signalled(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_signalled() argument
123 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_signalled()
130 vmw_svga_winsys_fence_finish(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_finish() argument
135 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_finish()
142 vmw_svga_winsys_fence_get_fd(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_get_fd() argument
154 vmw_svga_winsys_fence_create_fd(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_create_fd() argument
[all …]
Dvmw_shader.c53 struct svga_winsys_screen *sws = &dst->screen->base; in vmw_svga_winsys_shader_reference() local
55 if (!sws->have_vgpu10) in vmw_svga_winsys_shader_reference()
62 sws->buffer_destroy(sws, dst->buf); in vmw_svga_winsys_shader_reference()
75 vmw_svga_shader_create(struct svga_winsys_screen *sws, in vmw_svga_shader_create() argument
91 shader->screen = vmw_winsys_screen(sws); in vmw_svga_shader_create()
92 shader->buf = sws->buffer_create(sws, 64, in vmw_svga_shader_create()
100 map = sws->buffer_map(sws, shader->buf, PIPE_MAP_WRITE); in vmw_svga_shader_create()
111 assert(sws->have_sm5); in vmw_svga_shader_create()
115 sws->buffer_unmap(sws, shader->buf); in vmw_svga_shader_create()
Dvmw_query.c36 vmw_svga_winsys_query_create(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_create() argument
39 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_query_create()
66 vmw_svga_winsys_query_destroy(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_destroy() argument
69 vmw_svga_winsys_buffer_destroy(sws, query->buf); in vmw_svga_winsys_query_destroy()
76 vmw_svga_winsys_query_init(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_init() argument
83 state = (SVGA3dQueryState *) vmw_svga_winsys_buffer_map(sws, in vmw_svga_winsys_query_init()
95 vmw_svga_winsys_buffer_unmap(sws, query->buf); in vmw_svga_winsys_query_init()
103 vmw_svga_winsys_query_get_result(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_get_result() argument
111 state = (SVGA3dQueryState *) vmw_svga_winsys_buffer_map(sws, in vmw_svga_winsys_query_get_result()
132 vmw_svga_winsys_buffer_unmap(sws, query->buf); in vmw_svga_winsys_query_get_result()
Dvmw_query.h41 vmw_svga_winsys_query_create(struct svga_winsys_screen *sws,
45 vmw_svga_winsys_query_destroy(struct svga_winsys_screen *sws,
49 vmw_svga_winsys_query_init(struct svga_winsys_screen *sws,
55 vmw_svga_winsys_query_get_result(struct svga_winsys_screen *sws,
Dvmw_screen_dri.c54 vmw_drm_surface_from_handle(struct svga_winsys_screen *sws,
59 vmw_drm_gb_surface_from_handle(struct svga_winsys_screen *sws,
63 vmw_drm_surface_get_handle(struct svga_winsys_screen *sws,
142 vmw_drm_gb_surface_from_handle(struct svga_winsys_screen *sws, in vmw_drm_gb_surface_from_handle() argument
148 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_gb_surface_from_handle()
214 vmw_drm_surface_from_handle(struct svga_winsys_screen *sws, in vmw_drm_surface_from_handle() argument
220 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_from_handle()
325 vmw_drm_surface_get_handle(struct svga_winsys_screen *sws, in vmw_drm_surface_get_handle() argument
330 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_get_handle()
Dvmw_buffer.h79 vmw_svga_winsys_buffer_destroy(struct svga_winsys_screen *sws,
82 vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws,
87 vmw_svga_winsys_buffer_unmap(struct svga_winsys_screen *sws,
Dvmw_buffer.c342 vmw_svga_winsys_buffer_destroy(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_destroy() argument
346 (void)sws; in vmw_svga_winsys_buffer_destroy()
355 vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_map() argument
361 (void)sws; in vmw_svga_winsys_buffer_map()
393 vmw_svga_winsys_buffer_unmap(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_unmap() argument
396 (void)sws; in vmw_svga_winsys_buffer_unmap()
/external/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c143 dt_map = vtws->sws->displaytarget_map(vtws->sws, res->dt, 0); in virgl_vtest_transfer_get_internal()
150 vtws->sws->displaytarget_unmap(vtws->sws, res->dt); in virgl_vtest_transfer_get_internal()
179 vtws->sws->displaytarget_destroy(vtws->sws, res->dt); in virgl_hw_res_destroy()
247 res->dt = vtws->sws->displaytarget_create(vtws->sws, bind, format, in virgl_vtest_winsys_resource_create()
316 return vtws->sws->displaytarget_map(vtws->sws, res->dt, 0); in virgl_vtest_resource_map()
328 vtws->sws->displaytarget_unmap(vtws->sws, res->dt); in virgl_vtest_resource_unmap()
617 vtws->sws->displaytarget_display(vtws->sws, res->dt, winsys_drawable_handle, in virgl_vtest_flush_frontbuffer()
653 virgl_vtest_winsys_wrap(struct sw_winsys *sws) in virgl_vtest_winsys_wrap() argument
663 vtws->sws = sws; in virgl_vtest_winsys_wrap()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c152 struct amdgpu_screen_winsys *sws = amdgpu_screen_winsys(rws); in amdgpu_winsys_destroy() local
153 struct amdgpu_winsys *ws = sws->aws; in amdgpu_winsys_destroy()
178 close(sws->fd); in amdgpu_winsys_destroy()
272 struct amdgpu_screen_winsys *sws = amdgpu_screen_winsys(rws); in amdgpu_winsys_unref() local
273 struct amdgpu_winsys *aws = sws->aws; in amdgpu_winsys_unref()
278 ret = pipe_reference(&sws->reference, NULL); in amdgpu_winsys_unref()
281 struct amdgpu_winsys *aws = sws->aws; in amdgpu_winsys_unref()
287 if (*sws_iter == sws) { in amdgpu_winsys_unref()
288 *sws_iter = sws->next; in amdgpu_winsys_unref()
296 if (ret && sws->kms_handles) { in amdgpu_winsys_unref()
[all …]
/external/mesa3d/src/gallium/auxiliary/target-helpers/
Ddrm_helper.h215 struct svga_winsys_screen *sws; in DRM_DRIVER_DESCRIPTOR() local
218 sws = svga_drm_winsys_screen_create(fd); in DRM_DRIVER_DESCRIPTOR()
219 if (!sws) in DRM_DRIVER_DESCRIPTOR()
222 screen = svga_screen_create(sws); in DRM_DRIVER_DESCRIPTOR()

123