Home
last modified time | relevance | path

Searched refs:vws (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_pools.c41 vmw_pools_cleanup(struct vmw_winsys_screen *vws) in vmw_pools_cleanup() argument
43 if (vws->pools.mob_shader_slab_fenced) in vmw_pools_cleanup()
44 vws->pools.mob_shader_slab_fenced->destroy in vmw_pools_cleanup()
45 (vws->pools.mob_shader_slab_fenced); in vmw_pools_cleanup()
46 if (vws->pools.mob_shader_slab) in vmw_pools_cleanup()
47 vws->pools.mob_shader_slab->destroy(vws->pools.mob_shader_slab); in vmw_pools_cleanup()
48 if (vws->pools.mob_fenced) in vmw_pools_cleanup()
49 vws->pools.mob_fenced->destroy(vws->pools.mob_fenced); in vmw_pools_cleanup()
50 if (vws->pools.mob_cache) in vmw_pools_cleanup()
51 vws->pools.mob_cache->destroy(vws->pools.mob_cache); in vmw_pools_cleanup()
[all …]
Dvmw_screen.c68 struct vmw_winsys_screen *vws; in vmw_winsys_create() local
80 vws = util_hash_table_get(dev_hash, &stat_buf.st_rdev); in vmw_winsys_create()
81 if (vws) { in vmw_winsys_create()
82 vws->open_count++; in vmw_winsys_create()
83 return vws; in vmw_winsys_create()
86 vws = CALLOC_STRUCT(vmw_winsys_screen); in vmw_winsys_create()
87 if (!vws) in vmw_winsys_create()
90 vws->device = stat_buf.st_rdev; in vmw_winsys_create()
91 vws->open_count = 1; in vmw_winsys_create()
92 vws->ioctl.drm_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); in vmw_winsys_create()
[all …]
Dvmw_screen_svga.c66 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_buffer_create() local
76 if (vws->pools.query_fenced == NULL && !vmw_query_pools_init(vws)) in vmw_svga_winsys_buffer_create()
78 provider = vws->pools.query_fenced; in vmw_svga_winsys_buffer_create()
80 provider = vws->pools.mob_shader_slab_fenced; in vmw_svga_winsys_buffer_create()
82 provider = vws->pools.gmr_fenced; in vmw_svga_winsys_buffer_create()
87 if(!buffer && provider == vws->pools.gmr_fenced) { in vmw_svga_winsys_buffer_create()
90 provider = vws->pools.gmr_slab_fenced; in vmw_svga_winsys_buffer_create()
106 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_reference() local
108 vmw_fence_reference(vws, pdst, src); in vmw_svga_winsys_fence_reference()
117 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_signalled() local
[all …]
Dvmw_screen_ioctl.c74 vmw_ioctl_context_create(struct vmw_winsys_screen *vws) in vmw_ioctl_context_create() argument
81 ret = drmCommandRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_CONTEXT, in vmw_ioctl_context_create()
92 vmw_ioctl_extended_context_create(struct vmw_winsys_screen *vws, in vmw_ioctl_extended_context_create() argument
101 ret = drmCommandWriteRead(vws->ioctl.drm_fd, in vmw_ioctl_extended_context_create()
113 vmw_ioctl_context_destroy(struct vmw_winsys_screen *vws, uint32 cid) in vmw_ioctl_context_destroy() argument
122 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_CONTEXT, in vmw_ioctl_context_destroy()
128 vmw_ioctl_surface_create(struct vmw_winsys_screen *vws, in vmw_ioctl_surface_create() argument
177 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_SURFACE, in vmw_ioctl_surface_create()
190 vmw_ioctl_gb_surface_create(struct vmw_winsys_screen *vws, in vmw_ioctl_gb_surface_create() argument
230 if (vws->base.have_vgpu10) { in vmw_ioctl_gb_surface_create()
[all …]
Dvmw_screen.h116 vmw_ioctl_context_create(struct vmw_winsys_screen *vws);
119 vmw_ioctl_extended_context_create(struct vmw_winsys_screen *vws,
123 vmw_ioctl_context_destroy(struct vmw_winsys_screen *vws,
127 vmw_ioctl_surface_create(struct vmw_winsys_screen *vws,
136 vmw_ioctl_gb_surface_create(struct vmw_winsys_screen *vws,
148 vmw_ioctl_gb_surface_ref(struct vmw_winsys_screen *vws,
157 vmw_ioctl_surface_destroy(struct vmw_winsys_screen *vws,
161 vmw_ioctl_command(struct vmw_winsys_screen *vws,
169 vmw_ioctl_region_create(struct vmw_winsys_screen *vws, uint32_t size);
184 vmw_ioctl_fence_finish(struct vmw_winsys_screen *vws,
[all …]
Dvmw_fence.c41 struct vmw_winsys_screen *vws; member
220 vmw_fence_reference(struct vmw_winsys_screen *vws, in vmw_fence_reference() argument
228 struct vmw_fence_ops *ops = vmw_fence_ops(vws->fence_ops); in vmw_fence_reference()
230 vmw_ioctl_fence_unref(vws, vfence->handle); in vmw_fence_reference()
261 vmw_fence_signalled(struct vmw_winsys_screen *vws, in vmw_fence_signalled() argument
287 ret = vmw_ioctl_fence_signalled(vws, vfence->handle, vflags); in vmw_fence_signalled()
309 vmw_fence_finish(struct vmw_winsys_screen *vws, in vmw_fence_finish() argument
328 ret = vmw_ioctl_fence_finish(vws, vfence->handle, vflags); in vmw_fence_finish()
353 struct vmw_winsys_screen *vws = vmw_fence_ops(ops)->vws; in vmw_fence_ops_fence_reference() local
355 vmw_fence_reference(vws, ptr, fence); in vmw_fence_ops_fence_reference()
[all …]
Dvmw_screen_dri.c97 struct vmw_winsys_screen *vws; in svga_drm_winsys_screen_create() local
114 vws = vmw_winsys_create(fd); in svga_drm_winsys_screen_create()
115 if (!vws) in svga_drm_winsys_screen_create()
119 vws->base.surface_from_handle = vws->base.have_gb_objects ? in svga_drm_winsys_screen_create()
121 vws->base.surface_get_handle = vmw_drm_surface_get_handle; in svga_drm_winsys_screen_create()
123 return &vws->base; in svga_drm_winsys_screen_create()
180 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_gb_surface_from_handle() local
184 struct pb_manager *provider = vws->pools.gmr; in vmw_drm_gb_surface_from_handle()
195 ret = vmw_ioctl_gb_surface_ref(vws, whandle, &flags, format, in vmw_drm_gb_surface_from_handle()
218 vsrf->screen = vws; in vmw_drm_gb_surface_from_handle()
[all …]
Dvmw_surface.c47 struct vmw_winsys_screen *vws = vsrf->screen; in vmw_svga_winsys_surface_map() local
102 data = vmw_svga_winsys_buffer_map(&vws->base, vsrf->buf, in vmw_svga_winsys_surface_map()
111 provider = vws->pools.mob_fenced; in vmw_svga_winsys_surface_map()
119 data = vmw_svga_winsys_buffer_map(&vws->base, vbuf, pb_flags); in vmw_svga_winsys_surface_map()
128 vmw_svga_winsys_buffer_destroy(&vws->base, vsrf->buf); in vmw_svga_winsys_surface_map()
132 vmw_svga_winsys_buffer_destroy(&vws->base, vbuf); in vmw_svga_winsys_surface_map()
148 data = vmw_svga_winsys_buffer_map(&vws->base, vsrf->buf, pb_flags); in vmw_svga_winsys_surface_map()
Dvmw_fence.h44 vmw_fence_finish(struct vmw_winsys_screen *vws,
48 vmw_fence_signalled(struct vmw_winsys_screen *vws,
52 vmw_fence_reference(struct vmw_winsys_screen *vws,
57 vmw_fence_ops_create(struct vmw_winsys_screen *vws);
Dvmw_context.c97 struct vmw_winsys_screen *vws; member
213 vmw_ioctl_command(vswc->vws, in vmw_swc_flush()
261 vmw_fence_reference(vswc->vws, pfence, fence); in vmw_swc_flush()
263 vmw_fence_reference(vswc->vws, &fence, NULL); in vmw_swc_flush()
428 vswc->vws->ioctl.max_mob_memory / VMW_MAX_MOB_MEM_FACTOR) in vmw_swc_mob_relocation()
491 vswc->vws->ioctl.max_surface_memory / VMW_MAX_SURF_MEM_FACTOR) in vmw_swc_surface_only_relocation()
549 struct vmw_winsys_screen *vws = vswc->vws; in vmw_swc_shader_relocation() local
560 if (!vws->base.have_vgpu10) { in vmw_swc_shader_relocation()
652 vmw_ioctl_context_destroy(vswc->vws, swc->cid); in vmw_swc_destroy()
693 vmw_svga_winsys_shader_create(&vswc->vws->base, shaderType, bytecode, in vmw_svga_winsys_vgpu10_shader_create()
[all …]
Dvmw_buffer.c85 struct vmw_winsys_screen *vws; member
199 struct vmw_winsys_screen *vws = mgr->vws; in vmw_gmr_bufmgr_create_buffer() local
217 buf->region = vmw_ioctl_region_create(vws, size); in vmw_gmr_bufmgr_create_buffer()
246 vmw_gmr_bufmgr_create(struct vmw_winsys_screen *vws) in vmw_gmr_bufmgr_create() argument
258 mgr->vws = vws; in vmw_gmr_bufmgr_create()
Dvmw_query.c39 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_query_create() local
40 struct pb_manager *provider = vws->pools.gmr; in vmw_svga_winsys_query_create()
/external/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_socket.c77 static int virgl_vtest_send_init(struct virgl_vtest_winsys *vws) in virgl_vtest_send_init() argument
99 virgl_block_write(vws->sock_fd, &buf, sizeof(buf)); in virgl_vtest_send_init()
100 virgl_block_write(vws->sock_fd, (void *)cmdline, strlen(cmdline) + 1); in virgl_vtest_send_init()
104 int virgl_vtest_connect(struct virgl_vtest_winsys *vws) in virgl_vtest_connect() argument
124 vws->sock_fd = sock; in virgl_vtest_connect()
125 virgl_vtest_send_init(vws); in virgl_vtest_connect()
129 int virgl_vtest_send_get_caps(struct virgl_vtest_winsys *vws, in virgl_vtest_send_get_caps() argument
139 virgl_block_write(vws->sock_fd, &get_caps_buf, sizeof(get_caps_buf)); in virgl_vtest_send_get_caps()
141 ret = virgl_block_read(vws->sock_fd, resp_buf, sizeof(resp_buf)); in virgl_vtest_send_get_caps()
145 ret = virgl_block_read(vws->sock_fd, &caps->caps, sizeof(union virgl_caps)); in virgl_vtest_send_get_caps()
[all …]
Dvirgl_vtest_winsys.c33 static void *virgl_vtest_resource_map(struct virgl_winsys *vws,
35 static void virgl_vtest_resource_unmap(struct virgl_winsys *vws,
68 virgl_vtest_transfer_put(struct virgl_winsys *vws, in virgl_vtest_transfer_put() argument
74 struct virgl_vtest_winsys *vtws = virgl_vtest_winsys(vws); in virgl_vtest_transfer_put()
85 ptr = virgl_vtest_resource_map(vws, res); in virgl_vtest_transfer_put()
87 virgl_vtest_resource_unmap(vws, res); in virgl_vtest_transfer_put()
92 virgl_vtest_transfer_get(struct virgl_winsys *vws, in virgl_vtest_transfer_get() argument
98 struct virgl_vtest_winsys *vtws = virgl_vtest_winsys(vws); in virgl_vtest_transfer_get()
111 ptr = virgl_vtest_resource_map(vws, res); in virgl_vtest_transfer_get()
114 virgl_vtest_resource_unmap(vws, res); in virgl_vtest_transfer_get()
[all …]
Dvirgl_vtest_winsys.h108 int virgl_vtest_connect(struct virgl_vtest_winsys *vws);
109 int virgl_vtest_send_get_caps(struct virgl_vtest_winsys *vws,
112 int virgl_vtest_send_resource_create(struct virgl_vtest_winsys *vws,
124 int virgl_vtest_send_resource_unref(struct virgl_vtest_winsys *vws,
129 int virgl_vtest_send_transfer_cmd(struct virgl_vtest_winsys *vws,
137 int virgl_vtest_send_transfer_put_data(struct virgl_vtest_winsys *vws,
140 int virgl_vtest_recv_transfer_get_data(struct virgl_vtest_winsys *vws,
147 int virgl_vtest_busy_wait(struct virgl_vtest_winsys *vws, int handle,
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_winsys.h48 void (*destroy)(struct virgl_winsys *vws);
50 int (*transfer_put)(struct virgl_winsys *vws,
56 int (*transfer_get)(struct virgl_winsys *vws,
62 struct virgl_hw_res *(*resource_create)(struct virgl_winsys *vws,
70 void (*resource_unref)(struct virgl_winsys *vws, struct virgl_hw_res *res);
72 void *(*resource_map)(struct virgl_winsys *vws, struct virgl_hw_res *res);
73 void (*resource_wait)(struct virgl_winsys *vws, struct virgl_hw_res *res);
75 struct virgl_hw_res *(*resource_create_from_handle)(struct virgl_winsys *vws,
77 boolean (*resource_get_handle)(struct virgl_winsys *vws,
85 …void (*emit_res)(struct virgl_winsys *vws, struct virgl_cmd_buf *buf, struct virgl_hw_res *res, bo…
[all …]
Dvirgl_screen.c517 struct virgl_winsys *vws = vscreen->vws; in virgl_flush_frontbuffer() local
520 if (vws->flush_frontbuffer) in virgl_flush_frontbuffer()
521 vws->flush_frontbuffer(vws, vres->hw_res, level, layer, winsys_drawable_handle, in virgl_flush_frontbuffer()
530 struct virgl_winsys *vws = vscreen->vws; in virgl_fence_reference() local
532 vws->fence_reference(vws, ptr, fence); in virgl_fence_reference()
541 struct virgl_winsys *vws = vscreen->vws; in virgl_fence_finish() local
543 return vws->fence_wait(vws, fence, timeout); in virgl_fence_finish()
556 struct virgl_winsys *vws = vscreen->vws; in virgl_destroy_screen() local
560 if (vws) in virgl_destroy_screen()
561 vws->destroy(vws); in virgl_destroy_screen()
[all …]
Dvirgl_buffer.c37 vs->vws->resource_unref(vs->vws, vbuf->base.hw_res); in virgl_buffer_destroy()
80 …vs->vws->transfer_get(vs->vws, vbuf->base.hw_res, box, trans->base.stride, trans->base.layer_strid… in virgl_buffer_transfer_map()
86 vs->vws->resource_wait(vs->vws, vbuf->base.hw_res); in virgl_buffer_transfer_map()
88 ptr = vs->vws->resource_map(vs->vws, vbuf->base.hw_res); in virgl_buffer_transfer_map()
111 vs->vws->transfer_put(vs->vws, vbuf->base.hw_res, in virgl_buffer_transfer_unmap()
167 …buf->base.hw_res = vs->vws->resource_create(vs->vws, template->target, template->format, vbind, te… in virgl_buffer_create()
Dvirgl_context.c72 rs->vws->transfer_put(rs->vws, vbuf->base.hw_res, in virgl_buffer_flush()
80 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_framebuffer() local
89 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_framebuffer()
96 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_framebuffer()
104 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_sampler_views() local
115 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_sampler_views()
121 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_vertex_buffers() local
128 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_vertex_buffers()
134 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_index_buffer() local
139 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_index_buffer()
[all …]
Dvirgl_texture.c191 vs->vws->transfer_get(vs->vws, hw_res, box, trans->base.stride, l_stride, offset, level); in virgl_texture_transfer_map()
194 vs->vws->resource_wait(vs->vws, vtex->base.hw_res); in virgl_texture_transfer_map()
196 ptr = vs->vws->resource_map(vs->vws, hw_res); in virgl_texture_transfer_map()
229 vs->vws->transfer_put(vs->vws, vtex->base.hw_res, in virgl_texture_transfer_unmap()
288 return vs->vws->resource_get_handle(vs->vws, vtex->base.hw_res, vtex->stride[0], whandle); in virgl_texture_get_handle()
296 vs->vws->resource_unref(vs->vws, vtex->base.hw_res); in virgl_texture_destroy()
324 tex->base.hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle); in virgl_texture_from_handle()
344 …tex->base.hw_res = vs->vws->resource_create(vs->vws, template->target, template->format, vbind, te… in virgl_texture_create()
Dvirgl_resource.c34 …if ((!(usage & PIPE_TRANSFER_UNSYNCHRONIZED)) && vs->vws->res_is_referenced(vs->vws, vctx->cbuf, r… in virgl_res_needs_flush_wait()
Dvirgl_public.h30 virgl_create_screen(struct virgl_winsys *vws);
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c250 virgl_bo_transfer_put(struct virgl_winsys *vws, in virgl_bo_transfer_put() argument
256 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_bo_transfer_put()
270 virgl_bo_transfer_get(struct virgl_winsys *vws, in virgl_bo_transfer_get() argument
276 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_bo_transfer_get()
692 static int virgl_drm_get_caps(struct virgl_winsys *vws, in virgl_drm_get_caps() argument
695 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_drm_get_caps()
719 virgl_cs_create_fence(struct virgl_winsys *vws) in virgl_cs_create_fence() argument
723 res = virgl_drm_winsys_resource_cache_create(vws, in virgl_cs_create_fence()
732 static bool virgl_fence_wait(struct virgl_winsys *vws, in virgl_fence_wait() argument
736 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_fence_wait()
[all …]
/external/mesa3d/src/gallium/auxiliary/target-helpers/
Dinline_sw_helper.h42 struct virgl_winsys *vws; in sw_screen_create_named() local
43 vws = virgl_vtest_winsys_wrap(winsys); in sw_screen_create_named()
44 screen = virgl_create_screen(vws); in sw_screen_create_named()
Dsw_helper.h44 struct virgl_winsys *vws; in sw_screen_create_named() local
45 vws = virgl_vtest_winsys_wrap(winsys); in sw_screen_create_named()
46 screen = virgl_create_screen(vws); in sw_screen_create_named()

12