gallium: Rename dri_init_screen_helper into dri_init_screen
authorCorentin Noël <corentin.noel@collabora.com>
Tue, 13 Jun 2023 09:25:38 +0000 (11:25 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Jun 2023 10:10:42 +0000 (10:10 +0000)
Makes it more obvious that this function is actually initializing the dri_screen
and not some helper.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23054>

src/gallium/frontends/dri/dri2.c
src/gallium/frontends/dri/dri_screen.c
src/gallium/frontends/dri/dri_screen.h
src/gallium/frontends/dri/drisw.c
src/gallium/frontends/dri/kopper.c

index cfba464..bf11a86 100644 (file)
@@ -2299,7 +2299,7 @@ dri2_init_screen(struct dri_screen *screen)
    if (pscreen->get_param(pscreen, PIPE_CAP_DEVICE_PROTECTED_CONTEXT))
       screen->has_protected_context = true;
 
-   configs = dri_init_screen_helper(screen, pscreen);
+   configs = dri_init_screen(screen, pscreen);
    if (!configs)
       goto fail;
 
@@ -2351,7 +2351,7 @@ dri_swrast_kms_init_screen(struct dri_screen *screen)
    dri_init_options(screen);
    dri2_init_screen_extensions(screen, pscreen, true);
 
-   configs = dri_init_screen_helper(screen, pscreen);
+   configs = dri_init_screen(screen, pscreen);
    if (!configs)
       goto fail;
 
index d5a38d8..bb84af5 100644 (file)
@@ -829,8 +829,8 @@ dri_set_background_context(struct st_context *st,
 }
 
 const __DRIconfig **
-dri_init_screen_helper(struct dri_screen *screen,
-                       struct pipe_screen *pscreen)
+dri_init_screen(struct dri_screen *screen,
+                struct pipe_screen *pscreen)
 {
    screen->base.screen = pscreen;
    screen->base.get_egl_image = dri_get_egl_image;
index 564517b..13c5d0a 100644 (file)
@@ -219,8 +219,8 @@ void
 dri_init_options(struct dri_screen *screen);
 
 const __DRIconfig **
-dri_init_screen_helper(struct dri_screen *screen,
-                       struct pipe_screen *pscreen);
+dri_init_screen(struct dri_screen *screen,
+                struct pipe_screen *pscreen);
 
 void
 dri_release_screen(struct dri_screen * screen);
index cdca90e..3abee57 100644 (file)
@@ -568,7 +568,7 @@ drisw_init_screen(struct dri_screen *screen)
       goto fail;
 
    dri_init_options(screen);
-   configs = dri_init_screen_helper(screen, pscreen);
+   configs = dri_init_screen(screen, pscreen);
    if (!configs)
       goto fail;
 
index 2fc1603..ac2763f 100644 (file)
@@ -140,7 +140,7 @@ kopper_init_screen(struct dri_screen *screen)
    dri_init_options(screen);
    screen->unwrapped_screen = trace_screen_unwrap(pscreen);
 
-   configs = dri_init_screen_helper(screen, pscreen);
+   configs = dri_init_screen(screen, pscreen);
    if (!configs)
       goto fail;