Home
last modified time | relevance | path

Searched refs:drm_rc_blob (Results 1 – 3 of 3) sorted by relevance

/external/minigbm/
Dvirtgpu_cross_domain.c217 struct drm_virtgpu_resource_create_blob drm_rc_blob = { 0 }; in cross_domain_init() local
284 drm_rc_blob.size = PAGE_SIZE; in cross_domain_init()
285 drm_rc_blob.blob_mem = VIRTGPU_BLOB_MEM_GUEST; in cross_domain_init()
286 drm_rc_blob.blob_flags = VIRTGPU_BLOB_FLAG_USE_MAPPABLE; in cross_domain_init()
288 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in cross_domain_init()
294 priv->ring_handle = drm_rc_blob.bo_handle; in cross_domain_init()
315 cmd_init.ring_id = drm_rc_blob.res_handle; in cross_domain_init()
339 struct drm_virtgpu_resource_create_blob drm_rc_blob = { 0 }; in cross_domain_bo_create() local
358 drm_rc_blob.blob_mem = VIRTGPU_BLOB_MEM_GUEST; in cross_domain_bo_create()
361 drm_rc_blob.blob_mem = VIRTGPU_BLOB_MEM_HOST3D; in cross_domain_bo_create()
[all …]
Dvirtgpu_virgl.c660 struct drm_virtgpu_resource_create_blob drm_rc_blob = { 0 }; in virgl_bo_create_blob() local
685 drm_rc_blob.cmd = (uint64_t)&cmd; in virgl_bo_create_blob()
686 drm_rc_blob.cmd_size = 4 * (VIRGL_PIPE_RES_CREATE_SIZE + 1); in virgl_bo_create_blob()
687 drm_rc_blob.size = bo->meta.total_size; in virgl_bo_create_blob()
688 drm_rc_blob.blob_mem = VIRTGPU_BLOB_MEM_HOST3D; in virgl_bo_create_blob()
689 drm_rc_blob.blob_flags = blob_flags; in virgl_bo_create_blob()
690 drm_rc_blob.blob_id = cur_blob_id; in virgl_bo_create_blob()
692 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in virgl_bo_create_blob()
699 bo->handles[plane].u32 = drm_rc_blob.bo_handle; in virgl_bo_create_blob()
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c166 struct drm_virtgpu_resource_create_blob drm_rc_blob = { 0 }; in virgl_drm_winsys_resource_create_blob() local
194 drm_rc_blob.cmd = (unsigned long)(void *)&cmd; in virgl_drm_winsys_resource_create_blob()
195 drm_rc_blob.cmd_size = 4 * (VIRGL_PIPE_RES_CREATE_SIZE + 1); in virgl_drm_winsys_resource_create_blob()
196 drm_rc_blob.size = size; in virgl_drm_winsys_resource_create_blob()
197 drm_rc_blob.blob_mem = VIRTGPU_BLOB_MEM_HOST3D; in virgl_drm_winsys_resource_create_blob()
198 drm_rc_blob.blob_flags = VIRTGPU_BLOB_FLAG_USE_MAPPABLE; in virgl_drm_winsys_resource_create_blob()
199 drm_rc_blob.blob_id = (uint64_t) blob_id; in virgl_drm_winsys_resource_create_blob()
201 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in virgl_drm_winsys_resource_create_blob()
208 res->res_handle = drm_rc_blob.res_handle; in virgl_drm_winsys_resource_create_blob()
209 res->bo_handle = drm_rc_blob.bo_handle; in virgl_drm_winsys_resource_create_blob()