Home
last modified time | relevance | path

Searched refs:whandle (Results 1 – 25 of 44) sorted by relevance

12

/external/mesa3d/src/gallium/state_trackers/gbm/
Dgbm_drm.c112 struct winsys_handle whandle; in gbm_gallium_drm_bo_import() local
161 memset(&whandle, 0, sizeof(whandle)); in gbm_gallium_drm_bo_import()
162 whandle.type = DRM_API_HANDLE_TYPE_KMS; in gbm_gallium_drm_bo_import()
163 gdrm->screen->resource_get_handle(gdrm->screen, bo->resource, &whandle); in gbm_gallium_drm_bo_import()
165 bo->base.base.handle.u32 = whandle.handle; in gbm_gallium_drm_bo_import()
166 bo->base.base.stride = whandle.stride; in gbm_gallium_drm_bo_import()
179 struct winsys_handle whandle; in gbm_gallium_drm_bo_create() local
211 memset(&whandle, 0, sizeof(whandle)); in gbm_gallium_drm_bo_create()
212 whandle.type = DRM_API_HANDLE_TYPE_KMS; in gbm_gallium_drm_bo_create()
213 gdrm->screen->resource_get_handle(gdrm->screen, bo->resource, &whandle); in gbm_gallium_drm_bo_create()
[all …]
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_dri.c51 struct winsys_handle *whandle,
57 struct winsys_handle *whandle);
154 struct winsys_handle *whandle, in vmw_drm_surface_from_handle() argument
172 req->sid = whandle->handle; in vmw_drm_surface_from_handle()
180 whandle->handle, ret, strerror(-ret)); in vmw_drm_surface_from_handle()
187 whandle->handle, rep->mip_levels[0]); in vmw_drm_surface_from_handle()
195 whandle->handle, i); in vmw_drm_surface_from_handle()
207 vsrf->sid = whandle->handle; in vmw_drm_surface_from_handle()
214 vmw_ioctl_surface_destroy(vws, whandle->handle); in vmw_drm_surface_from_handle()
222 struct winsys_handle *whandle) in vmw_drm_surface_get_handle() argument
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/drm/
Ddri2.c212 struct winsys_handle whandle; in dri2_drawable_process_buffers() local
233 memset(&whandle, 0, sizeof(whandle)); in dri2_drawable_process_buffers()
276 whandle.handle = buf->name; in dri2_drawable_process_buffers()
277 whandle.stride = buf->pitch; in dri2_drawable_process_buffers()
281 &templ, &whandle); in dri2_drawable_process_buffers()
300 struct winsys_handle whandle; in dri2_allocate_buffer() local
355 memset(&whandle, 0, sizeof(whandle)); in dri2_allocate_buffer()
356 whandle.type = DRM_API_HANDLE_TYPE_SHARED; in dri2_allocate_buffer()
358 buffer->resource, &whandle); in dri2_allocate_buffer()
361 buffer->base.name = whandle.handle; in dri2_allocate_buffer()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_screen.c82 struct winsys_handle *whandle, in nouveau_screen_bo_from_handle() argument
89 ret = nouveau_bo_name_ref(dev, whandle->handle, &bo); in nouveau_screen_bo_from_handle()
92 __FUNCTION__, whandle->handle, ret); in nouveau_screen_bo_from_handle()
96 *out_stride = whandle->stride; in nouveau_screen_bo_from_handle()
105 struct winsys_handle *whandle) in nouveau_screen_bo_get_handle() argument
107 whandle->stride = stride; in nouveau_screen_bo_get_handle()
109 if (whandle->type == DRM_API_HANDLE_TYPE_SHARED) { in nouveau_screen_bo_get_handle()
110 return nouveau_bo_name_get(bo, &whandle->handle) == 0; in nouveau_screen_bo_get_handle()
111 } else if (whandle->type == DRM_API_HANDLE_TYPE_KMS) { in nouveau_screen_bo_get_handle()
112 whandle->handle = bo->handle; in nouveau_screen_bo_get_handle()
Dnouveau_screen.h56 struct winsys_handle *whandle);
59 struct winsys_handle *whandle,
/external/mesa3d/src/gallium/winsys/i915/drm/
Di915_drm_buffer.c93 struct winsys_handle *whandle, in i915_drm_buffer_from_handle() argument
105 …buf->bo = drm_intel_bo_gem_create_from_name(idws->gem_manager, "gallium3d_from_handle", whandle->h… in i915_drm_buffer_from_handle()
107 buf->flink = whandle->handle; in i915_drm_buffer_from_handle()
114 *stride = whandle->stride; in i915_drm_buffer_from_handle()
127 struct winsys_handle *whandle, in i915_drm_buffer_get_handle() argument
132 if (whandle->type == DRM_API_HANDLE_TYPE_SHARED) { in i915_drm_buffer_get_handle()
139 whandle->handle = buf->flink; in i915_drm_buffer_get_handle()
140 } else if (whandle->type == DRM_API_HANDLE_TYPE_KMS) { in i915_drm_buffer_get_handle()
141 whandle->handle = buf->bo->handle; in i915_drm_buffer_get_handle()
147 whandle->stride = stride; in i915_drm_buffer_get_handle()
/external/mesa3d/src/gallium/winsys/sw/wayland/
Dwayland_sw_winsys.c206 struct winsys_handle *whandle, in wayland_displaytarget_from_handle() argument
219 wldt->fd = whandle->fd; in wayland_displaytarget_from_handle()
220 wldt->stride = whandle->stride; in wayland_displaytarget_from_handle()
240 struct winsys_handle *whandle) in wayland_displaytarget_get_handle() argument
244 whandle->fd = wldt->fd; in wayland_displaytarget_get_handle()
245 whandle->stride = wldt->stride; in wayland_displaytarget_get_handle()
246 whandle->size = wldt->size; in wayland_displaytarget_get_handle()
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_dri2.c72 struct winsys_handle whandle; in dri2_do_create_buffer() local
160 memset(&whandle, 0, sizeof(whandle)); in dri2_do_create_buffer()
161 whandle.type = DRM_API_HANDLE_TYPE_SHARED; in dri2_do_create_buffer()
163 ms->screen->resource_get_handle(ms->screen, tex, &whandle); in dri2_do_create_buffer()
165 buffer->name = whandle.handle; in dri2_do_create_buffer()
166 buffer->pitch = whandle.stride; in dri2_do_create_buffer()
Dxorg_crtc.c220 struct winsys_handle whandle; in crtc_load_cursor_argb_ga3d() local
234 memset(&whandle, 0, sizeof(whandle)); in crtc_load_cursor_argb_ga3d()
235 whandle.type = DRM_API_HANDLE_TYPE_KMS; in crtc_load_cursor_argb_ga3d()
238 screen->resource_get_handle(screen, crtcp->cursor_tex, &whandle); in crtc_load_cursor_argb_ga3d()
240 crtcp->cursor_handle = whandle.handle; in crtc_load_cursor_argb_ga3d()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_tracker.c440 struct winsys_handle whandle; in xa_surface_handle() local
445 memset(&whandle, 0, sizeof(whandle)); in xa_surface_handle()
446 whandle.type = DRM_API_HANDLE_TYPE_SHARED; in xa_surface_handle()
447 res = screen->resource_get_handle(screen, srf->tex, &whandle); in xa_surface_handle()
451 *handle = whandle.handle; in xa_surface_handle()
452 *stride = whandle.stride; in xa_surface_handle()
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.c846 struct winsys_handle *whandle, in radeon_winsys_bo_from_handle() argument
866 bo = util_hash_table_get(mgr->bo_handles, (void*)(uintptr_t)whandle->handle); in radeon_winsys_bo_from_handle()
881 open_arg.name = whandle->handle; in radeon_winsys_bo_from_handle()
887 bo->name = whandle->handle; in radeon_winsys_bo_from_handle()
900 util_hash_table_set(mgr->bo_handles, (void*)(uintptr_t)whandle->handle, bo); in radeon_winsys_bo_from_handle()
906 *stride = whandle->stride; in radeon_winsys_bo_from_handle()
944 struct winsys_handle *whandle) in radeon_winsys_bo_get_handle() argument
951 if (whandle->type == DRM_API_HANDLE_TYPE_SHARED) { in radeon_winsys_bo_get_handle()
962 whandle->handle = bo->flink; in radeon_winsys_bo_get_handle()
963 } else if (whandle->type == DRM_API_HANDLE_TYPE_KMS) { in radeon_winsys_bo_get_handle()
[all …]
/external/mesa3d/src/gallium/include/state_tracker/
Dsw_winsys.h101 struct winsys_handle *whandle,
110 struct winsys_handle *whandle );
/external/mesa3d/src/gallium/drivers/radeonsi/
Dr600_resource.c38 struct winsys_handle *whandle) in r600_resource_from_handle() argument
43 return si_texture_from_handle(screen, templ, whandle); in r600_resource_from_handle()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_resource.c49 struct winsys_handle *whandle) in svga_resource_from_handle() argument
54 return svga_texture_from_handle(screen, template, whandle); in svga_resource_from_handle()
Dsvga_winsys.h202 struct winsys_handle *whandle,
213 struct winsys_handle *whandle);
/external/mesa3d/src/gallium/drivers/i915/
Di915_resource.c22 struct winsys_handle *whandle) in i915_resource_from_handle() argument
27 return i915_texture_from_handle(screen, template, whandle); in i915_resource_from_handle()
Di915_winsys.h171 struct winsys_handle *whandle,
181 struct winsys_handle *whandle,
/external/mesa3d/src/gallium/drivers/r600/
Dr600_resource.c43 struct winsys_handle *whandle) in r600_resource_from_handle() argument
48 return r600_texture_from_handle(screen, templ, whandle); in r600_resource_from_handle()
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_resource.c22 struct winsys_handle *whandle) in nvc0_resource_from_handle() argument
28 templ, whandle); in nvc0_resource_from_handle()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture.h65 struct winsys_handle *whandle);
70 struct winsys_handle *whandle);
/external/mesa3d/src/gallium/winsys/sw/null/
Dnull_sw_winsys.c97 struct winsys_handle *whandle, in null_sw_displaytarget_from_handle() argument
107 struct winsys_handle *whandle) in null_sw_displaytarget_get_handle() argument
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c167 struct winsys_handle *whandle, in wsw_dt_from_handle() argument
173 tex = wsw->screen->resource_from_handle(wsw->screen, templ, whandle); in wsw_dt_from_handle()
183 struct winsys_handle *whandle) in wsw_dt_get_handle() argument
189 return wsw->screen->resource_get_handle(wsw->screen, tex, whandle); in wsw_dt_get_handle()
/external/mesa3d/src/gallium/winsys/sw/android/
Dandroid_sw_winsys.cpp155 struct winsys_handle *whandle, in android_displaytarget_from_handle() argument
159 (struct android_winsys_handle *) whandle; in android_displaytarget_from_handle()
185 struct winsys_handle *whandle) in android_displaytarget_get_handle() argument
/external/mesa3d/src/gallium/state_trackers/egl/drm/
Dmodeset.c73 struct winsys_handle whandle; in drm_surface_init_framebuffers() local
101 memset(&whandle, 0, sizeof(whandle)); in drm_surface_init_framebuffers()
102 whandle.type = DRM_API_HANDLE_TYPE_KMS; in drm_surface_init_framebuffers()
105 fb->texture, &whandle)) in drm_surface_init_framebuffers()
110 block_bits, block_bits, whandle.stride, whandle.handle, in drm_surface_init_framebuffers()
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_resource.h78 struct winsys_handle *whandle);
83 struct winsys_handle *whandle);

12