* platform
*
* 'lock_fns' is the XLockDisplay function pointer of the X11 display 'dpy'.
- * It wll be NULL if XInitThreads wasn't called.
+ * It will be NULL if XInitThreads wasn't called.
*/
if (display->Platform == _EGL_PLATFORM_X11 && xdpy && !xdpy->lock_fns)
return false;
break;
case EGL_SYNC_REUSABLE_KHR:
- /* intialize attr */
+ /* initialize attr */
ret = pthread_condattr_init(&attr);
if (ret) {
dri2_flush_drawable_for_swapbuffers_flags(disp, draw, -1);
- /* dri2_surf->buffer can be null even when no error has occured. For
+ /* dri2_surf->buffer can be null even when no error has occurred. For
* example, if the user has called no GL rendering commands since the
* previous eglSwapBuffers, then the driver may have not triggered
* a callback to ANativeWindow_dequeueBuffer, in which case
* location where a pointer to wl_surface was stored. Thus, if
* window->version is dereferenceable, we've been given an older version of
* wl_egl_window, and window->version points to wl_surface */
- if (_eglPointerIsDereferencable((void *)(window->version))) {
+ if (_eglPointerIsDereferenceable((void *)(window->version))) {
return wl_proxy_create_wrapper((void *)(window->version));
}
return wl_proxy_create_wrapper(window->surface);
/* To use Prime, we must have _DRI_IMAGE v7 at least. createImageFromFds
* support indicates that Prime export/import is supported by the driver.
* We deprecated the support to GEM names API, so we bail out if the
- * driver does not suport Prime. */
+ * driver does not support Prime. */
if (!(dri2_dpy->capabilities & WL_DRM_CAPABILITY_PRIME) ||
(dri2_dpy->image->base.version < 7) ||
(dri2_dpy->image->createImageFromFds == NULL)) {
_eglLog(_EGL_WARNING, "Haiku: failed to create any config");
goto cleanup;
}
- TRACE("Config successfull\n");
+ TRACE("Config successful\n");
return EGL_TRUE;
/* wgl_dpy->core->bindContext succeeded, so take a reference on the
* wgl_dpy. This prevents wgl_dpy from being reinitialized when a
* EGLDisplay is terminated and then initialized again while a
- * context is still bound. See wgl_intitialize() for a more in depth
+ * context is still bound. See wgl_initialize() for a more in depth
* explanation. */
p_atomic_inc(&wgl_dpy->ref_count);
}
/**
* Helper to relax (drop) the EGL BDL over it's body, optionally holding
- * a reference to a list of _EGLResource's until the lock is re-aquired,
+ * a reference to a list of _EGLResource's until the lock is re-acquired,
* protecting the resources from destruction while the BDL is dropped.
*/
#define egl_relax(disp, ...) \
}
}
- /* any invalid attribute value should have been catched */
+ /* any invalid attribute value should have been caught */
if (!valid || for_matching)
return valid;
* returned context and surfaces.
*
* Making a second call with the resources returned by the first call
- * unsurprisingly undoes the first call, except for the resouce reference
+ * unsurprisingly undoes the first call, except for the resource reference
* counts.
*/
EGLBoolean
/**
* Return the calling thread's thread info.
- * If the calling thread nevers calls this function before, or if its thread
+ * If the calling thread never calls this function before, or if its thread
* info was destroyed, reinitialize it. This function never returns NULL.
*/
_EGLThreadInfo *
dev = dev->Next;
}
- /* User requested the full device list, add the sofware device. */
+ /* User requested the full device list, add the software device. */
if (max_devices >= num_devs && swrast) {
assert(_eglDeviceSupports(swrast, _EGL_DEVICE_SOFTWARE));
devices[num_devs - 1] = swrast;
/**
- * Try detecting native platform with the help of native display characteristcs.
+ * Try detecting native platform with the help of native display characteristics.
*/
static _EGLPlatformType
_eglNativePlatformDetectNativeDisplay(void *nativeDisplay)
#endif
#if defined(HAVE_WAYLAND_PLATFORM) || defined(HAVE_DRM_PLATFORM)
- if (_eglPointerIsDereferencable(nativeDisplay)) {
+ if (_eglPointerIsDereferenceable(nativeDisplay)) {
void *first_pointer = *(void **) nativeDisplay;
#ifdef HAVE_WAYLAND_PLATFORM
/* If the fd is explicitly provided and we did not dup() it yet, do so.
* The spec mandates that we do so, since we'll need it past the
- * eglGetPlatformDispay call.
+ * eglGetPlatformDisplay call.
*
* The new fd is guaranteed to be 3 or greater.
*/
EGLBoolean Zink; /**< Use kopper only */
EGLBoolean ForceSoftware; /**< Use software path only */
EGLAttrib *Attribs; /**< Platform-specific options */
- int fd; /**< plaform device specific, local fd */
+ int fd; /**< platform device specific, local fd */
} Options;
/* these fields are set by the driver during init */
}
EGLBoolean
-_eglPointerIsDereferencable(void *p)
+_eglPointerIsDereferenceable(void *p)
{
uintptr_t addr = (uintptr_t) p;
uint64_t page_size = 0;
* Perform validity checks on a generic pointer.
*/
extern EGLBoolean
-_eglPointerIsDereferencable(void *p);
+_eglPointerIsDereferenceable(void *p);
#endif /* EGLGLOBALS_INCLUDED */