Lines Matching refs:conf
84 _EGLConfig *conf, void *native_window, const EGLint *attrib_list) in haiku_create_window_surface() argument
96 conf, attrib_list)) { in haiku_create_window_surface()
121 _EGLConfig *conf, void *native_pixmap, const EGLint *attrib_list) in haiku_create_pixmap_surface() argument
129 _EGLConfig *conf, const EGLint *attrib_list) in haiku_create_pbuffer_surface() argument
151 struct haiku_egl_config* conf; in haiku_add_configs_for_visuals() local
152 conf = (struct haiku_egl_config*) calloc(1, sizeof (*conf)); in haiku_add_configs_for_visuals()
153 if (!conf) { in haiku_add_configs_for_visuals()
158 _eglInitConfig(&conf->base, dpy, 1); in haiku_add_configs_for_visuals()
161 _eglSetConfigKey(&conf->base, EGL_RED_SIZE, 8); in haiku_add_configs_for_visuals()
162 _eglSetConfigKey(&conf->base, EGL_BLUE_SIZE, 8); in haiku_add_configs_for_visuals()
163 _eglSetConfigKey(&conf->base, EGL_GREEN_SIZE, 8); in haiku_add_configs_for_visuals()
164 _eglSetConfigKey(&conf->base, EGL_LUMINANCE_SIZE, 0); in haiku_add_configs_for_visuals()
165 _eglSetConfigKey(&conf->base, EGL_ALPHA_SIZE, 8); in haiku_add_configs_for_visuals()
166 _eglSetConfigKey(&conf->base, EGL_COLOR_BUFFER_TYPE, EGL_RGB_BUFFER); in haiku_add_configs_for_visuals()
167 EGLint r = (_eglGetConfigKey(&conf->base, EGL_RED_SIZE) in haiku_add_configs_for_visuals()
168 + _eglGetConfigKey(&conf->base, EGL_GREEN_SIZE) in haiku_add_configs_for_visuals()
169 + _eglGetConfigKey(&conf->base, EGL_BLUE_SIZE) in haiku_add_configs_for_visuals()
170 + _eglGetConfigKey(&conf->base, EGL_ALPHA_SIZE)); in haiku_add_configs_for_visuals()
171 _eglSetConfigKey(&conf->base, EGL_BUFFER_SIZE, r); in haiku_add_configs_for_visuals()
172 _eglSetConfigKey(&conf->base, EGL_CONFIG_CAVEAT, EGL_NONE); in haiku_add_configs_for_visuals()
173 _eglSetConfigKey(&conf->base, EGL_CONFIG_ID, 1); in haiku_add_configs_for_visuals()
174 _eglSetConfigKey(&conf->base, EGL_BIND_TO_TEXTURE_RGB, EGL_FALSE); in haiku_add_configs_for_visuals()
175 _eglSetConfigKey(&conf->base, EGL_BIND_TO_TEXTURE_RGBA, EGL_FALSE); in haiku_add_configs_for_visuals()
176 _eglSetConfigKey(&conf->base, EGL_STENCIL_SIZE, 0); in haiku_add_configs_for_visuals()
177 _eglSetConfigKey(&conf->base, EGL_TRANSPARENT_TYPE, EGL_NONE); in haiku_add_configs_for_visuals()
178 _eglSetConfigKey(&conf->base, EGL_NATIVE_RENDERABLE, EGL_TRUE); // Let's say yes in haiku_add_configs_for_visuals()
179 _eglSetConfigKey(&conf->base, EGL_NATIVE_VISUAL_ID, 0); // No visual in haiku_add_configs_for_visuals()
180 _eglSetConfigKey(&conf->base, EGL_NATIVE_VISUAL_TYPE, EGL_NONE); // No visual in haiku_add_configs_for_visuals()
181 _eglSetConfigKey(&conf->base, EGL_RENDERABLE_TYPE, 0x8); in haiku_add_configs_for_visuals()
182 _eglSetConfigKey(&conf->base, EGL_SAMPLE_BUFFERS, 0); // TODO: How to get the right value ? in haiku_add_configs_for_visuals()
183 …_eglSetConfigKey(&conf->base, EGL_SAMPLES, _eglGetConfigKey(&conf->base, EGL_SAMPLE_BUFFERS) == 0 … in haiku_add_configs_for_visuals()
184 _eglSetConfigKey(&conf->base, EGL_DEPTH_SIZE, 24); // TODO: How to get the right value ? in haiku_add_configs_for_visuals()
185 _eglSetConfigKey(&conf->base, EGL_LEVEL, 0); in haiku_add_configs_for_visuals()
186 _eglSetConfigKey(&conf->base, EGL_MAX_PBUFFER_WIDTH, 0); // TODO: How to get the right value ? in haiku_add_configs_for_visuals()
187 _eglSetConfigKey(&conf->base, EGL_MAX_PBUFFER_HEIGHT, 0); // TODO: How to get the right value ? in haiku_add_configs_for_visuals()
188 _eglSetConfigKey(&conf->base, EGL_MAX_PBUFFER_PIXELS, 0); // TODO: How to get the right value ? in haiku_add_configs_for_visuals()
189 …_eglSetConfigKey(&conf->base, EGL_SURFACE_TYPE, EGL_WINDOW_BIT /*| EGL_PIXMAP_BIT | EGL_PBUFFER_BI… in haiku_add_configs_for_visuals()
192 if (!_eglValidateConfig(&conf->base, EGL_FALSE)) { in haiku_add_configs_for_visuals()
198 _eglLinkConfig(&conf->base); in haiku_add_configs_for_visuals()
208 free(conf); in haiku_add_configs_for_visuals()
241 haiku_create_context(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, in haiku_create_context() argument
253 if (!_eglInitContext(&context->ctx, disp, conf, attrib_list)) in haiku_create_context()