egl: fix typos
authorHarri Nieminen <moiman@posteo.net>
Mon, 24 Apr 2023 11:24:02 +0000 (14:24 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Apr 2023 23:52:21 +0000 (23:52 +0000)
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22663>

14 files changed:
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/haiku/egl_haiku.cpp
src/egl/drivers/wgl/egl_wgl.c
src/egl/main/eglapi.c
src/egl/main/eglconfig.c
src/egl/main/eglcontext.c
src/egl/main/eglcurrent.c
src/egl/main/egldevice.c
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h
src/egl/main/eglglobals.c
src/egl/main/eglglobals.h

index 90b8a62..34b12bc 100644 (file)
@@ -180,7 +180,7 @@ dri_is_thread_safe(UNUSED void *loaderPrivate)
     * 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;
@@ -3364,7 +3364,7 @@ dri2_create_sync(_EGLDisplay *disp, EGLenum type, const EGLAttrib *attrib_list)
       break;
 
    case EGL_SYNC_REUSABLE_KHR:
-      /* intialize attr */
+      /* initialize attr */
       ret = pthread_condattr_init(&attr);
 
       if (ret) {
index 94327a6..74d3733 100644 (file)
@@ -999,7 +999,7 @@ droid_swap_buffers(_EGLDisplay *disp, _EGLSurface *draw)
 
    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
index 4a89626..d6dfd00 100644 (file)
@@ -421,7 +421,7 @@ get_wl_surface_proxy(struct wl_egl_window *window)
      * 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);
@@ -2295,7 +2295,7 @@ dri2_initialize_wayland_drm(_EGLDisplay *disp)
       /* 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)) {
index f75eace..495000c 100644 (file)
@@ -297,7 +297,7 @@ haiku_add_configs_for_visuals(_EGLDisplay *disp)
                _eglLog(_EGL_WARNING, "Haiku: failed to create any config");
                goto cleanup;
        }
-       TRACE("Config successfull\n");
+       TRACE("Config successful\n");
 
        return EGL_TRUE;
 
index 7de0e00..bc8027b 100644 (file)
@@ -621,7 +621,7 @@ wgl_make_current(_EGLDisplay *disp, _EGLSurface *dsurf,
          /* 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);
       }
index 019a2af..cc3af30 100644 (file)
@@ -188,7 +188,7 @@ _egl_relax_end(_EGLDisplay *disp, _EGLResource **rs, unsigned rs_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, ...) \
index 7ce6ef3..60f6e8e 100644 (file)
@@ -384,7 +384,7 @@ _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching)
       }
    }
 
-   /* any invalid attribute value should have been catched */
+   /* any invalid attribute value should have been caught */
    if (!valid || for_matching)
       return valid;
 
index bd6518f..2d51ba0 100644 (file)
@@ -837,7 +837,7 @@ _eglCheckMakeCurrent(_EGLContext *ctx, _EGLSurface *draw, _EGLSurface *read)
  * 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
index 45ed741..249f2a4 100644 (file)
@@ -54,7 +54,7 @@ _eglInitThreadInfo(_EGLThreadInfo *t)
 
 /**
  * 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 *
index ba77430..c6402ed 100644 (file)
@@ -347,7 +347,7 @@ _eglQueryDevicesEXT(EGLint max_devices,
       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;
index 39850e3..cf54cd0 100644 (file)
@@ -123,7 +123,7 @@ _eglGetNativePlatformFromEnv(void)
 
 
 /**
- * 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)
@@ -137,7 +137,7 @@ _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
@@ -635,7 +635,7 @@ _eglGetDeviceDisplay(void *native_display,
 
    /* 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.
     */
index 28c2b29..cafbccc 100644 (file)
@@ -204,7 +204,7 @@ struct _egl_display
       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 */
index 6ae161f..fefbb37 100644 (file)
@@ -139,7 +139,7 @@ _eglAddAtExitCall(void (*func)(void))
 }
 
 EGLBoolean
-_eglPointerIsDereferencable(void *p)
+_eglPointerIsDereferenceable(void *p)
 {
    uintptr_t addr = (uintptr_t) p;
    uint64_t page_size = 0;
index dddc1f3..c3f421c 100644 (file)
@@ -92,6 +92,6 @@ static inline unsigned int DebugBitFromType(EGLenum type)
  * Perform validity checks on a generic pointer.
  */
 extern EGLBoolean
-_eglPointerIsDereferencable(void *p);
+_eglPointerIsDereferenceable(void *p);
 
 #endif /* EGLGLOBALS_INCLUDED */