gallium: Rename dri_init_screen_helper into dri_init_screen

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>
This commit is contained in:
Corentin Noël 2023-06-13 11:25:38 +02:00 committed by Marge Bot
parent ad0bcd75fd
commit 3f71ed9e7e
5 changed files with 8 additions and 8 deletions

View 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;

View 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;

View 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);

View 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;

View 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;