mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
4742d9bc1a
commit
744307289c
|
@ -60,7 +60,7 @@ struct __DRImesaCoreExtensionRec {
|
||||||
__DRIcreateContextAttribsFunc createContext;
|
__DRIcreateContextAttribsFunc createContext;
|
||||||
|
|
||||||
/* driver function for finishing initialization inside createNewScreen(). */
|
/* 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);
|
int (*queryCompatibleRenderOnlyDeviceFd)(int kms_only_fd);
|
||||||
|
|
||||||
|
|
|
@ -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.
|
* Returns the struct gl_config supported by this driver.
|
||||||
*/
|
*/
|
||||||
static const __DRIconfig **
|
static const __DRIconfig **
|
||||||
dri2_init_screen(struct dri_screen *screen)
|
dri2_init_screen(struct dri_screen *screen, bool implicit)
|
||||||
{
|
{
|
||||||
const __DRIconfig **configs;
|
const __DRIconfig **configs;
|
||||||
struct pipe_screen *pscreen = NULL;
|
struct pipe_screen *pscreen = NULL;
|
||||||
|
@ -2390,7 +2390,7 @@ fail:
|
||||||
* Returns the struct gl_config supported by this driver.
|
* Returns the struct gl_config supported by this driver.
|
||||||
*/
|
*/
|
||||||
static const __DRIconfig **
|
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)
|
#if defined(GALLIUM_SOFTPIPE)
|
||||||
const __DRIconfig **configs;
|
const __DRIconfig **configs;
|
||||||
|
|
|
@ -137,7 +137,7 @@ driCreateNewScreen3(int scrn, int fd,
|
||||||
driParseConfigFiles(&screen->optionCache, &screen->optionInfo, screen->myNum,
|
driParseConfigFiles(&screen->optionCache, &screen->optionInfo, screen->myNum,
|
||||||
"dri2", NULL, NULL, NULL, 0, NULL, 0);
|
"dri2", NULL, NULL, NULL, 0, NULL, 0);
|
||||||
|
|
||||||
*driver_configs = mesa->initScreen(screen);
|
*driver_configs = mesa->initScreen(screen, implicit);
|
||||||
if (*driver_configs == NULL) {
|
if (*driver_configs == NULL) {
|
||||||
dri_destroy_screen(screen);
|
dri_destroy_screen(screen);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -575,7 +575,7 @@ drisw_create_drawable(struct dri_screen *screen, const struct gl_config * visual
|
||||||
}
|
}
|
||||||
|
|
||||||
static const __DRIconfig **
|
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 __DRIswrastLoaderExtension *loader = screen->swrast_loader;
|
||||||
const __DRIconfig **configs;
|
const __DRIconfig **configs;
|
||||||
|
|
|
@ -111,7 +111,7 @@ static const __DRIextension *drivk_sw_screen_extensions[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const __DRIconfig **
|
static const __DRIconfig **
|
||||||
kopper_init_screen(struct dri_screen *screen)
|
kopper_init_screen(struct dri_screen *screen, bool implicit)
|
||||||
{
|
{
|
||||||
const __DRIconfig **configs;
|
const __DRIconfig **configs;
|
||||||
struct pipe_screen *pscreen = NULL;
|
struct pipe_screen *pscreen = NULL;
|
||||||
|
|
Loading…
Reference in New Issue