Lines Matching refs:base
71 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_get_buffers()
84 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_flush_front_buffer()
97 struct gbm_dri_device *dri = gbm_dri_device(surf->base.gbm); in dri_get_buffers_with_format()
194 "%.*s/tls/%s_dri.so", len, p, dri->base.driver_name); in dri_load_driver()
199 "%.*s/%s_dri.so", len, p, dri->base.driver_name); in dri_load_driver()
235 dri->base.driver_name = dri_fd_get_driver_name(dri->base.base.fd); in dri_screen_create()
236 if (dri->base.driver_name == NULL) in dri_screen_create()
241 fprintf(stderr, "failed to load driver: %s\n", dri->base.driver_name); in dri_screen_create()
245 dri->extensions[0] = &image_lookup_extension.base; in dri_screen_create()
246 dri->extensions[1] = &use_invalidate.base; in dri_screen_create()
247 dri->extensions[2] = &dri2_loader_extension.base; in dri_screen_create()
253 dri->screen = dri->dri2->createNewScreen(0, dri->base.base.fd, in dri_screen_create()
327 drmIoctl(dri->base.base.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in gbm_dri_bo_destroy()
370 if (dri->image->base.version < 4) in gbm_dri_bo_import()
430 if (dri->image->base.version >= 2 && in gbm_dri_bo_import()
436 bo->base.base.gbm = gbm; in gbm_dri_bo_import()
437 bo->base.base.format = gbm_format; in gbm_dri_bo_import()
440 (int*)&bo->base.base.width); in gbm_dri_bo_import()
442 (int*)&bo->base.base.height); in gbm_dri_bo_import()
444 (int*)&bo->base.base.stride); in gbm_dri_bo_import()
446 &bo->base.base.handle.s32); in gbm_dri_bo_import()
448 return &bo->base.base; in gbm_dri_bo_import()
476 ret = drmIoctl(dri->base.base.fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_arg); in create_dumb()
480 bo->base.base.gbm = gbm; in create_dumb()
481 bo->base.base.width = width; in create_dumb()
482 bo->base.base.height = height; in create_dumb()
483 bo->base.base.stride = create_arg.pitch; in create_dumb()
484 bo->base.base.handle.u32 = create_arg.handle; in create_dumb()
491 ret = drmIoctl(dri->base.base.fd, DRM_IOCTL_MODE_MAP_DUMB, &map_arg); in create_dumb()
496 MAP_SHARED, dri->base.base.fd, map_arg.offset); in create_dumb()
500 return &bo->base.base; in create_dumb()
505 drmIoctl(dri->base.base.fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_arg); in create_dumb()
529 bo->base.base.gbm = gbm; in gbm_dri_bo_create()
530 bo->base.base.width = width; in gbm_dri_bo_create()
531 bo->base.base.height = height; in gbm_dri_bo_create()
569 &bo->base.base.handle.s32); in gbm_dri_bo_create()
571 (int *) &bo->base.base.stride); in gbm_dri_bo_create()
573 return &bo->base.base; in gbm_dri_bo_create()
587 surf->base.gbm = gbm; in gbm_dri_surface_create()
588 surf->base.width = width; in gbm_dri_surface_create()
589 surf->base.height = height; in gbm_dri_surface_create()
590 surf->base.format = format; in gbm_dri_surface_create()
591 surf->base.flags = flags; in gbm_dri_surface_create()
593 return &surf->base; in gbm_dri_surface_create()
612 free(dri->base.driver_name); in dri_destroy()
625 dri->base.base.fd = fd; in dri_device_create()
626 dri->base.base.bo_create = gbm_dri_bo_create; in dri_device_create()
627 dri->base.base.bo_import = gbm_dri_bo_import; in dri_device_create()
628 dri->base.base.is_format_supported = gbm_dri_is_format_supported; in dri_device_create()
629 dri->base.base.bo_write = gbm_dri_bo_write; in dri_device_create()
630 dri->base.base.bo_destroy = gbm_dri_bo_destroy; in dri_device_create()
631 dri->base.base.destroy = dri_destroy; in dri_device_create()
632 dri->base.base.surface_create = gbm_dri_surface_create; in dri_device_create()
633 dri->base.base.surface_destroy = gbm_dri_surface_destroy; in dri_device_create()
635 dri->base.type = GBM_DRM_DRIVER_TYPE_DRI; in dri_device_create()
636 dri->base.base.name = "drm"; in dri_device_create()
642 return &dri->base.base; in dri_device_create()