Lines Matching refs:psp
66 setupLoaderExtensions(__DRIscreen *psp,
73 psp->dri2.loader = (__DRIdri2LoaderExtension *) extensions[i];
75 psp->dri2.image = (__DRIimageLookupExtension *) extensions[i];
77 psp->dri2.useInvalidate = (__DRIuseInvalidateExtension *) extensions[i];
79 psp->dri2.backgroundCallable = (__DRIbackgroundCallableExtension *) extensions[i];
81 psp->swrast_loader = (__DRIswrastLoaderExtension *) extensions[i];
83 psp->image.loader = (__DRIimageLoaderExtension *) extensions[i];
118 __DRIscreen *psp;
120 psp = calloc(1, sizeof(*psp));
121 if (!psp)
125 psp->driver = globalDriverAPI;
133 psp->driver =
139 setupLoaderExtensions(psp, extensions);
141 psp->loaderPrivate = data;
143 psp->extensions = emptyExtensionList;
144 psp->fd = fd;
145 psp->myNum = scrn;
148 driParseOptionInfo(&psp->optionInfo, __dri2ConfigOptions);
149 driParseConfigFiles(&psp->optionCache, &psp->optionInfo, psp->myNum, "dri2");
151 *driver_configs = psp->driver->InitScreen(psp);
153 free(psp);
163 psp->max_gl_es2_version = version;
167 psp->max_gl_core_version = version;
169 psp->max_gl_compat_version = version;
172 psp->api_mask = 0;
173 if (psp->max_gl_compat_version > 0)
174 psp->api_mask |= (1 << __DRI_API_OPENGL);
175 if (psp->max_gl_core_version > 0)
176 psp->api_mask |= (1 << __DRI_API_OPENGL_CORE);
177 if (psp->max_gl_es1_version > 0)
178 psp->api_mask |= (1 << __DRI_API_GLES);
179 if (psp->max_gl_es2_version > 0)
180 psp->api_mask |= (1 << __DRI_API_GLES2);
181 if (psp->max_gl_es2_version >= 30)
182 psp->api_mask |= (1 << __DRI_API_GLES3);
184 return psp;
221 static void driDestroyScreen(__DRIscreen *psp)
223 if (psp) {
229 psp->driver->DestroyScreen(psp);
231 driDestroyOptionCache(&psp->optionCache);
232 driDestroyOptionInfo(&psp->optionInfo);
234 free(psp);
238 static const __DRIextension **driGetExtensions(__DRIscreen *psp)
240 return psp->extensions;