Home
last modified time | relevance | path

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

123

/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_screen_dri.c55 struct winsys_handle *whandle,
60 struct winsys_handle *whandle,
66 struct winsys_handle *whandle);
143 struct winsys_handle *whandle, in vmw_drm_gb_surface_from_handle() argument
157 if (whandle->offset != 0) { in vmw_drm_gb_surface_from_handle()
159 whandle->offset); in vmw_drm_gb_surface_from_handle()
163 ret = vmw_ioctl_gb_surface_ref(vws, whandle, &flags, format, in vmw_drm_gb_surface_from_handle()
169 whandle->handle, ret, strerror(-ret)); in vmw_drm_gb_surface_from_handle()
176 whandle->handle, mip_levels); in vmw_drm_gb_surface_from_handle()
209 vmw_ioctl_surface_destroy(vws, whandle->handle); in vmw_drm_gb_surface_from_handle()
[all …]
/external/mesa3d/src/gallium/winsys/i915/drm/
Di915_drm_buffer.c92 struct winsys_handle *whandle, in i915_drm_buffer_from_handle() argument
101 if ((whandle->type != WINSYS_HANDLE_TYPE_SHARED) && (whandle->type != WINSYS_HANDLE_TYPE_FD)) in i915_drm_buffer_from_handle()
104 if (whandle->offset != 0) in i915_drm_buffer_from_handle()
113 if (whandle->type == WINSYS_HANDLE_TYPE_SHARED) in i915_drm_buffer_from_handle()
114 …o = drm_intel_bo_gem_create_from_name(idws->gem_manager, "gallium3d_from_handle", whandle->handle); in i915_drm_buffer_from_handle()
115 else if (whandle->type == WINSYS_HANDLE_TYPE_FD) { in i915_drm_buffer_from_handle()
116 int fd = (int) whandle->handle; in i915_drm_buffer_from_handle()
117 … buf->bo = drm_intel_bo_gem_create_from_prime(idws->gem_manager, fd, height * whandle->stride); in i915_drm_buffer_from_handle()
121 buf->flink = whandle->handle; in i915_drm_buffer_from_handle()
128 *stride = whandle->stride; in i915_drm_buffer_from_handle()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_screen.c101 struct winsys_handle *whandle, in nouveau_screen_bo_from_handle() argument
108 if (whandle->offset != 0) { in nouveau_screen_bo_from_handle()
110 __FUNCTION__, whandle->offset); in nouveau_screen_bo_from_handle()
114 if (whandle->type != WINSYS_HANDLE_TYPE_SHARED && in nouveau_screen_bo_from_handle()
115 whandle->type != WINSYS_HANDLE_TYPE_FD) { in nouveau_screen_bo_from_handle()
117 __FUNCTION__, whandle->type); in nouveau_screen_bo_from_handle()
121 if (whandle->type == WINSYS_HANDLE_TYPE_SHARED) in nouveau_screen_bo_from_handle()
122 ret = nouveau_bo_name_ref(dev, whandle->handle, &bo); in nouveau_screen_bo_from_handle()
124 ret = nouveau_bo_prime_handle_ref(dev, whandle->handle, &bo); in nouveau_screen_bo_from_handle()
128 __FUNCTION__, whandle->handle, ret); in nouveau_screen_bo_from_handle()
[all …]
/external/mesa3d/src/gallium/winsys/sw/kms-dri/
Dkms_dri_sw_winsys.c389 struct winsys_handle *whandle, in kms_sw_displaytarget_from_handle() argument
397 assert(whandle->type == WINSYS_HANDLE_TYPE_KMS || in kms_sw_displaytarget_from_handle()
398 whandle->type == WINSYS_HANDLE_TYPE_FD); in kms_sw_displaytarget_from_handle()
400 switch(whandle->type) { in kms_sw_displaytarget_from_handle()
402 kms_sw_pl = kms_sw_displaytarget_add_from_prime(kms_sw, whandle->handle, in kms_sw_displaytarget_from_handle()
406 whandle->stride, in kms_sw_displaytarget_from_handle()
407 whandle->offset); in kms_sw_displaytarget_from_handle()
412 kms_sw_dt = kms_sw_displaytarget_find_and_ref(kms_sw, whandle->handle); in kms_sw_displaytarget_from_handle()
416 if (whandle->offset == plane->offset) { in kms_sw_displaytarget_from_handle()
435 struct winsys_handle *whandle) in kms_sw_displaytarget_get_handle() argument
[all …]
/external/mesa3d/src/gallium/frontends/dri/
Ddri2.c298 struct winsys_handle whandle; in dri2_allocate_buffer() local
362 memset(&whandle, 0, sizeof(whandle)); in dri2_allocate_buffer()
364 whandle.type = WINSYS_HANDLE_TYPE_SHARED; in dri2_allocate_buffer()
366 whandle.type = WINSYS_HANDLE_TYPE_KMS; in dri2_allocate_buffer()
369 buffer->resource, &whandle, in dri2_allocate_buffer()
373 buffer->base.name = whandle.handle; in dri2_allocate_buffer()
375 buffer->base.pitch = whandle.stride; in dri2_allocate_buffer()
410 struct winsys_handle whandle; in dri2_allocate_textures() local
513 memset(&whandle, 0, sizeof(whandle)); in dri2_allocate_textures()
547 whandle.handle = buf->name; in dri2_allocate_textures()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_vdpau.c113 struct winsys_handle whandle; in st_vdpau_resource_from_description() local
129 memset(&whandle, 0, sizeof(whandle)); in st_vdpau_resource_from_description()
130 whandle.type = WINSYS_HANDLE_TYPE_FD; in st_vdpau_resource_from_description()
131 whandle.handle = desc->handle; in st_vdpau_resource_from_description()
132 whandle.offset = desc->offset; in st_vdpau_resource_from_description()
133 whandle.stride = desc->stride; in st_vdpau_resource_from_description()
135 res = st->pipe->screen->resource_from_handle(st->pipe->screen, &templ, &whandle, in st_vdpau_resource_from_description()
214 struct winsys_handle whandle = { .type = WINSYS_HANDLE_TYPE_FD }; in st_vdpau_map_surface() local
219 res->screen->resource_get_handle(res->screen, NULL, res, &whandle, in st_vdpau_map_surface()
221 new_res = screen->resource_from_handle(screen, res, &whandle, usage); in st_vdpau_map_surface()
[all …]
Dst_cb_memoryobjects.c78 struct winsys_handle whandle = { in st_import_memoryobj_fd() local
87 &whandle, in st_import_memoryobj_fd()
/external/mesa3d/src/gallium/frontends/xa/
Dxa_tracker.c339 struct winsys_handle *whandle) in surface_create() argument
374 if (whandle) in surface_create()
375 srf->tex = xa->screen->resource_from_handle(xa->screen, template, whandle, in surface_create()
430 struct winsys_handle whandle; in xa_surface_from_handle2() local
431 memset(&whandle, 0, sizeof(whandle)); in xa_surface_from_handle2()
432 whandle.type = handle_type(type); in xa_surface_from_handle2()
433 whandle.handle = handle; in xa_surface_from_handle2()
434 whandle.stride = stride; in xa_surface_from_handle2()
435 return surface_create(xa, width, height, depth, stype, xa_format, flags, &whandle); in xa_surface_from_handle2()
555 struct winsys_handle whandle; in xa_surface_handle() local
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_screen.c752 struct winsys_handle *whandle) in fd_screen_bo_get_handle() argument
754 whandle->stride = stride; in fd_screen_bo_get_handle()
756 if (whandle->type == WINSYS_HANDLE_TYPE_SHARED) { in fd_screen_bo_get_handle()
757 return fd_bo_get_name(bo, &whandle->handle) == 0; in fd_screen_bo_get_handle()
758 } else if (whandle->type == WINSYS_HANDLE_TYPE_KMS) { in fd_screen_bo_get_handle()
759 if (renderonly_get_handle(scanout, whandle)) in fd_screen_bo_get_handle()
761 whandle->handle = fd_bo_handle(bo); in fd_screen_bo_get_handle()
763 } else if (whandle->type == WINSYS_HANDLE_TYPE_FD) { in fd_screen_bo_get_handle()
764 whandle->handle = fd_bo_dmabuf(bo); in fd_screen_bo_get_handle()
804 struct winsys_handle *whandle) in fd_screen_bo_from_handle() argument
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c290 struct winsys_handle *whandle, in vc4_resource_get_handle() argument
296 whandle->stride = rsc->slices[0].stride; in vc4_resource_get_handle()
297 whandle->offset = 0; in vc4_resource_get_handle()
306 whandle->modifier = DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED; in vc4_resource_get_handle()
308 whandle->modifier = DRM_FORMAT_MOD_LINEAR; in vc4_resource_get_handle()
310 switch (whandle->type) { in vc4_resource_get_handle()
320 return vc4_bo_flink(rsc->bo, &whandle->handle); in vc4_resource_get_handle()
324 return renderonly_get_handle(rsc->scanout, whandle); in vc4_resource_get_handle()
326 whandle->handle = rsc->bo->handle; in vc4_resource_get_handle()
331 whandle->handle = vc4_bo_get_dmabuf(rsc->bo); in vc4_resource_get_handle()
[all …]
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_resource.c404 struct winsys_handle *whandle, in v3d_resource_get_handle() argument
411 whandle->stride = rsc->slices[0].stride; in v3d_resource_get_handle()
412 whandle->offset = 0; in v3d_resource_get_handle()
426 whandle->modifier = DRM_FORMAT_MOD_BROADCOM_UIF; in v3d_resource_get_handle()
428 whandle->modifier = DRM_FORMAT_MOD_LINEAR; in v3d_resource_get_handle()
431 switch (whandle->type) { in v3d_resource_get_handle()
433 return v3d_bo_flink(bo, &whandle->handle); in v3d_resource_get_handle()
437 bool ok = renderonly_get_handle(rsc->scanout, whandle); in v3d_resource_get_handle()
438 whandle->stride = rsc->slices[0].stride; in v3d_resource_get_handle()
441 whandle->handle = bo->handle; in v3d_resource_get_handle()
[all …]
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c414 struct winsys_handle *whandle, in virgl_drm_winsys_resource_create_handle() argument
425 uint32_t handle = whandle->handle; in virgl_drm_winsys_resource_create_handle()
427 if (whandle->offset != 0 && whandle->type == WINSYS_HANDLE_TYPE_SHARED) { in virgl_drm_winsys_resource_create_handle()
429 whandle->offset); in virgl_drm_winsys_resource_create_handle()
431 } else if (whandle->type == WINSYS_HANDLE_TYPE_FD) { in virgl_drm_winsys_resource_create_handle()
432 *plane = whandle->plane; in virgl_drm_winsys_resource_create_handle()
433 *stride = whandle->stride; in virgl_drm_winsys_resource_create_handle()
434 *plane_offset = whandle->offset; in virgl_drm_winsys_resource_create_handle()
435 *modifier = whandle->modifier; in virgl_drm_winsys_resource_create_handle()
446 if (whandle->type == WINSYS_HANDLE_TYPE_SHARED) { in virgl_drm_winsys_resource_create_handle()
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_winsys_dri3.c223 struct winsys_handle whandle; in dri3_alloc_back_buffer() local
271 memset(&whandle, 0, sizeof(whandle)); in dri3_alloc_back_buffer()
272 whandle.type= WINSYS_HANDLE_TYPE_FD; in dri3_alloc_back_buffer()
274 pixmap_buffer_texture, &whandle, 0); in dri3_alloc_back_buffer()
275 buffer_fd = whandle.handle; in dri3_alloc_back_buffer()
276 buffer->pitch = whandle.stride; in dri3_alloc_back_buffer()
462 struct winsys_handle whandle; in dri3_get_front_buffer() local
491 memset(&whandle, 0, sizeof(whandle)); in dri3_get_front_buffer()
492 whandle.type = WINSYS_HANDLE_TYPE_FD; in dri3_get_front_buffer()
493 whandle.handle = (unsigned)fds[0]; in dri3_get_front_buffer()
[all …]
/external/mesa3d/src/gallium/drivers/zink/
Dzink_resource.c94 struct winsys_handle *whandle, in resource_create() argument
274 if (whandle && whandle->type == WINSYS_HANDLE_TYPE_FD) { in resource_create()
277 imfi.fd = whandle->handle; in resource_create()
343 struct winsys_handle *whandle, in zink_resource_get_handle() argument
359 whandle->stride = sub_res_layout.rowPitch; in zink_resource_get_handle()
362 if (whandle->type == WINSYS_HANDLE_TYPE_FD) { in zink_resource_get_handle()
369 whandle->handle = fd; in zink_resource_get_handle()
370 whandle->modifier = DRM_FORMAT_MOD_INVALID; in zink_resource_get_handle()
378 struct winsys_handle *whandle, in zink_resource_from_handle() argument
381 if (whandle->modifier != DRM_FORMAT_MOD_INVALID) in zink_resource_from_handle()
[all …]
/external/mesa3d/src/gallium/frontends/va/
Dbuffer.c306 struct winsys_handle whandle; in vlVaAcquireBufferHandle() local
311 memset(&whandle, 0, sizeof(whandle)); in vlVaAcquireBufferHandle()
312 whandle.type = WINSYS_HANDLE_TYPE_FD; in vlVaAcquireBufferHandle()
316 &whandle, PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE)) { in vlVaAcquireBufferHandle()
323 buf_info->handle = (intptr_t)whandle.handle; in vlVaAcquireBufferHandle()
Dsurface.c568 struct winsys_handle whandle; in surface_from_external_memory() local
601 memset(&whandle, 0, sizeof(struct winsys_handle)); in surface_from_external_memory()
602 whandle.type = WINSYS_HANDLE_TYPE_FD; in surface_from_external_memory()
603 whandle.handle = memory_attribute->buffers[index]; in surface_from_external_memory()
604 whandle.modifier = DRM_FORMAT_MOD_INVALID; in surface_from_external_memory()
615 whandle.stride = memory_attribute->pitches[i]; in surface_from_external_memory()
616 whandle.offset = memory_attribute->offsets[i]; in surface_from_external_memory()
617 resources[i] = pscreen->resource_from_handle(pscreen, &res_templ, &whandle, in surface_from_external_memory()
1045 struct winsys_handle whandle; in vlVaExportSurfaceHandle() local
1084 memset(&whandle, 0, sizeof(whandle)); in vlVaExportSurfaceHandle()
[all …]
/external/mesa3d/src/gallium/frontends/vdpau/
Dsurface.c491 struct winsys_handle whandle; in vlVdpVideoSurfaceDMABuf() local
528 memset(&whandle, 0, sizeof(struct winsys_handle)); in vlVdpVideoSurfaceDMABuf()
529 whandle.type = WINSYS_HANDLE_TYPE_FD; in vlVdpVideoSurfaceDMABuf()
530 whandle.layer = surf->u.tex.first_layer; in vlVdpVideoSurfaceDMABuf()
534 surf->texture, &whandle, in vlVdpVideoSurfaceDMABuf()
542 result->handle = whandle.handle; in vlVdpVideoSurfaceDMABuf()
545 result->offset = whandle.offset; in vlVdpVideoSurfaceDMABuf()
546 result->stride = whandle.stride; in vlVdpVideoSurfaceDMABuf()
/external/mesa3d/src/gallium/drivers/iris/
Diris_resource.c1049 struct winsys_handle *whandle, in iris_resource_from_handle() argument
1060 switch (whandle->type) { in iris_resource_from_handle()
1062 res->bo = iris_bo_import_dmabuf(bufmgr, whandle->handle, in iris_resource_from_handle()
1063 whandle->modifier); in iris_resource_from_handle()
1067 whandle->handle); in iris_resource_from_handle()
1075 res->offset = whandle->offset; in iris_resource_from_handle()
1076 res->external_format = whandle->format; in iris_resource_from_handle()
1079 if (whandle->plane < util_format_get_num_planes(whandle->format)) { in iris_resource_from_handle()
1082 whandle->modifier != DRM_FORMAT_MOD_INVALID ? in iris_resource_from_handle()
1083 whandle->modifier : tiling_to_modifier(res->bo->tiling_mode); in iris_resource_from_handle()
[all …]
/external/mesa3d/src/gallium/include/frontend/
Dsw_winsys.h100 struct winsys_handle *whandle,
109 struct winsys_handle *whandle );
/external/mesa3d/src/gallium/drivers/i915/
Di915_resource.c26 struct winsys_handle *whandle, in i915_resource_from_handle() argument
32 return i915_texture_from_handle(screen, template, whandle); in i915_resource_from_handle()
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.c1184 struct winsys_handle *whandle, in radeon_winsys_bo_from_handle() argument
1201 if (whandle->type == WINSYS_HANDLE_TYPE_SHARED) { in radeon_winsys_bo_from_handle()
1203 bo = util_hash_table_get(ws->bo_names, (void*)(uintptr_t)whandle->handle); in radeon_winsys_bo_from_handle()
1204 } else if (whandle->type == WINSYS_HANDLE_TYPE_FD) { in radeon_winsys_bo_from_handle()
1206 r = drmPrimeFDToHandle(ws->fd, whandle->handle, &handle); in radeon_winsys_bo_from_handle()
1228 if (whandle->type == WINSYS_HANDLE_TYPE_SHARED) { in radeon_winsys_bo_from_handle()
1232 open_arg.name = whandle->handle; in radeon_winsys_bo_from_handle()
1239 bo->flink_name = whandle->handle; in radeon_winsys_bo_from_handle()
1240 } else if (whandle->type == WINSYS_HANDLE_TYPE_FD) { in radeon_winsys_bo_from_handle()
1241 size = lseek(whandle->handle, 0, SEEK_END); in radeon_winsys_bo_from_handle()
[all …]
/external/mesa3d/src/gallium/winsys/sw/wrapper/
Dwrapper_sw_winsys.c182 struct winsys_handle *whandle, in wsw_dt_from_handle() argument
188 tex = wsw->screen->resource_from_handle(wsw->screen, templ, whandle, in wsw_dt_from_handle()
199 struct winsys_handle *whandle) in wsw_dt_get_handle() argument
205 return wsw->screen->resource_get_handle(wsw->screen, NULL, tex, whandle, in wsw_dt_get_handle()
/external/mesa3d/src/gallium/winsys/sw/dri/
Ddri_sw_winsys.c217 struct winsys_handle *whandle, in dri_sw_displaytarget_from_handle() argument
227 struct winsys_handle *whandle) in dri_sw_displaytarget_get_handle() argument
231 if (whandle->type == WINSYS_HANDLE_TYPE_SHMID) { in dri_sw_displaytarget_get_handle()
234 whandle->handle = dri_sw_dt->shmid; in dri_sw_displaytarget_get_handle()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_texture.h67 struct winsys_handle *whandle,
73 struct winsys_handle *whandle,
/external/mesa3d/src/gallium/winsys/sw/null/
Dnull_sw_winsys.c98 struct winsys_handle *whandle, in null_sw_displaytarget_from_handle() argument
108 struct winsys_handle *whandle) in null_sw_displaytarget_get_handle() argument

123