Home
last modified time | relevance | path

Searched refs:dri_state (Results 1 – 7 of 7) sorted by relevance

/hardware/intel/common/libva/va/x11/
Ddri1_util.c62 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 …]
Dva_dricommon.c64 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 …]
Ddri2_util.c167 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 …]
Dva_x11.c60 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()
Dva_dricommon.h76 struct dri_state struct
/hardware/intel/img/psb_video/src/x11/
Dpsb_x11.c365 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/
Dpsb_drv_video.c3047 assert(dri_state);
3049 dri_state->driConnectedFlag = VA_DUMMY;
3051 dri_state->fd = open("/dev/dri/card1", O_RDWR);
3052 if (dri_state->fd < 0)
3053 dri_state->fd = open("/dev/dri/card0", O_RDWR);
3054 assert(dri_state->fd >= 0);
3056 assert(dri_state->driConnectedFlag == VA_DRI2 ||
3057 dri_state->driConnectedFlag == VA_DUMMY);