Home | History | Annotate | Download | only in main

Lines Matching refs:mode

52 _eglLookupMode(EGLModeMESA mode, _EGLDisplay *disp)
65 * the mode ids of a screen ranges from scrn->Handle to scrn->Handle +
68 if (mode >= scrn->Handle &&
69 mode < scrn->Handle + _EGL_SCREEN_MAX_MODES) {
70 idx = mode - scrn->Handle;
72 assert(idx < scrn->NumModes && scrn->Modes[idx].Handle == mode);
87 _eglParseModeAttribs(_EGLMode *mode, const EGLint *attrib_list)
92 mode->Handle = EGL_DONT_CARE;
93 mode->Width = EGL_DONT_CARE;
94 mode->Height = EGL_DONT_CARE;
95 mode->RefreshRate = EGL_DONT_CARE;
96 mode->Optimal = EGL_DONT_CARE;
97 mode->Interlaced = EGL_DONT_CARE;
98 mode->Name = NULL;
103 mode->Handle = attrib_list[++i];
104 if (mode->Handle <= 0) {
110 mode->Width = attrib_list[++i];
111 if (mode->Width <= 0) {
117 mode->Height = attrib_list[++i];
118 if (mode->Height <= 0) {
124 mode->RefreshRate = attrib_list[++i];
125 if (mode->RefreshRate <= 0) {
131 mode->Interlaced = attrib_list[++i];
132 if (mode->Interlaced != EGL_TRUE && mode->Interlaced != EGL_FALSE) {
138 mode->Optimal = attrib_list[++i];
139 if (mode->Optimal != EGL_TRUE && mode->Optimal != EGL_FALSE) {
154 * Determine if the candidate mode's attributes are at least as good
155 * as the minimal mode's.
179 * Return value of given mode attribute, or -1 if bad attrib.
272 /* allocate array of mode pointers */
289 /* copy mode handles to output array */
328 * Query an attribute of a mode.
347 * Return human-readable string for given mode.