1 | /*
|
---|
2 | * Copyright © 2000 Compaq Computer Corporation
|
---|
3 | * Copyright © 2002 Hewlett-Packard Company
|
---|
4 | * Copyright © 2006 Intel Corporation
|
---|
5 | * Copyright © 2008 Red Hat, Inc.
|
---|
6 | *
|
---|
7 | * Permission to use, copy, modify, distribute, and sell this software and its
|
---|
8 | * documentation for any purpose is hereby granted without fee, provided that
|
---|
9 | * the above copyright notice appear in all copies and that both that copyright
|
---|
10 | * notice and this permission notice appear in supporting documentation, and
|
---|
11 | * that the name of the copyright holders not be used in advertising or
|
---|
12 | * publicity pertaining to distribution of the software without specific,
|
---|
13 | * written prior permission. The copyright holders make no representations
|
---|
14 | * about the suitability of this software for any purpose. It is provided "as
|
---|
15 | * is" without express or implied warranty.
|
---|
16 | *
|
---|
17 | * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
18 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
19 | * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
---|
20 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
21 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
---|
22 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
---|
23 | * OF THIS SOFTWARE.
|
---|
24 | *
|
---|
25 | * Author: Jim Gettys, Hewlett-Packard Company, Inc.
|
---|
26 | * Keith Packard, Intel Corporation
|
---|
27 | */
|
---|
28 |
|
---|
29 | #ifdef HAVE_DIX_CONFIG_H
|
---|
30 | #include <dix-config.h>
|
---|
31 | #endif
|
---|
32 |
|
---|
33 | #ifndef _RANDRSTR_H_
|
---|
34 | #define _RANDRSTR_H_
|
---|
35 |
|
---|
36 | #include <X11/X.h>
|
---|
37 | #include <X11/Xproto.h>
|
---|
38 | #include "misc.h"
|
---|
39 | #include "os.h"
|
---|
40 | #include "dixstruct.h"
|
---|
41 | #include "resource.h"
|
---|
42 | #include "scrnintstr.h"
|
---|
43 | #include "windowstr.h"
|
---|
44 | #include "pixmapstr.h"
|
---|
45 | #include "extnsionst.h"
|
---|
46 | #include "servermd.h"
|
---|
47 | #include "rrtransform.h"
|
---|
48 | #include <X11/extensions/randr.h>
|
---|
49 | #include <X11/extensions/randrproto.h>
|
---|
50 | #include <X11/extensions/render.h> /* we share subpixel order information */
|
---|
51 | #include "picturestr.h"
|
---|
52 | #include <X11/Xfuncproto.h>
|
---|
53 |
|
---|
54 | /* required for ABI compatibility for now */
|
---|
55 | #define RANDR_10_INTERFACE 1
|
---|
56 | #define RANDR_12_INTERFACE 1
|
---|
57 | #define RANDR_13_INTERFACE 1 /* requires RANDR_12_INTERFACE */
|
---|
58 | #define RANDR_GET_CRTC_INTERFACE 1
|
---|
59 |
|
---|
60 | #define RANDR_INTERFACE_VERSION 0x0103
|
---|
61 |
|
---|
62 | typedef XID RRMode;
|
---|
63 | typedef XID RROutput;
|
---|
64 | typedef XID RRCrtc;
|
---|
65 | typedef XID RRProvider;
|
---|
66 |
|
---|
67 | extern _X_EXPORT int RREventBase, RRErrorBase;
|
---|
68 |
|
---|
69 | extern _X_EXPORT int (*ProcRandrVector[RRNumberRequests]) (ClientPtr);
|
---|
70 | extern _X_EXPORT int (*SProcRandrVector[RRNumberRequests]) (ClientPtr);
|
---|
71 |
|
---|
72 | /*
|
---|
73 | * Modeline for a monitor. Name follows directly after this struct
|
---|
74 | */
|
---|
75 |
|
---|
76 | #define RRModeName(pMode) ((char *) (pMode + 1))
|
---|
77 | typedef struct _rrMode RRModeRec, *RRModePtr;
|
---|
78 | typedef struct _rrPropertyValue RRPropertyValueRec, *RRPropertyValuePtr;
|
---|
79 | typedef struct _rrProperty RRPropertyRec, *RRPropertyPtr;
|
---|
80 | typedef struct _rrCrtc RRCrtcRec, *RRCrtcPtr;
|
---|
81 | typedef struct _rrOutput RROutputRec, *RROutputPtr;
|
---|
82 | typedef struct _rrProvider RRProviderRec, *RRProviderPtr;
|
---|
83 |
|
---|
84 | struct _rrMode {
|
---|
85 | int refcnt;
|
---|
86 | xRRModeInfo mode;
|
---|
87 | char *name;
|
---|
88 | ScreenPtr userScreen;
|
---|
89 | };
|
---|
90 |
|
---|
91 | struct _rrPropertyValue {
|
---|
92 | Atom type; /* ignored by server */
|
---|
93 | short format; /* format of data for swapping - 8,16,32 */
|
---|
94 | long size; /* size of data in (format/8) bytes */
|
---|
95 | pointer data; /* private to client */
|
---|
96 | };
|
---|
97 |
|
---|
98 | struct _rrProperty {
|
---|
99 | RRPropertyPtr next;
|
---|
100 | ATOM propertyName;
|
---|
101 | Bool is_pending;
|
---|
102 | Bool range;
|
---|
103 | Bool immutable;
|
---|
104 | int num_valid;
|
---|
105 | INT32 *valid_values;
|
---|
106 | RRPropertyValueRec current, pending;
|
---|
107 | };
|
---|
108 |
|
---|
109 | struct _rrCrtc {
|
---|
110 | RRCrtc id;
|
---|
111 | ScreenPtr pScreen;
|
---|
112 | RRModePtr mode;
|
---|
113 | int x, y;
|
---|
114 | Rotation rotation;
|
---|
115 | Rotation rotations;
|
---|
116 | Bool changed;
|
---|
117 | int numOutputs;
|
---|
118 | RROutputPtr *outputs;
|
---|
119 | int gammaSize;
|
---|
120 | CARD16 *gammaRed;
|
---|
121 | CARD16 *gammaBlue;
|
---|
122 | CARD16 *gammaGreen;
|
---|
123 | void *devPrivate;
|
---|
124 | Bool transforms;
|
---|
125 | RRTransformRec client_pending_transform;
|
---|
126 | RRTransformRec client_current_transform;
|
---|
127 | PictTransform transform;
|
---|
128 | struct pict_f_transform f_transform;
|
---|
129 | struct pict_f_transform f_inverse;
|
---|
130 |
|
---|
131 | PixmapPtr scanout_pixmap;
|
---|
132 | };
|
---|
133 |
|
---|
134 | struct _rrOutput {
|
---|
135 | RROutput id;
|
---|
136 | ScreenPtr pScreen;
|
---|
137 | char *name;
|
---|
138 | int nameLength;
|
---|
139 | CARD8 connection;
|
---|
140 | CARD8 subpixelOrder;
|
---|
141 | int mmWidth;
|
---|
142 | int mmHeight;
|
---|
143 | RRCrtcPtr crtc;
|
---|
144 | int numCrtcs;
|
---|
145 | RRCrtcPtr *crtcs;
|
---|
146 | int numClones;
|
---|
147 | RROutputPtr *clones;
|
---|
148 | int numModes;
|
---|
149 | int numPreferred;
|
---|
150 | RRModePtr *modes;
|
---|
151 | int numUserModes;
|
---|
152 | RRModePtr *userModes;
|
---|
153 | Bool changed;
|
---|
154 | RRPropertyPtr properties;
|
---|
155 | Bool pendingProperties;
|
---|
156 | void *devPrivate;
|
---|
157 | };
|
---|
158 |
|
---|
159 | struct _rrProvider {
|
---|
160 | RRProvider id;
|
---|
161 | ScreenPtr pScreen;
|
---|
162 | uint32_t capabilities;
|
---|
163 | char *name;
|
---|
164 | int nameLength;
|
---|
165 | RRPropertyPtr properties;
|
---|
166 | Bool pendingProperties;
|
---|
167 | struct _rrProvider *offload_sink;
|
---|
168 | struct _rrProvider *output_source;
|
---|
169 | };
|
---|
170 |
|
---|
171 | #if RANDR_12_INTERFACE
|
---|
172 | typedef Bool (*RRScreenSetSizeProcPtr) (ScreenPtr pScreen,
|
---|
173 | CARD16 width,
|
---|
174 | CARD16 height,
|
---|
175 | CARD32 mmWidth, CARD32 mmHeight);
|
---|
176 |
|
---|
177 | typedef Bool (*RRCrtcSetProcPtr) (ScreenPtr pScreen,
|
---|
178 | RRCrtcPtr crtc,
|
---|
179 | RRModePtr mode,
|
---|
180 | int x,
|
---|
181 | int y,
|
---|
182 | Rotation rotation,
|
---|
183 | int numOutputs, RROutputPtr * outputs);
|
---|
184 |
|
---|
185 | typedef Bool (*RRCrtcSetGammaProcPtr) (ScreenPtr pScreen, RRCrtcPtr crtc);
|
---|
186 |
|
---|
187 | typedef Bool (*RRCrtcGetGammaProcPtr) (ScreenPtr pScreen, RRCrtcPtr crtc);
|
---|
188 |
|
---|
189 | typedef Bool (*RROutputSetPropertyProcPtr) (ScreenPtr pScreen,
|
---|
190 | RROutputPtr output,
|
---|
191 | Atom property,
|
---|
192 | RRPropertyValuePtr value);
|
---|
193 |
|
---|
194 | typedef Bool (*RROutputValidateModeProcPtr) (ScreenPtr pScreen,
|
---|
195 | RROutputPtr output,
|
---|
196 | RRModePtr mode);
|
---|
197 |
|
---|
198 | typedef void (*RRModeDestroyProcPtr) (ScreenPtr pScreen, RRModePtr mode);
|
---|
199 |
|
---|
200 | #endif
|
---|
201 |
|
---|
202 | #if RANDR_13_INTERFACE
|
---|
203 | typedef Bool (*RROutputGetPropertyProcPtr) (ScreenPtr pScreen,
|
---|
204 | RROutputPtr output, Atom property);
|
---|
205 | typedef Bool (*RRGetPanningProcPtr) (ScreenPtr pScrn,
|
---|
206 | RRCrtcPtr crtc,
|
---|
207 | BoxPtr totalArea,
|
---|
208 | BoxPtr trackingArea, INT16 *border);
|
---|
209 | typedef Bool (*RRSetPanningProcPtr) (ScreenPtr pScrn,
|
---|
210 | RRCrtcPtr crtc,
|
---|
211 | BoxPtr totalArea,
|
---|
212 | BoxPtr trackingArea, INT16 *border);
|
---|
213 |
|
---|
214 | #endif /* RANDR_13_INTERFACE */
|
---|
215 |
|
---|
216 | typedef Bool (*RRProviderGetPropertyProcPtr) (ScreenPtr pScreen,
|
---|
217 | RRProviderPtr provider, Atom property);
|
---|
218 | typedef Bool (*RRProviderSetPropertyProcPtr) (ScreenPtr pScreen,
|
---|
219 | RRProviderPtr provider,
|
---|
220 | Atom property,
|
---|
221 | RRPropertyValuePtr value);
|
---|
222 |
|
---|
223 | typedef Bool (*RRGetInfoProcPtr) (ScreenPtr pScreen, Rotation * rotations);
|
---|
224 | typedef Bool (*RRCloseScreenProcPtr) (ScreenPtr pscreen);
|
---|
225 |
|
---|
226 | typedef Bool (*RRProviderSetOutputSourceProcPtr)(ScreenPtr pScreen,
|
---|
227 | RRProviderPtr provider,
|
---|
228 | RRProviderPtr output_source);
|
---|
229 |
|
---|
230 | typedef Bool (*RRProviderSetOffloadSinkProcPtr)(ScreenPtr pScreen,
|
---|
231 | RRProviderPtr provider,
|
---|
232 | RRProviderPtr offload_sink);
|
---|
233 |
|
---|
234 |
|
---|
235 | /* These are for 1.0 compatibility */
|
---|
236 |
|
---|
237 | typedef struct _rrRefresh {
|
---|
238 | CARD16 rate;
|
---|
239 | RRModePtr mode;
|
---|
240 | } RRScreenRate, *RRScreenRatePtr;
|
---|
241 |
|
---|
242 | typedef struct _rrScreenSize {
|
---|
243 | int id;
|
---|
244 | short width, height;
|
---|
245 | short mmWidth, mmHeight;
|
---|
246 | int nRates;
|
---|
247 | RRScreenRatePtr pRates;
|
---|
248 | } RRScreenSize, *RRScreenSizePtr;
|
---|
249 |
|
---|
250 | #ifdef RANDR_10_INTERFACE
|
---|
251 |
|
---|
252 | typedef Bool (*RRSetConfigProcPtr) (ScreenPtr pScreen,
|
---|
253 | Rotation rotation,
|
---|
254 | int rate, RRScreenSizePtr pSize);
|
---|
255 |
|
---|
256 | #endif
|
---|
257 |
|
---|
258 | typedef Bool (*RRCrtcSetScanoutPixmapProcPtr)(RRCrtcPtr crtc, PixmapPtr pixmap);
|
---|
259 |
|
---|
260 | typedef struct _rrScrPriv {
|
---|
261 | /*
|
---|
262 | * 'public' part of the structure; DDXen fill this in
|
---|
263 | * as they initialize
|
---|
264 | */
|
---|
265 | #if RANDR_10_INTERFACE
|
---|
266 | RRSetConfigProcPtr rrSetConfig;
|
---|
267 | #endif
|
---|
268 | RRGetInfoProcPtr rrGetInfo;
|
---|
269 | #if RANDR_12_INTERFACE
|
---|
270 | RRScreenSetSizeProcPtr rrScreenSetSize;
|
---|
271 | RRCrtcSetProcPtr rrCrtcSet;
|
---|
272 | RRCrtcSetGammaProcPtr rrCrtcSetGamma;
|
---|
273 | RRCrtcGetGammaProcPtr rrCrtcGetGamma;
|
---|
274 | RROutputSetPropertyProcPtr rrOutputSetProperty;
|
---|
275 | RROutputValidateModeProcPtr rrOutputValidateMode;
|
---|
276 | RRModeDestroyProcPtr rrModeDestroy;
|
---|
277 | #endif
|
---|
278 | #if RANDR_13_INTERFACE
|
---|
279 | RROutputGetPropertyProcPtr rrOutputGetProperty;
|
---|
280 | RRGetPanningProcPtr rrGetPanning;
|
---|
281 | RRSetPanningProcPtr rrSetPanning;
|
---|
282 | #endif
|
---|
283 | /* TODO #if RANDR_15_INTERFACE */
|
---|
284 | RRCrtcSetScanoutPixmapProcPtr rrCrtcSetScanoutPixmap;
|
---|
285 |
|
---|
286 | RRProviderSetOutputSourceProcPtr rrProviderSetOutputSource;
|
---|
287 | RRProviderSetOffloadSinkProcPtr rrProviderSetOffloadSink;
|
---|
288 | RRProviderGetPropertyProcPtr rrProviderGetProperty;
|
---|
289 | RRProviderSetPropertyProcPtr rrProviderSetProperty;
|
---|
290 | /*
|
---|
291 | * Private part of the structure; not considered part of the ABI
|
---|
292 | */
|
---|
293 | TimeStamp lastSetTime; /* last changed by client */
|
---|
294 | TimeStamp lastConfigTime; /* possible configs changed */
|
---|
295 | RRCloseScreenProcPtr CloseScreen;
|
---|
296 |
|
---|
297 | Bool changed; /* some config changed */
|
---|
298 | Bool configChanged; /* configuration changed */
|
---|
299 | Bool layoutChanged; /* screen layout changed */
|
---|
300 |
|
---|
301 | CARD16 minWidth, minHeight;
|
---|
302 | CARD16 maxWidth, maxHeight;
|
---|
303 | CARD16 width, height; /* last known screen size */
|
---|
304 | CARD16 mmWidth, mmHeight; /* last known screen size */
|
---|
305 |
|
---|
306 | int numOutputs;
|
---|
307 | RROutputPtr *outputs;
|
---|
308 | RROutputPtr primaryOutput;
|
---|
309 |
|
---|
310 | int numCrtcs;
|
---|
311 | RRCrtcPtr *crtcs;
|
---|
312 |
|
---|
313 | /* Last known pointer position */
|
---|
314 | RRCrtcPtr pointerCrtc;
|
---|
315 |
|
---|
316 | #ifdef RANDR_10_INTERFACE
|
---|
317 | /*
|
---|
318 | * Configuration information
|
---|
319 | */
|
---|
320 | Rotation rotations;
|
---|
321 | CARD16 reqWidth, reqHeight;
|
---|
322 |
|
---|
323 | int nSizes;
|
---|
324 | RRScreenSizePtr pSizes;
|
---|
325 |
|
---|
326 | Rotation rotation;
|
---|
327 | int rate;
|
---|
328 | int size;
|
---|
329 | #endif
|
---|
330 | Bool discontiguous;
|
---|
331 |
|
---|
332 | RRProviderPtr provider;
|
---|
333 | } rrScrPrivRec, *rrScrPrivPtr;
|
---|
334 |
|
---|
335 | extern _X_EXPORT DevPrivateKeyRec rrPrivKeyRec;
|
---|
336 |
|
---|
337 | #define rrPrivKey (&rrPrivKeyRec)
|
---|
338 |
|
---|
339 | #define rrGetScrPriv(pScr) ((rrScrPrivPtr)dixLookupPrivate(&(pScr)->devPrivates, rrPrivKey))
|
---|
340 | #define rrScrPriv(pScr) rrScrPrivPtr pScrPriv = rrGetScrPriv(pScr)
|
---|
341 | #define SetRRScreen(s,p) dixSetPrivate(&(s)->devPrivates, rrPrivKey, p)
|
---|
342 |
|
---|
343 | /*
|
---|
344 | * each window has a list of clients requesting
|
---|
345 | * RRNotify events. Each client has a resource
|
---|
346 | * for each window it selects RRNotify input for,
|
---|
347 | * this resource is used to delete the RRNotifyRec
|
---|
348 | * entry from the per-window queue.
|
---|
349 | */
|
---|
350 |
|
---|
351 | typedef struct _RREvent *RREventPtr;
|
---|
352 |
|
---|
353 | typedef struct _RREvent {
|
---|
354 | RREventPtr next;
|
---|
355 | ClientPtr client;
|
---|
356 | WindowPtr window;
|
---|
357 | XID clientResource;
|
---|
358 | int mask;
|
---|
359 | } RREventRec;
|
---|
360 |
|
---|
361 | typedef struct _RRTimes {
|
---|
362 | TimeStamp setTime;
|
---|
363 | TimeStamp configTime;
|
---|
364 | } RRTimesRec, *RRTimesPtr;
|
---|
365 |
|
---|
366 | typedef struct _RRClient {
|
---|
367 | int major_version;
|
---|
368 | int minor_version;
|
---|
369 | /* RRTimesRec times[0]; */
|
---|
370 | } RRClientRec, *RRClientPtr;
|
---|
371 |
|
---|
372 | extern _X_EXPORT RESTYPE RRClientType, RREventType; /* resource types for event masks */
|
---|
373 | extern _X_EXPORT DevPrivateKeyRec RRClientPrivateKeyRec;
|
---|
374 |
|
---|
375 | #define RRClientPrivateKey (&RRClientPrivateKeyRec)
|
---|
376 | extern _X_EXPORT RESTYPE RRCrtcType, RRModeType, RROutputType, RRProviderType;
|
---|
377 |
|
---|
378 | #define VERIFY_RR_OUTPUT(id, ptr, a)\
|
---|
379 | {\
|
---|
380 | int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
---|
381 | RROutputType, client, a);\
|
---|
382 | if (rc != Success) {\
|
---|
383 | client->errorValue = id;\
|
---|
384 | return rc;\
|
---|
385 | }\
|
---|
386 | }
|
---|
387 |
|
---|
388 | #define VERIFY_RR_CRTC(id, ptr, a)\
|
---|
389 | {\
|
---|
390 | int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
---|
391 | RRCrtcType, client, a);\
|
---|
392 | if (rc != Success) {\
|
---|
393 | client->errorValue = id;\
|
---|
394 | return rc;\
|
---|
395 | }\
|
---|
396 | }
|
---|
397 |
|
---|
398 | #define VERIFY_RR_MODE(id, ptr, a)\
|
---|
399 | {\
|
---|
400 | int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
---|
401 | RRModeType, client, a);\
|
---|
402 | if (rc != Success) {\
|
---|
403 | client->errorValue = id;\
|
---|
404 | return rc;\
|
---|
405 | }\
|
---|
406 | }
|
---|
407 |
|
---|
408 | #define VERIFY_RR_PROVIDER(id, ptr, a)\
|
---|
409 | {\
|
---|
410 | int rc = dixLookupResourceByType((pointer *)&(ptr), id,\
|
---|
411 | RRProviderType, client, a);\
|
---|
412 | if (rc != Success) {\
|
---|
413 | client->errorValue = id;\
|
---|
414 | return rc;\
|
---|
415 | }\
|
---|
416 | }
|
---|
417 |
|
---|
418 | #define GetRRClient(pClient) ((RRClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RRClientPrivateKey))
|
---|
419 | #define rrClientPriv(pClient) RRClientPtr pRRClient = GetRRClient(pClient)
|
---|
420 |
|
---|
421 | #ifdef RANDR_12_INTERFACE
|
---|
422 | /*
|
---|
423 | * Set the range of sizes for the screen
|
---|
424 | */
|
---|
425 | extern _X_EXPORT void
|
---|
426 |
|
---|
427 | RRScreenSetSizeRange(ScreenPtr pScreen,
|
---|
428 | CARD16 minWidth,
|
---|
429 | CARD16 minHeight, CARD16 maxWidth, CARD16 maxHeight);
|
---|
430 | #endif
|
---|
431 |
|
---|
432 | /* rrscreen.c */
|
---|
433 | /*
|
---|
434 | * Notify the extension that the screen size has been changed.
|
---|
435 | * The driver is responsible for calling this whenever it has changed
|
---|
436 | * the size of the screen
|
---|
437 | */
|
---|
438 | extern _X_EXPORT void
|
---|
439 | RRScreenSizeNotify(ScreenPtr pScreen);
|
---|
440 |
|
---|
441 | /*
|
---|
442 | * Request that the screen be resized
|
---|
443 | */
|
---|
444 | extern _X_EXPORT Bool
|
---|
445 |
|
---|
446 | RRScreenSizeSet(ScreenPtr pScreen,
|
---|
447 | CARD16 width, CARD16 height, CARD32 mmWidth, CARD32 mmHeight);
|
---|
448 |
|
---|
449 | /*
|
---|
450 | * Send ConfigureNotify event to root window when 'something' happens
|
---|
451 | */
|
---|
452 | extern _X_EXPORT void
|
---|
453 | RRSendConfigNotify(ScreenPtr pScreen);
|
---|
454 |
|
---|
455 | /*
|
---|
456 | * screen dispatch
|
---|
457 | */
|
---|
458 | extern _X_EXPORT int
|
---|
459 | ProcRRGetScreenSizeRange(ClientPtr client);
|
---|
460 |
|
---|
461 | extern _X_EXPORT int
|
---|
462 | ProcRRSetScreenSize(ClientPtr client);
|
---|
463 |
|
---|
464 | extern _X_EXPORT int
|
---|
465 | ProcRRGetScreenResources(ClientPtr client);
|
---|
466 |
|
---|
467 | extern _X_EXPORT int
|
---|
468 | ProcRRGetScreenResourcesCurrent(ClientPtr client);
|
---|
469 |
|
---|
470 | extern _X_EXPORT int
|
---|
471 | ProcRRSetScreenConfig(ClientPtr client);
|
---|
472 |
|
---|
473 | extern _X_EXPORT int
|
---|
474 | ProcRRGetScreenInfo(ClientPtr client);
|
---|
475 |
|
---|
476 | /*
|
---|
477 | * Deliver a ScreenNotify event
|
---|
478 | */
|
---|
479 | extern _X_EXPORT void
|
---|
480 | RRDeliverScreenEvent(ClientPtr client, WindowPtr pWin, ScreenPtr pScreen);
|
---|
481 |
|
---|
482 | /* randr.c */
|
---|
483 | /*
|
---|
484 | * Send all pending events
|
---|
485 | */
|
---|
486 | extern _X_EXPORT void
|
---|
487 | RRTellChanged(ScreenPtr pScreen);
|
---|
488 |
|
---|
489 | /*
|
---|
490 | * Poll the driver for changed information
|
---|
491 | */
|
---|
492 | extern _X_EXPORT Bool
|
---|
493 | RRGetInfo(ScreenPtr pScreen, Bool force_query);
|
---|
494 |
|
---|
495 | extern _X_EXPORT Bool RRInit(void);
|
---|
496 |
|
---|
497 | extern _X_EXPORT Bool RRScreenInit(ScreenPtr pScreen);
|
---|
498 |
|
---|
499 | extern _X_EXPORT RROutputPtr RRFirstOutput(ScreenPtr pScreen);
|
---|
500 |
|
---|
501 | extern _X_EXPORT CARD16
|
---|
502 | RRVerticalRefresh(xRRModeInfo * mode);
|
---|
503 |
|
---|
504 | #ifdef RANDR_10_INTERFACE
|
---|
505 | /*
|
---|
506 | * This is the old interface, deprecated but left
|
---|
507 | * around for compatibility
|
---|
508 | */
|
---|
509 |
|
---|
510 | /*
|
---|
511 | * Then, register the specific size with the screen
|
---|
512 | */
|
---|
513 |
|
---|
514 | extern _X_EXPORT RRScreenSizePtr
|
---|
515 | RRRegisterSize(ScreenPtr pScreen,
|
---|
516 | short width, short height, short mmWidth, short mmHeight);
|
---|
517 |
|
---|
518 | extern _X_EXPORT Bool
|
---|
519 | RRRegisterRate(ScreenPtr pScreen, RRScreenSizePtr pSize, int rate);
|
---|
520 |
|
---|
521 | /*
|
---|
522 | * Finally, set the current configuration of the screen
|
---|
523 | */
|
---|
524 |
|
---|
525 | extern _X_EXPORT void
|
---|
526 |
|
---|
527 | RRSetCurrentConfig(ScreenPtr pScreen,
|
---|
528 | Rotation rotation, int rate, RRScreenSizePtr pSize);
|
---|
529 |
|
---|
530 | extern _X_EXPORT Rotation RRGetRotation(ScreenPtr pScreen);
|
---|
531 |
|
---|
532 | #endif
|
---|
533 |
|
---|
534 | /* rrcrtc.c */
|
---|
535 |
|
---|
536 | /*
|
---|
537 | * Notify the CRTC of some change; layoutChanged indicates that
|
---|
538 | * some position or size element changed
|
---|
539 | */
|
---|
540 | extern _X_EXPORT void
|
---|
541 | RRCrtcChanged(RRCrtcPtr crtc, Bool layoutChanged);
|
---|
542 |
|
---|
543 | /*
|
---|
544 | * Create a CRTC
|
---|
545 | */
|
---|
546 | extern _X_EXPORT RRCrtcPtr RRCrtcCreate(ScreenPtr pScreen, void *devPrivate);
|
---|
547 |
|
---|
548 | /*
|
---|
549 | * Set the allowed rotations on a CRTC
|
---|
550 | */
|
---|
551 | extern _X_EXPORT void
|
---|
552 | RRCrtcSetRotations(RRCrtcPtr crtc, Rotation rotations);
|
---|
553 |
|
---|
554 | /*
|
---|
555 | * Set whether transforms are allowed on a CRTC
|
---|
556 | */
|
---|
557 | extern _X_EXPORT void
|
---|
558 | RRCrtcSetTransformSupport(RRCrtcPtr crtc, Bool transforms);
|
---|
559 |
|
---|
560 | /*
|
---|
561 | * Notify the extension that the Crtc has been reconfigured,
|
---|
562 | * the driver calls this whenever it has updated the mode
|
---|
563 | */
|
---|
564 | extern _X_EXPORT Bool
|
---|
565 |
|
---|
566 | RRCrtcNotify(RRCrtcPtr crtc,
|
---|
567 | RRModePtr mode,
|
---|
568 | int x,
|
---|
569 | int y,
|
---|
570 | Rotation rotation,
|
---|
571 | RRTransformPtr transform, int numOutputs, RROutputPtr * outputs);
|
---|
572 |
|
---|
573 | extern _X_EXPORT void
|
---|
574 | RRDeliverCrtcEvent(ClientPtr client, WindowPtr pWin, RRCrtcPtr crtc);
|
---|
575 |
|
---|
576 | /*
|
---|
577 | * Request that the Crtc be reconfigured
|
---|
578 | */
|
---|
579 | extern _X_EXPORT Bool
|
---|
580 |
|
---|
581 | RRCrtcSet(RRCrtcPtr crtc,
|
---|
582 | RRModePtr mode,
|
---|
583 | int x,
|
---|
584 | int y, Rotation rotation, int numOutput, RROutputPtr * outputs);
|
---|
585 |
|
---|
586 | /*
|
---|
587 | * Request that the Crtc gamma be changed
|
---|
588 | */
|
---|
589 |
|
---|
590 | extern _X_EXPORT Bool
|
---|
591 | RRCrtcGammaSet(RRCrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue);
|
---|
592 |
|
---|
593 | /*
|
---|
594 | * Request current gamma back from the DDX (if possible).
|
---|
595 | * This includes gamma size.
|
---|
596 | */
|
---|
597 |
|
---|
598 | extern _X_EXPORT Bool
|
---|
599 | RRCrtcGammaGet(RRCrtcPtr crtc);
|
---|
600 |
|
---|
601 | /*
|
---|
602 | * Notify the extension that the Crtc gamma has been changed
|
---|
603 | * The driver calls this whenever it has changed the gamma values
|
---|
604 | * in the RRCrtcRec
|
---|
605 | */
|
---|
606 |
|
---|
607 | extern _X_EXPORT Bool
|
---|
608 | RRCrtcGammaNotify(RRCrtcPtr crtc);
|
---|
609 |
|
---|
610 | /*
|
---|
611 | * Set the size of the gamma table at server startup time
|
---|
612 | */
|
---|
613 |
|
---|
614 | extern _X_EXPORT Bool
|
---|
615 | RRCrtcGammaSetSize(RRCrtcPtr crtc, int size);
|
---|
616 |
|
---|
617 | /*
|
---|
618 | * Return the area of the frame buffer scanned out by the crtc,
|
---|
619 | * taking into account the current mode and rotation
|
---|
620 | */
|
---|
621 |
|
---|
622 | extern _X_EXPORT void
|
---|
623 | RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height);
|
---|
624 |
|
---|
625 | /*
|
---|
626 | * Return crtc transform
|
---|
627 | */
|
---|
628 | extern _X_EXPORT RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc);
|
---|
629 |
|
---|
630 | /*
|
---|
631 | * Check whether the pending and current transforms are the same
|
---|
632 | */
|
---|
633 | extern _X_EXPORT Bool
|
---|
634 | RRCrtcPendingTransform(RRCrtcPtr crtc);
|
---|
635 |
|
---|
636 | /*
|
---|
637 | * Destroy a Crtc at shutdown
|
---|
638 | */
|
---|
639 | extern _X_EXPORT void
|
---|
640 | RRCrtcDestroy(RRCrtcPtr crtc);
|
---|
641 |
|
---|
642 | /*
|
---|
643 | * Set the pending CRTC transformation
|
---|
644 | */
|
---|
645 |
|
---|
646 | extern _X_EXPORT int
|
---|
647 |
|
---|
648 | RRCrtcTransformSet(RRCrtcPtr crtc,
|
---|
649 | PictTransformPtr transform,
|
---|
650 | struct pict_f_transform *f_transform,
|
---|
651 | struct pict_f_transform *f_inverse,
|
---|
652 | char *filter, int filter_len, xFixed * params, int nparams);
|
---|
653 |
|
---|
654 | /*
|
---|
655 | * Initialize crtc type
|
---|
656 | */
|
---|
657 | extern _X_EXPORT Bool
|
---|
658 | RRCrtcInit(void);
|
---|
659 |
|
---|
660 | /*
|
---|
661 | * Initialize crtc type error value
|
---|
662 | */
|
---|
663 | extern _X_EXPORT void
|
---|
664 | RRCrtcInitErrorValue(void);
|
---|
665 |
|
---|
666 | /*
|
---|
667 | * Detach and free a scanout pixmap
|
---|
668 | */
|
---|
669 | extern _X_EXPORT void
|
---|
670 | RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc);
|
---|
671 |
|
---|
672 | extern _X_EXPORT Bool
|
---|
673 | RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable);
|
---|
674 |
|
---|
675 | /*
|
---|
676 | * Crtc dispatch
|
---|
677 | */
|
---|
678 |
|
---|
679 | extern _X_EXPORT int
|
---|
680 | ProcRRGetCrtcInfo(ClientPtr client);
|
---|
681 |
|
---|
682 | extern _X_EXPORT int
|
---|
683 | ProcRRSetCrtcConfig(ClientPtr client);
|
---|
684 |
|
---|
685 | extern _X_EXPORT int
|
---|
686 | ProcRRGetCrtcGammaSize(ClientPtr client);
|
---|
687 |
|
---|
688 | extern _X_EXPORT int
|
---|
689 | ProcRRGetCrtcGamma(ClientPtr client);
|
---|
690 |
|
---|
691 | extern _X_EXPORT int
|
---|
692 | ProcRRSetCrtcGamma(ClientPtr client);
|
---|
693 |
|
---|
694 | extern _X_EXPORT int
|
---|
695 | ProcRRSetCrtcTransform(ClientPtr client);
|
---|
696 |
|
---|
697 | extern _X_EXPORT int
|
---|
698 | ProcRRGetCrtcTransform(ClientPtr client);
|
---|
699 |
|
---|
700 | int
|
---|
701 | ProcRRGetPanning(ClientPtr client);
|
---|
702 |
|
---|
703 | int
|
---|
704 | ProcRRSetPanning(ClientPtr client);
|
---|
705 |
|
---|
706 | void
|
---|
707 | RRConstrainCursorHarder(DeviceIntPtr, ScreenPtr, int, int *, int *);
|
---|
708 |
|
---|
709 | /* rrdispatch.c */
|
---|
710 | extern _X_EXPORT Bool
|
---|
711 | RRClientKnowsRates(ClientPtr pClient);
|
---|
712 |
|
---|
713 | /* rrmode.c */
|
---|
714 | /*
|
---|
715 | * Find, and if necessary, create a mode
|
---|
716 | */
|
---|
717 |
|
---|
718 | extern _X_EXPORT RRModePtr RRModeGet(xRRModeInfo * modeInfo, const char *name);
|
---|
719 |
|
---|
720 | /*
|
---|
721 | * Destroy a mode.
|
---|
722 | */
|
---|
723 |
|
---|
724 | extern _X_EXPORT void
|
---|
725 | RRModeDestroy(RRModePtr mode);
|
---|
726 |
|
---|
727 | /*
|
---|
728 | * Return a list of modes that are valid for some output in pScreen
|
---|
729 | */
|
---|
730 | extern _X_EXPORT RRModePtr *RRModesForScreen(ScreenPtr pScreen, int *num_ret);
|
---|
731 |
|
---|
732 | /*
|
---|
733 | * Initialize mode type
|
---|
734 | */
|
---|
735 | extern _X_EXPORT Bool
|
---|
736 | RRModeInit(void);
|
---|
737 |
|
---|
738 | /*
|
---|
739 | * Initialize mode type error value
|
---|
740 | */
|
---|
741 | extern _X_EXPORT void
|
---|
742 | RRModeInitErrorValue(void);
|
---|
743 |
|
---|
744 | extern _X_EXPORT int
|
---|
745 | ProcRRCreateMode(ClientPtr client);
|
---|
746 |
|
---|
747 | extern _X_EXPORT int
|
---|
748 | ProcRRDestroyMode(ClientPtr client);
|
---|
749 |
|
---|
750 | extern _X_EXPORT int
|
---|
751 | ProcRRAddOutputMode(ClientPtr client);
|
---|
752 |
|
---|
753 | extern _X_EXPORT int
|
---|
754 | ProcRRDeleteOutputMode(ClientPtr client);
|
---|
755 |
|
---|
756 | /* rroutput.c */
|
---|
757 |
|
---|
758 | /*
|
---|
759 | * Notify the output of some change. configChanged indicates whether
|
---|
760 | * any external configuration (mode list, clones, connected status)
|
---|
761 | * has changed, or whether the change was strictly internal
|
---|
762 | * (which crtc is in use)
|
---|
763 | */
|
---|
764 | extern _X_EXPORT void
|
---|
765 | RROutputChanged(RROutputPtr output, Bool configChanged);
|
---|
766 |
|
---|
767 | /*
|
---|
768 | * Create an output
|
---|
769 | */
|
---|
770 |
|
---|
771 | extern _X_EXPORT RROutputPtr
|
---|
772 | RROutputCreate(ScreenPtr pScreen,
|
---|
773 | const char *name, int nameLength, void *devPrivate);
|
---|
774 |
|
---|
775 | /*
|
---|
776 | * Notify extension that output parameters have been changed
|
---|
777 | */
|
---|
778 | extern _X_EXPORT Bool
|
---|
779 | RROutputSetClones(RROutputPtr output, RROutputPtr * clones, int numClones);
|
---|
780 |
|
---|
781 | extern _X_EXPORT Bool
|
---|
782 |
|
---|
783 | RROutputSetModes(RROutputPtr output,
|
---|
784 | RRModePtr * modes, int numModes, int numPreferred);
|
---|
785 |
|
---|
786 | extern _X_EXPORT int
|
---|
787 | RROutputAddUserMode(RROutputPtr output, RRModePtr mode);
|
---|
788 |
|
---|
789 | extern _X_EXPORT int
|
---|
790 | RROutputDeleteUserMode(RROutputPtr output, RRModePtr mode);
|
---|
791 |
|
---|
792 | extern _X_EXPORT Bool
|
---|
793 | RROutputSetCrtcs(RROutputPtr output, RRCrtcPtr * crtcs, int numCrtcs);
|
---|
794 |
|
---|
795 | extern _X_EXPORT Bool
|
---|
796 | RROutputSetConnection(RROutputPtr output, CARD8 connection);
|
---|
797 |
|
---|
798 | extern _X_EXPORT Bool
|
---|
799 | RROutputSetSubpixelOrder(RROutputPtr output, int subpixelOrder);
|
---|
800 |
|
---|
801 | extern _X_EXPORT Bool
|
---|
802 | RROutputSetPhysicalSize(RROutputPtr output, int mmWidth, int mmHeight);
|
---|
803 |
|
---|
804 | extern _X_EXPORT void
|
---|
805 | RRDeliverOutputEvent(ClientPtr client, WindowPtr pWin, RROutputPtr output);
|
---|
806 |
|
---|
807 | extern _X_EXPORT void
|
---|
808 | RROutputDestroy(RROutputPtr output);
|
---|
809 |
|
---|
810 | extern _X_EXPORT int
|
---|
811 | ProcRRGetOutputInfo(ClientPtr client);
|
---|
812 |
|
---|
813 | extern _X_EXPORT int
|
---|
814 | ProcRRSetOutputPrimary(ClientPtr client);
|
---|
815 |
|
---|
816 | extern _X_EXPORT int
|
---|
817 | ProcRRGetOutputPrimary(ClientPtr client);
|
---|
818 |
|
---|
819 | /*
|
---|
820 | * Initialize output type
|
---|
821 | */
|
---|
822 | extern _X_EXPORT Bool
|
---|
823 | RROutputInit(void);
|
---|
824 |
|
---|
825 | /*
|
---|
826 | * Initialize output type error value
|
---|
827 | */
|
---|
828 | extern _X_EXPORT void
|
---|
829 | RROutputInitErrorValue(void);
|
---|
830 |
|
---|
831 | /* rrpointer.c */
|
---|
832 | extern _X_EXPORT void
|
---|
833 | RRPointerMoved(ScreenPtr pScreen, int x, int y);
|
---|
834 |
|
---|
835 | extern _X_EXPORT void
|
---|
836 | RRPointerScreenConfigured(ScreenPtr pScreen);
|
---|
837 |
|
---|
838 | /* rrproperty.c */
|
---|
839 |
|
---|
840 | extern _X_EXPORT void
|
---|
841 | RRDeleteAllOutputProperties(RROutputPtr output);
|
---|
842 |
|
---|
843 | extern _X_EXPORT RRPropertyValuePtr
|
---|
844 | RRGetOutputProperty(RROutputPtr output, Atom property, Bool pending);
|
---|
845 |
|
---|
846 | extern _X_EXPORT RRPropertyPtr
|
---|
847 | RRQueryOutputProperty(RROutputPtr output, Atom property);
|
---|
848 |
|
---|
849 | extern _X_EXPORT void
|
---|
850 | RRDeleteOutputProperty(RROutputPtr output, Atom property);
|
---|
851 |
|
---|
852 | extern _X_EXPORT Bool
|
---|
853 | RRPostPendingProperties(RROutputPtr output);
|
---|
854 |
|
---|
855 | extern _X_EXPORT int
|
---|
856 |
|
---|
857 | RRChangeOutputProperty(RROutputPtr output, Atom property, Atom type,
|
---|
858 | int format, int mode, unsigned long len,
|
---|
859 | pointer value, Bool sendevent, Bool pending);
|
---|
860 |
|
---|
861 | extern _X_EXPORT int
|
---|
862 |
|
---|
863 | RRConfigureOutputProperty(RROutputPtr output, Atom property,
|
---|
864 | Bool pending, Bool range, Bool immutable,
|
---|
865 | int num_values, INT32 *values);
|
---|
866 | extern _X_EXPORT int
|
---|
867 | ProcRRChangeOutputProperty(ClientPtr client);
|
---|
868 |
|
---|
869 | extern _X_EXPORT int
|
---|
870 | ProcRRGetOutputProperty(ClientPtr client);
|
---|
871 |
|
---|
872 | extern _X_EXPORT int
|
---|
873 | ProcRRListOutputProperties(ClientPtr client);
|
---|
874 |
|
---|
875 | extern _X_EXPORT int
|
---|
876 | ProcRRQueryOutputProperty(ClientPtr client);
|
---|
877 |
|
---|
878 | extern _X_EXPORT int
|
---|
879 | ProcRRConfigureOutputProperty(ClientPtr client);
|
---|
880 |
|
---|
881 | extern _X_EXPORT int
|
---|
882 | ProcRRDeleteOutputProperty(ClientPtr client);
|
---|
883 |
|
---|
884 | /* rrprovider.c */
|
---|
885 | extern _X_EXPORT void
|
---|
886 | RRProviderInitErrorValue(void);
|
---|
887 |
|
---|
888 | extern _X_EXPORT int
|
---|
889 | ProcRRGetProviders(ClientPtr client);
|
---|
890 |
|
---|
891 | extern _X_EXPORT int
|
---|
892 | ProcRRGetProviderInfo(ClientPtr client);
|
---|
893 |
|
---|
894 | extern _X_EXPORT int
|
---|
895 | ProcRRSetProviderOutputSource(ClientPtr client);
|
---|
896 |
|
---|
897 | extern _X_EXPORT int
|
---|
898 | ProcRRSetProviderOffloadSink(ClientPtr client);
|
---|
899 |
|
---|
900 | extern _X_EXPORT Bool
|
---|
901 | RRProviderInit(void);
|
---|
902 |
|
---|
903 | extern _X_EXPORT RRProviderPtr
|
---|
904 | RRProviderCreate(ScreenPtr pScreen, const char *name,
|
---|
905 | int nameLength);
|
---|
906 |
|
---|
907 | extern _X_EXPORT void
|
---|
908 | RRProviderDestroy (RRProviderPtr provider);
|
---|
909 |
|
---|
910 | extern _X_EXPORT void
|
---|
911 | RRProviderSetCapabilities(RRProviderPtr provider, uint32_t capabilities);
|
---|
912 |
|
---|
913 | extern _X_EXPORT Bool
|
---|
914 | RRProviderLookup(XID id, RRProviderPtr *provider_p);
|
---|
915 |
|
---|
916 | /* rrproviderproperty.c */
|
---|
917 |
|
---|
918 | extern _X_EXPORT void
|
---|
919 | RRDeleteAllProviderProperties(RRProviderPtr provider);
|
---|
920 |
|
---|
921 | extern _X_EXPORT RRPropertyValuePtr
|
---|
922 | RRGetProviderProperty(RRProviderPtr provider, Atom property, Bool pending);
|
---|
923 |
|
---|
924 | extern _X_EXPORT RRPropertyPtr
|
---|
925 | RRQueryProviderProperty(RRProviderPtr provider, Atom property);
|
---|
926 |
|
---|
927 | extern _X_EXPORT void
|
---|
928 | RRDeleteProviderProperty(RRProviderPtr provider, Atom property);
|
---|
929 |
|
---|
930 | extern _X_EXPORT int
|
---|
931 | RRChangeProviderProperty(RRProviderPtr provider, Atom property, Atom type,
|
---|
932 | int format, int mode, unsigned long len,
|
---|
933 | pointer value, Bool sendevent, Bool pending);
|
---|
934 |
|
---|
935 | extern _X_EXPORT int
|
---|
936 | ProcRRGetProviderProperty(ClientPtr client);
|
---|
937 |
|
---|
938 | extern _X_EXPORT int
|
---|
939 | ProcRRListProviderProperties(ClientPtr client);
|
---|
940 |
|
---|
941 | extern _X_EXPORT int
|
---|
942 | ProcRRQueryProviderProperty(ClientPtr client);
|
---|
943 |
|
---|
944 | extern _X_EXPORT int
|
---|
945 | ProcRRConfigureProviderProperty(ClientPtr client);
|
---|
946 |
|
---|
947 | extern _X_EXPORT int
|
---|
948 | ProcRRChangeProviderProperty(ClientPtr client);
|
---|
949 |
|
---|
950 | extern _X_EXPORT int
|
---|
951 | ProcRRDeleteProviderProperty(ClientPtr client);
|
---|
952 | /* rrxinerama.c */
|
---|
953 | #ifdef XINERAMA
|
---|
954 | extern _X_EXPORT void
|
---|
955 | RRXineramaExtensionInit(void);
|
---|
956 | #endif
|
---|
957 |
|
---|
958 | #endif /* _RANDRSTR_H_ */
|
---|
959 |
|
---|
960 | /*
|
---|
961 |
|
---|
962 | randr extension implementation structure
|
---|
963 |
|
---|
964 | Query state:
|
---|
965 | ProcRRGetScreenInfo/ProcRRGetScreenResources
|
---|
966 | RRGetInfo
|
---|
967 |
|
---|
968 | • Request configuration from driver, either 1.0 or 1.2 style
|
---|
969 | • These functions only record state changes, all
|
---|
970 | other actions are pended until RRTellChanged is called
|
---|
971 |
|
---|
972 | ->rrGetInfo
|
---|
973 | 1.0:
|
---|
974 | RRRegisterSize
|
---|
975 | RRRegisterRate
|
---|
976 | RRSetCurrentConfig
|
---|
977 | 1.2:
|
---|
978 | RRScreenSetSizeRange
|
---|
979 | RROutputSetCrtcs
|
---|
980 | RRModeGet
|
---|
981 | RROutputSetModes
|
---|
982 | RROutputSetConnection
|
---|
983 | RROutputSetSubpixelOrder
|
---|
984 | RROutputSetClones
|
---|
985 | RRCrtcNotify
|
---|
986 |
|
---|
987 | • Must delay scanning configuration until after ->rrGetInfo returns
|
---|
988 | because some drivers will call SetCurrentConfig in the middle
|
---|
989 | of the ->rrGetInfo operation.
|
---|
990 |
|
---|
991 | 1.0:
|
---|
992 |
|
---|
993 | • Scan old configuration, mirror to new structures
|
---|
994 |
|
---|
995 | RRScanOldConfig
|
---|
996 | RRCrtcCreate
|
---|
997 | RROutputCreate
|
---|
998 | RROutputSetCrtcs
|
---|
999 | RROutputSetConnection
|
---|
1000 | RROutputSetSubpixelOrder
|
---|
1001 | RROldModeAdd • This adds modes one-at-a-time
|
---|
1002 | RRModeGet
|
---|
1003 | RRCrtcNotify
|
---|
1004 |
|
---|
1005 | • send events, reset pointer if necessary
|
---|
1006 |
|
---|
1007 | RRTellChanged
|
---|
1008 | WalkTree (sending events)
|
---|
1009 |
|
---|
1010 | • when layout has changed:
|
---|
1011 | RRPointerScreenConfigured
|
---|
1012 | RRSendConfigNotify
|
---|
1013 |
|
---|
1014 | Asynchronous state setting (1.2 only)
|
---|
1015 | When setting state asynchronously, the driver invokes the
|
---|
1016 | ->rrGetInfo function and then calls RRTellChanged to flush
|
---|
1017 | the changes to the clients and reset pointer if necessary
|
---|
1018 |
|
---|
1019 | Set state
|
---|
1020 |
|
---|
1021 | ProcRRSetScreenConfig
|
---|
1022 | RRCrtcSet
|
---|
1023 | 1.2:
|
---|
1024 | ->rrCrtcSet
|
---|
1025 | RRCrtcNotify
|
---|
1026 | 1.0:
|
---|
1027 | ->rrSetConfig
|
---|
1028 | RRCrtcNotify
|
---|
1029 | RRTellChanged
|
---|
1030 | */
|
---|