frontends/dri: plumb an 'implicit' param through screen init

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28139>
This commit is contained in:
Mike Blumenkrantz 2024-03-12 10:05:49 -04:00 committed by Marge Bot
parent 4742d9bc1a
commit 744307289c
5 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ struct __DRImesaCoreExtensionRec {
__DRIcreateContextAttribsFunc createContext;
/* driver function for finishing initialization inside createNewScreen(). */
const __DRIconfig **(*initScreen)(struct dri_screen *screen);
const __DRIconfig **(*initScreen)(struct dri_screen *screen, bool implicit);
int (*queryCompatibleRenderOnlyDeviceFd)(int kms_only_fd);

View File

@ -2332,7 +2332,7 @@ dri2_create_drawable(struct dri_screen *screen, const struct gl_config *visual,
* Returns the struct gl_config supported by this driver.
*/
static const __DRIconfig **
dri2_init_screen(struct dri_screen *screen)
dri2_init_screen(struct dri_screen *screen, bool implicit)
{
const __DRIconfig **configs;
struct pipe_screen *pscreen = NULL;
@ -2390,7 +2390,7 @@ fail:
* Returns the struct gl_config supported by this driver.
*/
static const __DRIconfig **
dri_swrast_kms_init_screen(struct dri_screen *screen)
dri_swrast_kms_init_screen(struct dri_screen *screen, bool implicit)
{
#if defined(GALLIUM_SOFTPIPE)
const __DRIconfig **configs;

View File

@ -137,7 +137,7 @@ driCreateNewScreen3(int scrn, int fd,
driParseConfigFiles(&screen->optionCache, &screen->optionInfo, screen->myNum,
"dri2", NULL, NULL, NULL, 0, NULL, 0);
*driver_configs = mesa->initScreen(screen);
*driver_configs = mesa->initScreen(screen, implicit);
if (*driver_configs == NULL) {
dri_destroy_screen(screen);
return NULL;

View File

@ -575,7 +575,7 @@ drisw_create_drawable(struct dri_screen *screen, const struct gl_config * visual
}
static const __DRIconfig **
drisw_init_screen(struct dri_screen *screen)
drisw_init_screen(struct dri_screen *screen, bool implicit)
{
const __DRIswrastLoaderExtension *loader = screen->swrast_loader;
const __DRIconfig **configs;

View File

@ -111,7 +111,7 @@ static const __DRIextension *drivk_sw_screen_extensions[] = {
};
static const __DRIconfig **
kopper_init_screen(struct dri_screen *screen)
kopper_init_screen(struct dri_screen *screen, bool implicit)
{
const __DRIconfig **configs;
struct pipe_screen *pscreen = NULL;