Searched refs:dri_state (Results 1 – 7 of 7) sorted by relevance
/hardware/intel/common/libva/va/x11/ |
D | dri1_util.c | 62 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in dri1Close() local 65 VA_DRIDestroyContext(ctx->native_dpy, ctx->x11_screen, dri_state->hwContextID); in dri1Close() 66 assert(dri_state->pSAREA != MAP_FAILED); in dri1Close() 67 drmUnmap(dri_state->pSAREA, SAREA_MAX); in dri1Close() 68 assert(dri_state->base.fd >= 0); in dri1Close() 69 drmCloseOnce(dri_state->base.fd); in dri1Close() 76 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in isDRI1Connected() local 86 dri_state->base.fd = -1; in isDRI1Connected() 87 dri_state->pSAREA = MAP_FAILED; in isDRI1Connected() 88 dri_state->base.auth_type = VA_NONE; in isDRI1Connected() [all …]
|
D | va_dricommon.c | 64 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in do_drawable_hash() local 66 struct dri_drawable *dri_drawable = dri_state->drawable_hash[index]; in do_drawable_hash() 74 dri_drawable = dri_state->createDrawable(ctx, drawable); in do_drawable_hash() 77 dri_drawable->next = dri_state->drawable_hash[index]; in do_drawable_hash() 78 dri_state->drawable_hash[index] = dri_drawable; in do_drawable_hash() 86 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in free_drawable() local 90 if (dri_drawable == dri_state->drawable_hash[i]) { in free_drawable() 91 dri_state->destroyDrawable(ctx, dri_drawable); in free_drawable() 92 dri_state->drawable_hash[i] = NULL; in free_drawable() 100 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in free_drawable_hashtable() local [all …]
|
D | dri2_util.c | 167 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in dri2Close() local 171 if (dri_state->base.fd >= 0); in dri2Close() 172 close(dri_state->base.fd); in dri2Close() 178 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in isDRI2Connected() local 185 dri_state->base.fd = -1; in isDRI2Connected() 186 dri_state->base.auth_type = VA_NONE; in isDRI2Connected() 198 dri_state->base.fd = open(device_name, O_RDWR); in isDRI2Connected() 199 assert(dri_state->base.fd >= 0); in isDRI2Connected() 201 if (dri_state->base.fd < 0) in isDRI2Connected() 204 if (drmGetMagic(dri_state->base.fd, &magic)) in isDRI2Connected() [all …]
|
D | va_x11.c | 60 struct dri_state *dri_state; in va_DisplayContextDestroy() local 66 dri_state = ctx->drm_state; in va_DisplayContextDestroy() 68 if (dri_state && dri_state->close) in va_DisplayContextDestroy() 69 dri_state->close(ctx); in va_DisplayContextDestroy() 181 struct dri_state *dri_state; in vaGetDisplay() local 184 dri_state = calloc(1, sizeof(*dri_state)); in vaGetDisplay() 185 if (pDisplayContext && pDriverContext && dri_state) in vaGetDisplay() 196 pDriverContext->drm_state = dri_state; in vaGetDisplay() 205 if (dri_state) in vaGetDisplay() 206 free(dri_state); in vaGetDisplay()
|
D | va_dricommon.h | 76 struct dri_state struct
|
/hardware/intel/img/psb_video/src/x11/ |
D | psb_x11.c | 365 struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; in psb_x11_output_deinit() 379 (*dri_state->close)(ctx); in psb_x11_output_deinit()
|
/hardware/intel/img/psb_video/src/ |
D | psb_drv_video.c | 2980 assert(dri_state); 2982 dri_state->driConnectedFlag = VA_DUMMY; 2984 dri_state->fd = open("/dev/dri/card1", O_RDWR); 2985 if (dri_state->fd < 0) 2986 dri_state->fd = open("/dev/dri/card0", O_RDWR); 2987 assert(dri_state->fd >= 0); 2989 assert(dri_state->driConnectedFlag == VA_DRI2 || 2990 dri_state->driConnectedFlag == VA_DUMMY);
|