Lines Matching refs:dpy

53 #define VA_DRICheckExtension(dpy,i,val) \  argument
54 XextCheckExtension (dpy, i, va_dri_extension_name, val)
62 static int close_display(Display *dpy, XExtCodes *extCodes);
99 PUBLIC Bool VA_DRIQueryExtension (dpy, event_basep, error_basep)
100 Display *dpy;
103 XExtDisplayInfo *info = find_display (dpy);
117 PUBLIC Bool VA_DRIQueryVersion(dpy, majorVersion, minorVersion, patchVersion) in VA_DRIQueryVersion() argument
118 Display* dpy; in VA_DRIQueryVersion()
123 XExtDisplayInfo *info = find_display (dpy);
128 VA_DRICheckExtension (dpy, info, False);
130 LockDisplay(dpy);
134 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
135 UnlockDisplay(dpy);
143 UnlockDisplay(dpy);
149 PUBLIC Bool VA_DRIQueryDirectRenderingCapable(dpy, screen, isCapable) in VA_DRIQueryDirectRenderingCapable() argument
150 Display* dpy; in VA_DRIQueryDirectRenderingCapable()
154 XExtDisplayInfo *info = find_display (dpy);
159 VA_DRICheckExtension (dpy, info, False);
161 LockDisplay(dpy);
166 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
167 UnlockDisplay(dpy);
173 UnlockDisplay(dpy);
179 PUBLIC Bool VA_DRIOpenConnection(dpy, screen, hSAREA, busIdString) in VA_DRIOpenConnection() argument
180 Display* dpy; in VA_DRIOpenConnection()
185 XExtDisplayInfo *info = find_display (dpy);
190 VA_DRICheckExtension (dpy, info, False);
192 LockDisplay(dpy);
197 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
198 UnlockDisplay(dpy);
212 _XEatData(dpy, ((rep.busIdStringLength+3) & ~3));
213 UnlockDisplay(dpy);
218 _XReadPad(dpy, *busIdString, rep.busIdStringLength);
222 UnlockDisplay(dpy);
228 PUBLIC Bool VA_DRIAuthConnection(dpy, screen, magic) in VA_DRIAuthConnection() argument
229 Display* dpy; in VA_DRIAuthConnection()
233 XExtDisplayInfo *info = find_display (dpy);
238 VA_DRICheckExtension (dpy, info, False);
240 LockDisplay(dpy);
247 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse) || !rep.authenticated) {
248 UnlockDisplay(dpy);
253 UnlockDisplay(dpy);
259 PUBLIC Bool VA_DRICloseConnection(dpy, screen) in VA_DRICloseConnection() argument
260 Display* dpy; in VA_DRICloseConnection()
263 XExtDisplayInfo *info = find_display (dpy);
268 VA_DRICheckExtension (dpy, info, False);
270 LockDisplay(dpy);
275 UnlockDisplay(dpy);
281 PUBLIC Bool VA_DRIGetClientDriverName(dpy, screen, ddxDriverMajorVersion, in VA_DRIGetClientDriverName() argument
283 Display* dpy; in VA_DRIGetClientDriverName()
290 XExtDisplayInfo *info = find_display (dpy);
295 VA_DRICheckExtension (dpy, info, False);
297 LockDisplay(dpy);
302 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
303 UnlockDisplay(dpy);
315 _XEatData(dpy, ((rep.clientDriverNameLength+3) & ~3));
316 UnlockDisplay(dpy);
321 _XReadPad(dpy, *clientDriverName, rep.clientDriverNameLength);
325 UnlockDisplay(dpy);
331 PUBLIC Bool VA_DRICreateContextWithConfig(dpy, screen, configID, context, in VA_DRICreateContextWithConfig() argument
333 Display* dpy; in VA_DRICreateContextWithConfig()
339 XExtDisplayInfo *info = find_display (dpy);
344 VA_DRICheckExtension (dpy, info, False);
346 LockDisplay(dpy);
352 *context = XAllocID(dpy);
354 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
355 UnlockDisplay(dpy);
361 UnlockDisplay(dpy);
367 PUBLIC Bool VA_DRICreateContext(dpy, screen, visual, context, hHWContext) in VA_DRICreateContext() argument
368 Display* dpy; in VA_DRICreateContext()
374 return VA_DRICreateContextWithConfig( dpy, screen, visual->visualid,
381 Display * const dpy = (Display *) ndpy; in VA_DRIDestroyContext() local
382 XExtDisplayInfo *info = find_display (dpy); in VA_DRIDestroyContext()
386 VA_DRICheckExtension (dpy, info, False); in VA_DRIDestroyContext()
388 LockDisplay(dpy); in VA_DRIDestroyContext()
394 UnlockDisplay(dpy); in VA_DRIDestroyContext()
403 Display * const dpy = (Display *) ndpy; in VA_DRICreateDrawable() local
404 XExtDisplayInfo *info = find_display (dpy); in VA_DRICreateDrawable()
409 VA_DRICheckExtension (dpy, info, False); in VA_DRICreateDrawable()
411 LockDisplay(dpy); in VA_DRICreateDrawable()
417 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { in VA_DRICreateDrawable()
418 UnlockDisplay(dpy); in VA_DRICreateDrawable()
424 UnlockDisplay(dpy); in VA_DRICreateDrawable()
433 Display * const dpy = (Display *) ndpy; in VA_DRIDestroyDrawable() local
434 XExtDisplayInfo *info = find_display (dpy); in VA_DRIDestroyDrawable()
438 VA_DRICheckExtension (dpy, info, False); in VA_DRIDestroyDrawable()
440 LockDisplay(dpy); in VA_DRIDestroyDrawable()
446 UnlockDisplay(dpy); in VA_DRIDestroyDrawable()
452 PUBLIC Bool VA_DRIGetDrawableInfo(Display* dpy, int screen, Drawable drawable, in VA_DRIGetDrawableInfo() argument
459 XExtDisplayInfo *info = find_display (dpy); in VA_DRIGetDrawableInfo()
465 VA_DRICheckExtension (dpy, info, False); in VA_DRIGetDrawableInfo()
467 LockDisplay(dpy); in VA_DRIGetDrawableInfo()
474 if (!_XReply(dpy, (xReply *)&rep, 1, xFalse)) in VA_DRIGetDrawableInfo()
476 UnlockDisplay(dpy); in VA_DRIGetDrawableInfo()
503 _XEatData(dpy, rep.length); in VA_DRIGetDrawableInfo()
504 UnlockDisplay(dpy); in VA_DRIGetDrawableInfo()
516 _XRead(dpy, (char*)*pClipRects, len); in VA_DRIGetDrawableInfo()
526 _XRead(dpy, (char*)*pBackClipRects, len); in VA_DRIGetDrawableInfo()
531 UnlockDisplay(dpy); in VA_DRIGetDrawableInfo()
537 PUBLIC Bool VA_DRIGetDeviceInfo(dpy, screen, hFrameBuffer, in VA_DRIGetDeviceInfo() argument
539 Display* dpy; in VA_DRIGetDeviceInfo()
548 XExtDisplayInfo *info = find_display (dpy);
553 VA_DRICheckExtension (dpy, info, False);
555 LockDisplay(dpy);
560 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
561 UnlockDisplay(dpy);
580 _XEatData(dpy, ((rep.devPrivateSize+3) & ~3));
581 UnlockDisplay(dpy);
586 _XRead(dpy, (char*)*pDevPrivate, rep.devPrivateSize);
591 UnlockDisplay(dpy);
597 PUBLIC Bool VA_DRIOpenFullScreen(dpy, screen, drawable) in VA_DRIOpenFullScreen() argument
598 Display* dpy; in VA_DRIOpenFullScreen()
604 (void) dpy;
610 PUBLIC Bool VA_DRICloseFullScreen(dpy, screen, drawable) in VA_DRICloseFullScreen() argument
611 Display* dpy; in VA_DRICloseFullScreen()
617 (void) dpy;